text
stringlengths
2
1.03M
<?php namespace App\Exceptions; use App\Helpers\CookieStorage; use App\Traits\ApiResponse; use Laravel\Passport\Exceptions\OAuthServerException; class OAuthExceptionTranslator { use ApiResponse; private static $error; public static function mappings($code) { $errors = [ 2 => [ ...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // } /** * Register any application services. * ...
@extends('layouts.app') {{-- set title --}} @section('title', 'Role') @section('content') <!-- BEGIN: Content--> <div class="app-content content"> <div class="content-overlay"></div> <div class="content-wrapper"> {{-- error --}} @if ($errors->any()) <div c...
<?php namespace Keboola\FakturoidWriter; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; class MissingRequiredFieldInInputFileTest extends ExtractorTestCase { /** @var string */ protected $dataDir = '/tmp/missing-required-field-in-input-file'; protected fun...
<?php use App\Http\Controllers\Admin\AdminBannerController; use App\Http\Controllers\Admin\AdminBrandController; use App\Http\Controllers\Admin\AdminCategoryController; use App\Http\Controllers\Admin\AdminDimensionController; use App\Http\Controllers\Admin\AdminDiscountController; use App\Http\Controllers\Admin\AdminH...
<?php namespace WizPack\Workflow\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use WizPack\Workflow\Models\WorkflowType; class CreateWorkflowTypesRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public functio...
@extends('layouts.app') @section('content') <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-md-10"> @if ($errors->any()) <div class="alert alert-danger"> <ul> @foreach ...
<?php /** * Created by PhpStorm. * User: 沧澜 * Date: 2019-05-23 * Annotation: */ use CalJect\Encryption\Constants\Openssl; use CalJect\Encryption\Encryption; use CalJect\Encryption\Exceptions\IoException; use CalJect\Encryption\Exceptions\RsaException; require '../vendor/autoload.php'; $pubFile = __DIR__.'/resou...
@extends('app') @section('content') <h1> {{ $book->name }} </h1> <div class = "body"> <img src ="{{ $book->image }}" alt="No Image Available"> <h3>ISBN: {{ $book-> isbn }}</h3> <h3>Authors: {{ $author-> name }}</h3> <h3>Publisher: {{ $book-> publisher }}</h3> <h3>Publishe...
btn-sm<?php ?> <div class="main-content"> <section class="section"> <div class="section-header"> <h1>Data Mobil</h1> </div> <div class="section-body"> <?= $this->session->flashdata('mobil'); ?> <a href="<?= base_url('admin/data_mobil/tambah_mobil'); ?>" class="btn btn-primary">Tambah Mobil</a><hr> ...
<?php /** * Created by PhpStorm. * User: Hello 摩托 * Date: 2019/5/13 * Time: 9:08 */ namespace App\Http\Controllers; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; use Illuminate\Support\Facades\Redis; class TestController extends Controller { // 注册 public function register(){ $d...
<?php namespace Spatie\WebTinker\Tests; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Route; use Spatie\WebTinker\Http\Middleware\Authorize; class AuthorizeTest extends TestCase { public function setUp(): void { parent::setUp(); config()->set('web-tinker.enabled', true)...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Http\Response as Response; use Exception; use Auth; use DB; use Validator; // use model here use App\Models\Country as CountryModel; use App\Models\ProjectSetting as ProjectSettingModel; class Common...
<?php return array( /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, you may desire t...
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ * * @defgroup TridentCore Trident Core * @{ */ bx_import('BxDolDb'); class BxDolRssQuery extends BxDolDb { public function __const...
<?php /** * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0 * @copyright Aimeos (aimeos.org), 2015-2021 * @package MShop * @subpackage Common */ namespace Aimeos\MShop\Common\Manager\Find; /** * Common interface for managers implementing find() * * @package MShop * @subpackage Common */ interfa...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Absent extends Model { protected $guarded = []; function student(){ return $this->belongsTo(Student::class); } }
@extends('admin.layout', ['activePage' => 'promotion', 'titlePage' => trans('backend.promotion_managment')]) @section('content') {{ Breadcrumbs::render('edit_promotion',$data) }} <div class="container-fluid"> {{ Form::open(array('method'=>'PUT','route' => ['promotion.update', $data->id])) }} <div class="row...
<!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</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css2?family=Nunito...
@extends('app') @section('title', 'Register') @section('content') <h1>Login</h1> <hr> @include ('errors._list') {!! Form::open(['url' => 'auth/register']) !!} {!! csrf_field() !!} <div class="form-group"> {!! Form::label('name') !!} {!! Form::text('name', ...
<?php namespace ImagesManager; use Illuminate\Database\Eloquent\Model; class Album extends Model { protected $table = 'albums'; protected $fillable = ['id','title','description', 'user_id']; public function owner() { return $this->belongsTo('ImagesManager\User'); } public function photos() { return $th...
<?php declare(strict_types=1); namespace App\Auth\Guards; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Contracts\Auth\Guard; use Illuminate\Http\Request; class PinGuard implements Guard { /** * @var null|Authenticatable|User */ protected $user; /** * @var Request *...
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
<?php /* * Copyright 2017 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddColumnAudiens extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('audienscharacters'...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Acceder</div> <div class="panel-body"> <form class="form-...
<div class="main-content"> <div class="main-content-inner"> <div class="page-content"> <div class="page-header"> <h1> Approved Retirement <small> <i class="ace-icon fa fa-angle-double-right"></i> <?php echo 'List'; ?> </small> </h1> ...
<?php Route::get('/', 'PagesController@root')->name('root'); //Auth::routes(); // 用户身份验证相关的路由 // Route::get('login', 'Auth\LoginController@showLoginForm')->name('login'); // Route::post('login', 'Auth\LoginController@login'); // Route::post('logout', 'Auth\LoginController@logout')->name('logout'); // // 用户注册相关路由 // ...
<?php return array( // The PDO Fetch Style. 'fetch' => PDO::FETCH_CLASS, // The Default Database Connection Name. 'default' => 'mysql', // The Database Connections. 'connections' => array( 'mysql' => array( 'driver' => 'mysql', 'hostname' => 'localhost', ...
<?php $__env->startSection('content'); ?> <?php echo e(HTML::script('public/js/facebox.js')); ?> <?php echo e(HTML::style('public/css/facebox.css')); ?> <?php echo e(HTML::script('public/js/front/bootstrap.min.js')); ?> <script type="text/javascript"> $(document).ready(function ($) { $('.close_image').hi...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Cliente extends Model { protected $fillable = ['idCliente','dniCliente','nombreCliente','direccionCasaCliente','contraseñaCliente']; public $timestamps=false; protected $primaryKey = "idCliente"; protected $table="cliente"; }
<?php /** * District5 Mondoc Library * * @author District5 <hello@district5.co.uk> * @copyright District5 <hello@district5.co.uk> * @link https://www.district5.co.uk * * MIT LICENSE * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated...
<?php namespace Jane\OpenApiRuntime\Client; use Http\Client\HttpClient; use Http\Message\MessageFactory; use Http\Message\StreamFactory; use Symfony\Component\Serializer\SerializerInterface; @trigger_error(sprintf('The "%s" class is deprecated since Jane 5.1, use "%s" instead.', Psr7HttplugClient::class, Psr18Client...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class localite extends Model { // protected $primaryKey = 'local_id'; protected $fillable = ['local_id']; public $incrementing = false; }
<?php namespace app\workflows; class Collaboration { // $this->commentCount = $model->commentsCount; // $this->imagePath = $model->img_path; // $this->assignedTo = $model->assignee; // $this->attachedFiles = $model->attachments; // $this->sharedWith = $model->shares; // $this->likedByCount = $...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddGalleriesForeignKey extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('galleries', ...
<?php // MapbenderCoreBundle::corebundle.json.twig return array ( );
<?php namespace rollun\TuckerRocky\Decoders\Schema; use rollun\TuckerRocky\Decoders\Enums; /** * File 2: 'invlist' (Inventory by distribution center/DC) **Also in CSV format as "invlistcsv.csv"** * Note: In order to create more manageable data we have split the * invlist file in half and create 2 separate a/b fi...
@extends('layout.main') @section('content') <section> <div class="container-fluid"> <div class="card"> <div class="card-body"> <div class="col-md-12"> <div class="col-md-6 offset-md-3 mt-3 text-center"> {{ Form::open(['route' => 'report.warehouseStock', 'method' => 'post', 'id' => 'r...
<? $sSectionName = "Map"; $arDirProperties = Array( ); ?>
<?php namespace QuizRicca\Http\Controllers; use QuizRicca\Question; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Input; class AnswerController extends Controller { //Mostrar...
@extends('layouts.master') @section('css') <style> @media print { #print_Button { display: none; } } </style> @endsection @section('title') معاينه طباعة الفاتورة @stop @section('content') <!-- breadcrumb --> <div class="breadcrumb-header just...
<?php /** * Front page template file * php version 7.4 * @category MTAV * @package MTAV * @author Cemtrexlabs <hello@cemtrexlabs.com> * @license https://cemtrexlabs.com 1.0 * @link MTAV */ MTAV_Page_Entry_top('home-page'); ?> <div class="body-content"> <?php require locate_template('template-parts...
<?php include ('header.php')?> <!DOCTYPE html> <html lang="en"> <head> <title>A/L Index</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body{ background: #aaa; } .container{ background: #fff; padding: 10px; margin-top: 10px; border-radiu...
<?php /** * Created by PhpStorm. * User: dada * Date: 26/10/2015 * Time: 16:51 */ namespace LocDVD\APIBundle\Entity; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\QueryBuilder; class TvshowRepository extends EntityRepository { public function getTvShowByLastUpdate(\DateTime $lastUpdate) { ...
<?php /** * Created by Lane * User: lane * Date: 16/3/23 * Time: 下午2:15 * E-mail: lixuan868686@163.com * WebSite: http://www.lanecn.com */ namespace MeepoPS\Core; //-------------------系统相关------------------- //解析配置文件 $meepopsConfig = parse_ini_file(MEEPO_PS_ROOT_PATH . 'config.ini', true); //时区设置 date_default...
<?php require_once dirname(__FILE__) . '/../CommandImpl.php'; class FileMaker_Command_FindRequest_Implementation { var $_findCriteria = array(); var $_omit; function __construct() { $this->_omit = false; } function addFindCriterion($Vd1148ee8, $Ve9de89b0) { $this->_findCriteria[$Vd1148ee8] = $Ve9de89b0; ...
<div class="bg-white border-white"> <a href={{ url('company/show') }}> <button class="bg-feelera_green-default w-auto text-white px-4 py-2 border rounded-md hover:bg-white hover:border-feelera_green-default hover:text-black relative ml-6 mt-1 font-bold"> <- Back to companies list </butto...
<section id="services-ui-utilities"> <div class="row"> <div class="small-16 columns"> <h2 class="text-center title">Criterios Generales</h2> <p>La diferencia clave entre la conservación y el bienestar animal es que la primera se enfoca en las especies, poblaciones y hábitats, mientra...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOffersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('offers', functio...
<?php namespace App\Http\Controllers\Api; use App\Models\Deposit; use App\Models\SupplierOrder; use App\Models\User; use App\Models\UserFrozenBalance; use App\Models\UserMoneyBalance; use App\Models\UserOperateBalance; use Illuminate\Http\Request; use Yansongda\Pay\Pay; use DB; class PaymentController { public f...
<?php namespace App\Http\Controllers; use App\Models\Department; use App\Traits\ApiResponser; use Illuminate\Http\Request; class DepartmentController extends Controller { use ApiResponser; /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public functio...
<?php use yii\db\Migration; /** * Handles the creation of table `user`. */ class m171202_164604_create_user_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('user', [ 'id' => $this->primaryKey(), 'email'=>$this->string(), ...
<?php declare(strict_types=1); namespace SwoftTest\Rpc\Client\Testing\Lib; /** * interface RpcReadOldCallInterface */ interface RpcReadOldCallInterface { /** * @return int */ public function getIntResult(); /** * @return string */ public function getStringResult(); }
<?php $id=$_GET['id']; require_once './model/conexao.php'; require_once './model/AlunoDAO.php'; $data = date('d-m-Y'); $al= new AlunoDAO(); $result=$al-> listar_Certificado($conn,$id); $html = '<h4 style="text-align: center;">---------------------------------------------------------------------------------------------...
<?php Route::get('/', function() { //return View::make('ageweb/login'); }); //**********************************DECLARAR CONTROLADORES******************************************** //***PARA DECLARAR TODAS RUTAS*** //Route::controller('/ageweb', "agewebController"); //**********************************DECLARAR RUTA P...
<?php return [ /* |-------------------------------------------------------------------------- | Route Prefix |-------------------------------------------------------------------------- | | This prefix method can be used for the prefix of each | route in the administration panel. For exampl...
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections b...
@extends('admin.layouts.app') @section('content') <!-- Product Edit Content --> <div class="row"> <div class="col-lg-12"> <!-- General Data Block --> <div class="block"> <!-- General Data Title --> <div class="block-title"> <h2...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
@include('layout.authority-header') @yield('content') <body class="dark"> <div id="fb-root"></div> <header> @include('layout.navigation') @yield('content') </header> <form id="signupForm" method="post" action="/signup" class=" " autocomplete="off" data-reservation-mo...
<?php namespace Nuwave\Lighthouse\Schema\Directives; use Nuwave\Lighthouse\Support\Contracts\ArgBuilderDirective; class SearchDirective extends BaseDirective implements ArgBuilderDirective { public static function definition(): string { return /** @lang GraphQL */ <<<'GRAPHQL' """ Perform a full-text...
<?php /** * DO NOT EDIT! * This file was automatically generated via bin/generate-validator-spec.php. */ namespace AmpProject\Validator\Spec\Tag; use AmpProject\Format; use AmpProject\Html\Tag as Element; use AmpProject\Validator\Spec\Identifiable; use AmpProject\Validator\Spec\SpecRule; use AmpProject\Validator\...
<?php // page_image:标签图片 // meta_description:标签介绍 // layout:博客终归要使用布局 // reverse_directions:在文章列表按时间升序排列博客文章(默认是降序) use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTagsTable extends Migration { /** * Run the migrations....
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddNotificationPreferenceFieldToUsers extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::tabl...
<?php /** * Simple Machines Forum (SMF) * * @package SMF * @author Simple Machines * @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0 */ function template_search_members() { global $context, $settings, $options, $scripturl, $txt; echo ' <d...
<?php namespace CursoBalaguer\Exceptions; use Exception; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; class Handler extends ExceptionHandler { /** * A list of the exception types that are not reported. * * @var array */ protected $dontReport = [ // ]; ...
<?php declare(strict_types=1); namespace App\GraphQLExecutor\Types; /** * @property string $constraint * @property array<int, string> $update_columns * @property \App\GraphQLExecutor\Types\user_bool_exp|null $where */ class user_on_conflict extends \Spawnia\Sailor\ObjectLike { /** * @param string $const...
@extends('layouts.app') @section('content') <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <div class="pull-left mb-2"> <h2>Add New Post</h2> </div> <div class="pull-right"> <a class="btn btn-primary" href="{{ route('posts.index') }}"> Back</a> ...
<?php declare(strict_types=1); namespace Butschster\Kraken\Responses\Entities; use Brick\Math\BigDecimal; use Butschster\Kraken\Responses\Entities\TickerInformation\LotPrice; use Butschster\Kraken\Responses\Entities\TickerInformation\Price; use Butschster\Kraken\Responses\Entities\TickerInformation\Trades; use Butsch...
@props(['size' => 5, 'color' => 'currentColor', 'class' => '']) <svg xmlns="http://www.w3.org/2000/svg" {{ $attributes->merge(['class' => 'h-' . $size . ' w-' . $size . ' ' . $class]) }} viewBox="0 0 20 20" fill="{{ $color }}"> <path fill-rule="evenodd" d="M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1...
<div class="x_content"> <h2>User Reviews </h2> <hr> @if($ratings== null) <span class="message"> This course has not been reviewed yet </span> @endif <ul class="list-unstyled msg_list"> @foreach($ratings as $rating) @if($rating->student->user->userName == Auth::user()->...
@extends('layouts.plantilla') @section('content') <style> .fondodelcoso{ background-color: #F2F2F2; height: 25px; } .menu{ color:#6A7177; font-size: 15px; } .menu:hover{ text-decoration: none; color: white; } .list-group-item:hover{ background-color: #1...
<?php declare(strict_types=1); /** * A KnpMenu seasoned menu plugin for CakePHP. * * @see https://github.com/icings/menu */ namespace Icings\Menu\Test\TestCase\Matcher\Voter; use Cake\Core\Configure; use Cake\Routing\Route\DashedRoute; use Cake\Routing\RouteBuilder; use Cake\Routing\Router; use Cake\TestSuite\Te...
<?php //delivery_add $lang['address_description'] = '当您需要对自己的收货地址保密或担心收货时间冲突时可使用该业务。添加后可在购物车中作为收货地址进行选择,货品将直接发送至门店。 到货后短信、站内消息进行通知,届时您可使用“自提码”至该服务站兑码取货。'; $lang['region_selection'] = '地区选择'; $lang['find'] = '查找'; $lang['scope_since_mention_service'] = '范围内的门店'; $lang['name_of_consignee'] = '收货人姓名'; $lang['consigne...
<?php namespace app\components; use Yii; class ParamUtils { const K_EXIT_FEE_RATE = 'exit_fee_rate'; const K_FOUND_STOCK_RULE = 'found_stock_rule'; const K_INCOME_TAX_RATE = 'income_tax_rate'; const K_MAX = 'max'; const K_MIN ...
<?php /* * This file is part of the LuckByDice package. * * (c) 2020-2021 Ouxsoft <contact@ouxsoft.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Ouxsoft\LuckByDice\LuckAdjustment; use Ouxsoft\LuckByDice\Contract\...
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Installer; class InstallerEvent...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Food extends Model { use HasFactory; protected $table = 'food'; protected $fillable = [ 'image', 'title', 'price', 'category_id', ]; p...
<?php namespace LucasQuinnGuru\SitetronicCore; use Illuminate\Support\ServiceProvider; class SitetronicCoreServiceProvider extends ServiceProvider { protected $commands = [ //'LucasQuinnGuru\SitetronicUser\Commands\SeedRolesAndPermissionsCommand' ]; /** * Register services. * * @...
<?php namespace Magento\Sales\Controller\Adminhtml\Order\Invoice\VoidAction; /** * Interceptor class for @see \Magento\Sales\Controller\Adminhtml\Order\Invoice\VoidAction */ class Interceptor extends \Magento\Sales\Controller\Adminhtml\Order\Invoice\VoidAction implements \Magento\Framework\Interception\InterceptorIn...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Marca extends Model { //use HasFactory; protected $table = 'marca'; // Nombre de la tabla protected $primaryKey = 'id'; // Clave primaria protected $fillable = [ 'marca','descripcion' ]; //funcion para filtrado...
<?php namespace Drupal\Tests\webform\Functional\Element; /** * Tests for range element. * * @group webform */ class WebformElementRangeTest extends WebformElementBrowserTestBase { /** * Webforms to load. * * @var array */ protected static $testWebforms = ['test_element_range']; /** * Test r...
<?php /* * This file is part of the Chameleon System (https://www.chameleonsystem.com). * * (c) ESONO AG (https://www.esono.de) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * process auto groups. /**/ class TCMSShopTableE...
@extends('app') @section('content') <div class="container-fluid"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">添加</div> <div class="panel-body"> ...
<?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\Runtime; use Symfony\Component\Console\Application; u...
<?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\HttpFoundation\Session\Storage\Handler; ...
<?php /* @Security/Collector/security.html.twig */ class __TwigTemplate_89e883d31a556f2b5deeeeb12a26c567bbd876b20acc7e4cde7405cd48f11778 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate...
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
<?php namespace Proxies\__CG__\Gecko\NewsletterBundle\Entity; /** * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE. */ class Subscriber extends \Gecko\NewsletterBundle\Entity\Subscriber implements \Doctrine\ORM\Proxy\Proxy { private $_entityPersister; private $_identifier; public $_...
<?php if (session()->role == 'superadmin') { echo $this->extend('template'); } elseif (session()->role == 'teacher') { echo $this->extend('teacher/template'); } ?> <?= $this->section('vendorCSS') ?> <link rel="stylesheet" type="text/css" href="<?= base_url('app-assets/vendors/css/editors/quill/katex.min.css') ?>"...
<?php use yii\helpers\Html; use yii\grid\GridView; use common\modules\roles\models\ACLRole; /* @var $this yii\web\View */ /* @var $searchModel common\modules\news\models\searches\TagsLinkSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ ?> <?= GridView::widget([ 'dataProvider' => $dataProvid...
<?php use App\Media\Video; use Illuminate\Foundation\Testing\DatabaseMigrations; class VideosTest extends BrowserKitTestCase { use DatabaseMigrations; /** * @test */ public function videos_can_be_created_and_persisted() { $video = factory(Video::class)->create(); $this->as...
<?php /** * WP_Theme Class * * @package WordPress * @subpackage Theme * @since 3.4.0 */ final class WP_Theme implements ArrayAccess { /** * Whether the theme has been marked as updateable. * * @since 4.4.0 * @var bool * * @see WP_MS_Themes_List_Table */ public $update = false; /** * Headers f...
<?php namespace backend\controllers; use api\modules\v2\controllers\LoginController; use api\modules\v2\controllers\RutaController; use backend\filters\CustomFilter; use common\models\LoginForm; use dektrium\user\Finder; use Yii; use yii\filters\VerbFilter; use yii\web\Controller; use yii\web\NotFoundHttpException; /...
<?php return [ /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, ...
--TEST-- \PHPUnit\Framework\MockObject\Generator::generate('Foo', [], 'MockFoo', true, true) --FILE-- <?php interface Foo { public function bar(): Closure; } require __DIR__ . '/../../../../vendor/autoload.php'; $generator = new \PHPUnit\Framework\MockObject\Generator; $mock = $generator->generate( 'Foo', ...
@extends('layout/navbar') @section('createadmin') <body> <div class="container"> <a href="{{route('admin.home.home')}}">Home</a> <div class="form-group"> <form method="post" enctype="multipart/form-data"> <input type="hidden" name="_token" value="{{csrf_token()}}"> <fieldset> <legend>Create Admin</legend> ...
<?php namespace SchoolBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; class LibraryController extends Controller { public function indexAction() { if(!$this->getUser()->can('ACCESS_SCHOOL')){ $this->addFlash('dang...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Dashboard</div> <div class="panel-body"> <a href='test'>...