text stringlengths 2 1.03M |
|---|
<?php
namespace Modules\Admin\Http\Controllers\Pages;
use DB;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\File;
use Modules\Admin\Entities\Segments;
use Modules\Admin\Entities\... |
<?php
/* @Security/Collector/security.html.twig */
class __TwigTemplate_5b5cc3a78ece76fa73a5fabbb8639ea2f6dff4343a8f3eef88fac43d28da60bd extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate... |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Posts
*
* @author tal
*/
class Posts {
public $categorie;
public $titre;
public $cont... |
@extends('layouts.main')
@section('content')
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
<div class="col-md-5 align-self-center">
<h... |
@extends('front-end.master')
@section('academic_menu_active','active')
@section('front_end_content')
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="main-slideshow">
<div class="flexslider">
<ul class="slide... |
<?php
use yii\helpers\Url;
?>
<div class="panel">
<div id="carousel-example-generic" class="carousel slide">
<!-- 轮播(Carousel)指标 -->
<ol class="carousel-indicators">
<?php foreach ($data['items'] as $k=>$list):?>
<li data-target="#carousel-example-generic" data-slide-to="<?=$k?>... |
<?php
declare(strict_types=1);
namespace Inowas\Common\Soilmodel;
use Inowas\Common\Modflow\Laytyp;
use Inowas\Common\Soilmodel\AbstractSoilproperty;
use Inowas\Common\Soilmodel\GeologicalLayerDescription;
use Inowas\Common\Soilmodel\GeologicalLayerId;
use Inowas\Common\Soilmodel\GeologicalLayerName;
use Inowas\Comm... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... |
<?php
/**
* @var $category
*/
?>
<div class="first-modal">
<?php foreach($category as $item): ?>
<div class="modal-body__container modal-item" data-category="<?= $item->id; ?>">
<div class="modal-body__container__img thumb">
<img src="<?= $item->icon; ?>" alt="">
</div>
<span c... |
<?php
session_start();
if (!isset($_SESSION['user'])) {
header("Location: connexion.php");
die();
}
unset($_SESSION['mots']);
unset($_SESSION['victory']);
unset($_SESSION['over_use']);
unset($_SESSION['erreur']);
unset($_SESSION['mots_decompo']);
unset($_SESSION['mots_a_t... |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\DB\Ddl;
/**
* Class Sequence represents DDL for manage sequences
*/
class Sequence
{
/**
* Return SQL for create sequence
*
* @param string $name
* @pa... |
<?php
return [
/*
|---------------------------------------------------------------------------------------
| Baris Bahasa untuk Validasi
|---------------------------------------------------------------------------------------
|
| Baris bahasa berikut ini berisi standar pesan kesalahan yang dig... |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* County
*
* @ORM\Table(name="ApprovalStatus")
* @ORM\Entity(repositoryClass="AppBundle\Repository\ApprovalStatusRepository")
*/
class ApprovalStatus
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\I... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Livro extends Model
{
use HasFactory;
protected $fillable = ['nome', 'quantidade', 'valor'];
public function clientes()
{
return $this->belongsToMany('App\Models\... |
<?php
/*
* This file is part of sebastian/diff.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PhpCsFixer\Diff\v3_0;
final class MemoryEfficientLongestCommonSubsequence... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ShortLink extends Model
{
public $fillable = ['user_id', 'prefix'];
} |
<?php
namespace App\Shop\Employees\Repositories;
use App\Shop\Base\BaseRepository;
use App\Shop\Employees\Employee;
use App\Shop\Employees\Exceptions\EmployeeNotFoundException;
use App\Shop\Employees\Repositories\Interfaces\EmployeeRepositoryInterface;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illu... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... |
<?php
require_once('assets/getid3/getid3.php');
// phpinfo();
if(isset($_POST['btn'])){
echo $_FILES["video"]['tmp_name'];
echo $_FILES["video"]['error'];
$name = $_FILES["video"]['tmp_name'];
$filename= $name;
$getID3 = new getID3;
$file = $getID3->analyze(... |
<?php declare(strict_types=1);
namespace Shopware\Core\Framework\Test\App\AppUrlChangeResolver;
use PHPUnit\Framework\TestCase;
use Shopware\Core\Framework\App\AppEntity;
use Shopware\Core\Framework\App\AppUrlChangeResolver\MoveShopPermanentlyStrategy;
use Shopware\Core\Framework\App\Exception\AppUrlChangeDetectedExc... |
<?php
/**
* Static helpers for using svgs
* in your theme
*
* @author Max G J Panas <http://maxpanas.com>
*/
/**
* Class NID_SVG
*/
class NID_SVG {
/**
* Get a given svg's
* markup
*
* @param $filename
*
* @return string
*/
public static function get_svg( $filename ) {
ob_start();
locate... |
<?php
/*******************************************************************************
* Copyright 2009-2018 Amazon Services. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the ... |
<?php include "Dashboard/fun/connection.php";
include "Dashboard/style/header.php";
include "Dashboard/style/nav.php";
include "Dashboard/style/bottombar.php";
?>
<div class="breadcrumb-wrap">
<div class="container-fluid">
<ul class="breadcrumb">
<li class... |
@extends('layouts.app')
@section('styles')
<style type="text/css">
.hidden {
display: none;
}
.table-responsive {
overflow-y: hidden;
}
.table-responsive nav {
margin-bottom: 20px;
}
</style>
@endsection
@section('content')
<div class="page-wrapper">
<div class="c... |
<?php
$i = 3;
do {
echo "i = ", $i--, "\n";
} while ($i > 0);
/*
i = 3
i = 2
i = 1
*/
$i = -5;
do {
echo "i = ", $i--, "\n";
} while ($i > 0);
// i = -5 |
<?php
namespace LaravelEnso\AvatarManager\app\Observers;
use LaravelEnso\AvatarManager\app\Classes\Destroyer;
class AvatarObserver
{
public function deleting($avatar)
{
(new Destroyer($avatar))->run();
}
} |
@extends('layouts.app')
@section('head')
<title>Edit bible</title>
@endsection
@section('content')
@include('layouts.partials.banner', [
'title' => trans('dashboard.bibles_edit_title')
])
<div class="container">
@include('dashboard.bibles.form', ['type' => 'PUT', 'bible' => $bible])
... |
<?php
namespace DluTwBootstrap\Form\View\Helper;
use Zend\Form\View\Helper\AbstractHelper as AbstractFormViewHelper;
use \Zend\Form\ElementInterface;
/**
* FormHintTwb
* @package DluTwBootstrap
* @copyright David Lukas (c) - http://www.zfdaily.com
* @license http://www.zfdaily.com/code/license New BSD License
* ... |
<?php
/**
* Created by PhpStorm.
* User: yidashi
* Date: 2016/12/11
* Time: 下午11:44
*/
namespace common\modules\attachment\components\flysystem;
use League\Flysystem\Adapter\AbstractAdapter;
use League\Flysystem\Adapter\Polyfill\NotSupportingVisibilityTrait;
use League\Flysystem\Config;
use OSS\OssClient;
class... |
@extends('layouts.layout', ["title" => "Редактирование $сhanges->name_change смены"])
@section('content')
<form action="{{ route('changes.update', $сhanges->id) }}" method="POST">
@csrf
@method('PATCH')
<h3>Редактировать пост</h3>
@include('changes.parts.form')
<input type="... |
<?php
session_start();
$_GET['id'];
//============================================================+
// File name : example_001.php
// Begin : 2008-03-04
// Last Update : 2013-05-14
//
// Description : Example 001 for TCPDF class
// Default Header and Footer
//
// Author: Nicola Asuni
//
// (c) Co... |
<?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Localization;
/**
* @group localization
*/... |
@extends('layouts.app')
@section('content')
<div class="container">
@if (session('status'))
<div class="txt-center success p-3 rounded-2 light-shadow-2 mt-4" role="alert">
{{ session('status') }}
</div>
@endif
<div class="card light-shadow-2 rounded-... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
<p id="crumbs"><a href="<?php echo LANGPATH; ?>/">Home</a> / <a href="<?php echo LANGPATH; ?>/mobilecustomer/profile">My Account</a> / Order Detail </p>
<?php echo Message::get(); ?>
<h2>Order Number: <?php echo $order->get('ordernum'); ?></h2>
<div class="order-summary-detail">
<ul>
<li><strong>Status:</s... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
protected $fillable = ['nome', 'cnpj', 'endereco'];
} |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
namespace App\Classes\Bridge777Games;
use Illuminate\Support\Facades\Log;
use Ixudra\Curl\Facades\Curl;
class BridgeApi
{
/**
* получение баланса через апи
*
* @param string $token полученный от 777games
* @param int $userId полученный от 777games
* @param int $gameId... |
<?php
/**
* Created by PhpStorm.
* User: Saysa
* Date: 10/08/14
* Time: 13:55
*/
namespace Vyper\SiteBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Vyper\SiteBundle\Entity\Artist;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use Vyper\SiteBundle\Form\ArtistType;
class Adm... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddCountryCodeColumnToMembers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('membe... |
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Validation\ValidationException;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|---------------... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class Resource extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource... |
@component('front.head')
@endcomponent
<body data-spy="scroll" data-target="#pb-navbar" data-offset="200">
@component('front.headNavigation')
@endcomponent
<section
class="pb_cover_v3 overflow-hidden cover-bg-indigo cover-bg-opacity text-left pb_gradient_v1 pb_slant-light"
id="section-home">
... |
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");
header('Access-Control-Allow-Headers:x-requested-with,content-type');
// $servername = "101.201.148.97:3306";
$servername = "101.201.148.97";
$username = "card_user";
$password = "card(2015)!@#";
$... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\User;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Http\Request;
class LoginController extends Controller
{
/*
|---------------------------------------------------... |
<?php
defined( 'WPINC' ) || die; // Do not load directly.
/**
* Filters meta links in the WP Admin > Plugins list
*/
class Tribe__Plugin_Meta_Links {
/**
* Class instance
*
* @var Tribe__Plugin_Meta_Links The singleton instance.
*/
private static $instance;
/**
* The various meta links that will be add... |
<?php
namespace App\Http\Controllers\Admin;
use App\Customer;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Intervention\Image\Facades\Image;
class CustomerController extends Controller
{
/**
* Display a listing of the resource.
*
* @retur... |
<li {{ isset($nav) && $nav == 'index' ? 'class=active' : '' }}><a href="{{ route('backend.task.index') }}">任务列表</a></li>
<li {{ isset($nav) && $nav == 'create' ? 'class=active' : '' }}><a href="{{ route('backend.task.create') }}">新建任务</a></li> |
<?php
return [
'comicsLinks' => [
'title' => 'DC Comics',
'links' => [
[
'text' => 'Characters',
'url' => '#'
],
[
'text' => 'Comics',
'url' => '#'
],
[
'text' ... |
<?php namespace modules\Pages\Forms;
use Kris\LaravelFormBuilder\Form;
class PageForm extends Form
{
public function buildForm()
{
$this
->add('title', 'text')
->add('tagline', 'text')
->add('meta_title', 'text')
->add('meta_keywords', 'text')
... |
<?php
namespace Viperdigo\Voyager\Http\Controllers;
use Illuminate\Http\Request;
use TCG\Voyager\Facades\Voyager;
class VoyagerRoleController extends VoyagerBaseController
{
// POST BR(E)AD
public function update(Request $request, $id)
{
$slug = $this->getSlug($request);
$dataType = Voya... |
<?php
namespace App\Http;
use App\Http\Middleware\CheckAdminStatus;
use App\Http\Middleware\CheckCampingStatus;
use App\Http\Middleware\CheckForMaintenanceMode;
use App\Http\Middleware\CloudFlareProxies;
use App\Http\Middleware\EncryptCookies;
use App\Http\Middleware\RedirectIfAuthenticate... |
<?php
/**
* @Created By ECMall PhpCacheServer
* @Time:2015-01-25 06:06:08
*/
if(filemtime(__FILE__) + 1800 < time())return false;
return array (
'id' => 838,
'goods' =>
array (
'goods_id' => '838',
'store_id' => '42',
'type' => 'material',
'goods_name' => '超能内衣专用皂162g',
'description' =... |
<?hh
namespace HH {
class Real {}
<<__EntryPoint>> function main(): void {
echo "Done\n";
}
} |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel tutorial</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?famil... |
<div>
<form wire:submit.prevent="store">
<div class="form-group">
<div class="form-row">
<div class="col">
<input wire:model="name" type="text" name="" id=""
class="form-control @error('name') is-invalid @enderror" placeholder="Category Na... |
<?php
namespace Doctrine\Tests\DBAL\Platforms;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\LockMode;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\SQLAnywherePlatform;
use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\ForeignKeyConstraint;
u... |
<?php
namespace WPForms\Admin\Addons;
/**
* Addons data handler.
*
* @since 1.6.6
*/
class Addons {
/**
* Addons cache object.
*
* @since 1.6.6
*
* @var \WPForms\Admin\Addons\AddonsCache
*/
private $cache;
/**
* All Addons data.
*
* @since 1.6.6
*
* @var array
*/
private $addons;
/... |
<?php
namespace SingleQuote\LaravelXmlParser\Tests\Features\Export;
use SingleQuote\LaravelXmlParser\Tests\TestCase;
use SingleQuote\LaravelXmlParser\XML;
class ExportFromDataTest extends TestCase
{
/**
* Test exporting a array.
*/
public function test_exports_from_array()
{
$data = [
... |
<?php
/**
* Part of the Fuel framework.
*
* @package Fuel
* @version 1.7
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2015 Fuel Development Team
* @link http://fuelphp.com
*/
namespace Fuel\Core;
/**
* Database_Query_Builder_Insert class tests
*
* @group C... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer;
use Symfon... |
<?php namespace System\Twig;
use Twig_Environment;
use Illuminate\View\Engines\EngineInterface;
/**
* View engine used by the system, used for converting .htm files to twig.
*
* @package october\system
* @author Alexey Bobkov, Samuel Georges
*/
class Engine implements EngineInterface
{
/**
* @var Twig_E... |
<?php
namespace tests;
use Heap\MergeableAddressableHeapInterface;
use Heap\Tree\PairingHeap;
class PairingMergeableAddressableHeapTest extends AbstractMergeableAddressableHeapTest
{
protected function createHeap(): MergeableAddressableHeapInterface
{
return new PairingHeap();
}
} |
<?php
namespace ContainerDrPdvPL;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getRouter_CacheWarmerService ext... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserImages extends Model
{
use HasFactory;
protected $fillable = [
'user_id','filename', 'url'
];
public function user() {
return $this->belongsTo(User::cl... |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+---------------------... |
<?php
/**
* 公用函数
*/
/**
* 对象转换成数组
* @param object $obj
* @return array
*/
function objToArray($obj)
{
return json_decode(json_encode($obj), true);
} |
<?php
namespace Container4yH79xp;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getForm_TypeExtension_Form_HttpF... |
@extends('template.app')
@section('main-content')
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Sistem Monitoring Dan Evaluasi Penggunaan Lahan<br/>
Di Kabupaten Kudus<br/>
</h1>
</section>
<!-- Main content -->
<section class="content">
<!-- Small boxes (Stat box) -->
<... |
<?php
/* Template Name: All case studies */
$caseStudyIds = get_posts([
'fields' => 'ids',
'posts_per_page' => -1,
'post_type' => 'work',
]);
?>
<?php get_header(); ?>
<main>
<?php while (have_posts()) : the_post(); ?>
<?php include(locate_template('src/template_parts/hero.php')) ?>
... |
<?php
namespace App\Http\Controllers;
use App\Article;
use App\Http\Resources\ArticleResource;
use App\Http\Resources\ArticleResourceCollection;
use Illuminate\Http\Request;
class ArticleController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
... |
<?php
class Regiao {
private $conexao;
function __construct($conexao) {
$this->conexao = $conexao->getCon();
}
function addRegiao($IDRegiao,$DescricaoRegiao) {
$sql = "INSERT INTO regiao (IDRegiao,DescricaoRegiao) VALUES('$IDRegiao','$DescricaoRegiao')";
... |
<?php
namespace common\modules\admin\controllers;
use Yii;
use common\modules\admin\models\form\Login;
use common\modules\admin\models\form\PasswordResetRequest;
use common\modules\admin\models\form\ResetPassword;
use common\modules\admin\models\form\Signup;
use common\modules\admin\models\form\ChangePassword;
use co... |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
<?php
/**
* Created by PhpStorm.
* User: kevin
* Date: 19/09/2017
* Time: 12:31 PM
*/
namespace Wincash\Payment\Entities;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
class WincashpayWithdraw extends Model
{
public $fillable = [
'amount', 'currency', 'addres... |
<?php
return [
[
'property' => 'og:url',
'content' => '{{URL.ARTICLE}}',
],
[
'property' => 'og:title',
'content' => '{{ARTICLE.TITLE}} - {{SITE_NAME}}',
],
[
'property' => 'og:description',
'content' => 'The Movie Database ({{SITE_NAME}}) is a popul... |
@extends('layouts.app')
@section ('content')
@livewire('report-component')
@endsection |
<?php
/*
First Previous 1 2 3 ... 22 23 24 25 26 [27] 28 29 30 31 32 ... 48 49 50 Next Last
*/
// Number of page links in the begin and end of whole range
$count_out = ( ! empty($config['count_out'])) ? (int) $config['count_out'] : 3;
// Number of page links on each side of current page
$count_in = ( ! empty($config[... |
<?php
declare(strict_types=1);
/*
* This file is part of Exchanger.
*
* (c) Florian Voutzinos <florian@voutzinos.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Exchanger\Tests\Service;
use Exchanger\CurrencyPair... |
<?php
namespace App\Http\Controllers;
use App\cargo;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\Model;
use App\Http\Controllers\Flash;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbo... |
<?php declare(strict_types=1);
namespace SwagBrand\Resources\snippet\en_GB;
use Shopware\Core\System\Snippet\Files\SnippetFileInterface;
class SnippetFile_en_GB implements SnippetFileInterface
{
public function getName(): string
{
return 'storefront.en-GB';
}
public function getPath(): strin... |
<?php
/* AcmeDemoBundle:Welcome:index.html.twig */
class __TwigTemplate_2789a438918ec880aac662ca690769eb4d87dfaff2c409a303fda778cbe1e8dd extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent = $... |
<?php
namespace App\Command\Migradores;
use App\Entity\TipoOrdenanza;
class MTipoOrdenanza extends Migrador
{
protected $class = TipoOrdenanza::class;
protected function getSQL()
{
return 'SELECT DISTINCT tipo FROM normas';
}
protected function mapRow($row)
{
$nombre = tri... |
<?php
require __DIR__."/../vendor/autoload.php";
use \Maildrop\Maildrop;
Maildrop::setDefaultClientApiKey(getenv("apikey"));
$md = new Maildrop();
$r = $md->tracking_domains()->add([
"domain" => "emails.maildrop.fr",
"type" => "TRACKING",
]);
if (!$r->success()) {
echo "Error: ".$r->getErr... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="flex-center position-ref full-height">
<div class="content">
<div class="title m-b-md">
{{ __('messages.Add your offer') }}
</div>
<div class="aler... |
@extends('frontend.master')
@section('MainContent')
<section class="padding-tb-100px background-grey-1">
<div class="container">
<div class="row">
<div class="row" style="height:600px; font-size: 15px; font-family: helvetica; ">
<div class="col-md-3"></div>
<div class="col-md-6">
<p ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Mdl_esp_account extends CI_Model
{
public function __construct() {
parent::__construct();
}
public function get_account_data($table, $start, $perpage){
$dataCount = GetAllRecordCount($table);
$accounts = ... |
<?php
namespace Headoo\ElasticSearchBundle\Tests\Handler;
use Doctrine\Common\DataFixtures\Executor\ORMExecutor;
use Doctrine\Common\DataFixtures\Loader;
use Doctrine\Common\DataFixtures\Purger\ORMPurger;
use Doctrine\ORM\EntityManager;
use Elastica\Query;
use Elastica\Search;
use Headoo\ElasticSearchBundle\Event\El... |
<?php
/*
* Title : Pinpoint Booking System WordPress Plugin (PRO)
* Version : 2.1.1
* File : views/reservations/views-backend-reservation-coupon.php
* File Version : 1.0.5
* Created / Last Modified : 25 August 2015
* Author : Dot on Paper... |
<!-- Leave Modal (logged)-->
<div class="modal fade" id="leaveModal" tabindex="-1" role="dialog" aria-labelledby="leaveModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="C... |
<?php
namespace HelloWorld;
class hello{
function hello_world(){
echo "Hello World";
}
}
?> |
<?php
namespace App\Http\Controllers\CRUDAdmin;
use App\HearingStatus;
use App\DeletedHearingStatus;
use Illuminate\Http\Request;
use App\Role;
use App\Permission;
use App\Http\Controllers\Controller;
use Config;
use App\DeletedRoles;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\SoftDeletes;
use ... |
<?php
namespace JDesrosiers\Silex\Provider;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Rou... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class StatusEntregables extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return... |
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_login
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the login functions only once
JLo... |
<!DOCTYPE html>
<html>
<head>
<title>Saved Intern Page</title>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link rel="stylesheet" href="https://stackpath.boots... |
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" type="image/png" href="<?= bas... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\ItensDaVenda */
$this->title = 'Update Itens Da Venda: ' . $model->id_item_venda;
$this->params['breadcrumbs'][] = ['label' => 'Itens Da Vendas', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id_item_venda... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Team extends Model
{
protected $fillable = ['name','designation'];
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.