text stringlengths 2 1.03M |
|---|
<?php
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class UserEditType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilderInterface $builder, array $op... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session('... |
@extends('layouts.app')
@section('content')
@include('Admin.layouts.admin_sidebar')
<div class="main">
<div class="container">
<div class="row">
<div class="col-md-12" style="">
@if ($message = Session::get('success'))
<div class="... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\StoreBrandRequest;
use App\Http\Requests\StoreCategoryRequest;
use App\Models\Brand;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class BrandAdminController extends ParentAdminController
{
p... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddThumbnailIdToPostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('posts', ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
namespace Lizhineng\Reviewable\Tests;
use Lizhineng\Reviewable\Reviewable;
use Lizhineng\Reviewable\Tests\Movie;
use Lizhineng\Reviewable\Exceptions\CantReviewTwiceException;
class ReviewLimitationTest extends TestCase
{
/** @test */
public function it_cant_be_reviewed_twice()
{
$this->expe... |
<?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\Cache\Simple;
use Symfony\Component\Cache\Exception\C... |
@extends('layouts.app')
@section('dropdown-wilayah') active
@endsection
@section('status-dropdown') show
@endsection
@section('status-keldes') active
@endsection
@section('title-page') Kelurahan
@endsection
@section('content')
<section class="section">
<div class="section-body">
<div class="row">
... |
<?php
namespace App\Models\Master;
use CodeIgniter\Model;
class SmfModel extends Model
{
protected $table = 'm_smf';
protected $primaryKey = 'ID';
protected $useAutoIncrement = true;
protected $returnType = 'array';
// menentukan file apa saja yang dapat diinsert atau diupdated
p... |
@extends('layouts.admin')
@section('content')
<div class="card">
<div class="card-header">
{{ trans('global.show') }} {{ trans('cruds.user.title') }}
</div>
<div class="card-body">
<div class="form-group">
<div class="row mb-2">
<div class="col-lg-10">
... |
<?php
class LGPoliciesModal {
protected $pdo;
public function __construct(PDO $pdo) {
$this->pdo = $pdo;
}
public function getLGPolicies($search) {
$stmt = $this->pdo->prepare("SELECT DISTINCT client_policy.policy_number, financial_statistics_history.payment_amount, ews_data.ews_sta... |
@extends('layouts.default')
@section('title','登录')
@section('content')
<div class="offset-md-2 col-md-8">
<div class="card ">
<div class="card-header">
<h5>登录</h5>
</div>
<div class="card-body">
@include('shared._errors')
<form method="POST" action="{{ route('login') }}">
{{ cs... |
<?php
namespace App\Http\Controllers;
use App\Helper\PageDescription;
use App\HotelFasilitas;
use App\HotelFasilitasDetail;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Support\Facades\Session;
class HotelFasilitasController extends Controller
{
public function __construct(PageDescription ... |
<?php
/**
* This file is part of the Spryker Suite.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Zed\ProductOfferValidityDataImport\Business\Model\DataSet;
interface CombinedProductOfferValidityDataSetInterface
{
/**
* @var stri... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOffersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('offers', functio... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages t... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Cache;
use Phpstore\Crud\ImageLib;
use App\Models\AdminRole;
use Hash;
use Phpstore\Repository\AdminRepository;
class Admin extends Authenticatable
{
use Notifiable,AdminRepository;
/**
... |
<?php /* Display a code block for all frames in the stack.
* @todo: This should PROBABLY be done on-demand, lest
* we get 200 frames to process. */ ?>
<div class="frame-code-container <?php echo (!$has_frames ? 'empty' : '') ?>">
<?php foreach($frames as $i => $frame): ?>
<?php $line = $frame->getLi... |
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://doc.hyperf.io
* @contact group@hyperf.io
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
*/
namespace Hyperf\ConfigApollo;
use Hyperf\Contract\ConfigInterface;
use ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class QuestionsController extends Controller
{
public function __construct()
{
$this->middleware('preventBackHistory');
$this->middleware('auth');
}
public function index() {
$get_subjects = new Subje... |
<?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
namespace My\schoolBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class MatiereType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
... |
<?php
namespace App\Providers;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to the controller routes in your routes file.
*
* In addition, it ... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateUserRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get... |
<?php
// load composer class loader
require_once('vendor/autoload.php');
// load wordpress functions
if (!function_exists('get_user_by')) {
include('../../../wp-config.php');
}
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$ajax = new GrantedByMeWPAjax();
/**
* GrantedByMe WordPress Plug-In AJAX
*
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TbAbsen extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tb_absen', function (Bluep... |
<?php
declare(strict_types=1);
namespace AbterPhp\Framework\Validation\Rules;
use PHPUnit\Framework\TestCase;
class MinLengthTest extends TestCase
{
/**
* @return array[]
*/
public function passesProvider(): array
{
return [
'empty' => ['', [], [1], false],
... |
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2013 Jonathan Vollebregt (jnvsor@gmail.com), Rokas Šleinius (raveren@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software wi... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
use HasFactory;
protected $guarded = [];
public function posts()
{
return $this->hasMany(Post::class);
}
} |
<?php
namespace Drupal\search_api\Utility;
use Drupal\search_api\IndexInterface;
use Drupal\search_api\Query\ResultSetInterface;
/**
* Provides an interface for query helper services.
*/
interface QueryHelperInterface {
/**
* Creates a new search query object.
*
* @param \Drupal\search_api\IndexInterfa... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use \App\Category;
class CategoryController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
$categories = Category::pa... |
@extends('layouts.base')
@section('content')
<h1></h1>
@foreach ($employees as $employee)
<ul><h3>EMPLOYEE:</h3>
<li>NAME: {{$employee -> name}}</li>
<li>LASTNAME: {{$employee -> lastname}}</li>
<br>
@foreach ($employees -> tasks as $task)
<li>
<a href="{{route... |
<nav class="sidebar sidebar-offcanvas" id="sidebar">
<div class="sidebar-brand-wrapper d-none d-lg-flex align-items-center justify-content-center fixed-top">
<a class="sidebar-brand brand-logo" href="{{url('/dashboard')}}"><img src="assets/images/logo.svg" alt="logo" /></a>
<a class="sidebar-brand brand... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBrandsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('brands', function (Blueprint $table) {
$tab... |
@extends('layouts.te')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Reset Password') }}</div>
<div class="card-body">
<form meth... |
<?php include('header.php'); $user_id = $this->session->userId2; ?>
<section class="bg-image">
</section>
<section class="service-top">
<div class="container">
<div class="row">
<div class="col-md-12 step-sec">
<h2>Kyndoo Works in 4 Simple Steps</h2>
</div>
<div class="col-lg-3 col-md-6 col... |
<?php
declare(strict_types = 1);
namespace Spipu\ProcessBundle\Exception;
class StepException extends ProcessException
{
/**
* Can we rerun the process automatically after this error ?
* @return bool
*/
public function canBeRerunAutomatically(): bool
{
return false;
}
} |
<?php
/**
* @package framework
* @copyright Copyright (c) 2005-2020 The Regents of the University of California.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Hubzero\Facades\Tests\Mock;
use Hubzero\Facades\Facade;
/**
* Mock Foo facade
*
* @codeCoverageIgnore
*/
class FooFacade exten... |
<?php
namespace App\Http\Controllers;
use App\CareWash;
use Illuminate\Http\Request;
class FormcareController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$care = CareWash::all();
retur... |
<?php
namespace Tests\Unit;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use \App\Inspections\Spam;
class SpamTest extends TestCase
{
use DatabaseMigrations;
public function setup(): void {
parent::setup();
$this->spam = new Spam;
}
... |
<?php
namespace App\Commands;
use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;
use App\Domain\File\FileReader;
use App\Domain\File\Format\JsonFileFormat;
class Logs extends Command
{
/**
* The signature of the command.
*
* @var string
*/
protected $... |
<?php
session_start();
echo "La variable count vale: ".$_SESSION['count']; |
<?php
/*
* This file is part of the ACME PHP library.
*
* (c) Titouan Galopin <galopintitouan@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AcmePhp\Core;
use AcmePhp\Core\Exception\AcmeCoreClientException;... |
<!DOCTYPE html>
<html>
<head>
<title>@yield('title')</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">
<!-- styles -->
<link href="{{ asset('css/styles.css') }}" rel="stylesheet">
... |
<?php
return array (
'The module "Modules" cannot be deleted!' => 'Modul "Moduly" nemůžete smazat!',
'Save changes' => 'Uložit změny',
'Install' => 'Nainstalovat',
'Uninstall' => 'Odinstalovat',
'Available Modules' => 'Dostupné moduly',
'Module name' => 'Název modulu',
'Description' => 'Opis',
'WARNING!... |
<?php
/**
* Modify test
*
* @author Alex Peshkov <alex.peshkov@valtech.co.uk>
*/
namespace Dvsa\OlcsTest\Api\Domain\Validation\Handlers\Workshop\Application;
use Dvsa\OlcsTest\Api\Domain\Validation\Handlers\AbstractHandlerTestCase;
use Mockery as m;
use Dvsa\Olcs\Api\Domain\Validation\Handlers\Workshop\Applicatio... |
<?php
/*
* This file is part of the Craffft OAuth2 Bundle.
*
* (c) Daniel Kiesel <https://github.com/iCodr8>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Back end modules
*/
$GLOBALS['TL_LANG']['MOD']['oauth2_client'] ... |
<?php
namespace KindGuide\Controllers;
//use App\Models\KGCertifications;
use KindGuide\Controllers\KindUtils;
class KindConsumers extends KindUtils
{
protected function printSocialLinks($share)
{
return '<div class="row"><div class="col-4 taC">' . $GLOBALS["SL"]->twitShareBtn($share[0], $share[1],... |
@extends('layout')
@section('content')
<div class="panel">
<ul class="nav nav-pills">
<li <?php if ($tab == 'list') {
echo 'class="active"';
} ?>>
<a href="/zone">List All</a>
</li>
<li <?php if ($tab == 'zones') {
echo 'class="active"';
} ?>>
<a href="<?php echo '/zone/'.$zone->id; ?... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Documentação - UnIndices</title>
<!-- Bootstrap core CSS -->
<link href="ven... |
@extends('layouts.admin')
@section('css')
<style>
.pagination {
display: -ms-flexbox;
display: flex;
padding-left: 0;
list-style: none;
border-radius: 0.25rem;
}
.pagination li {
margin-left: 0.2rem;
padding: 0.2rem 0.2rem;
border-top-left-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;... |
<?php
/**
* Innomatic
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
*
* @copyright 1999-2014 Innomatic Company
* @license http://www.innomatic.io/license/ New BSD License
* @link http://www.innomatic.io
*/
namespace Innoma... |
<?php
namespace App\Http\Middleware;
use App\Models\Role;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class IsStudent
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
... |
<?php
/**
* Created by tarblog.
* Date: 2020/7/30
* Time: 16:50
*/
namespace App\Admin;
use App\NoRender;
use Core\Validate;
use Utils\Auth;
class Login extends NoRender
{
public function execute(): bool
{
[$result, $field, $message] = (new Validate($this->request->post()))
->make([
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = [
'cid', 'title', 'details', 'tag','img','count'
];
} |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... |
@extends('backend.layouts.master')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
... |
--TEST--
Bug #81477 (LimitIterator + SplFileObject regression in 8.0.1)
--FILE--
<?php
$filename = __DIR__ . '/bug81477.csv';
$s = fopen($filename, 'w+');
fwrite($s, "foo,bar\nbaz,bat\nmore,data\n");
fclose($s);
$sfo = new SplFileObject($filename);
$sfo->setFlags(SplFileObject::READ_AHEAD);
$limitIter = new LimitIter... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controll... |
<?php namespace PlanetaDelEste\ApiToolbox\Traits\Controllers;
use Illuminate\Support\Facades\Validator;
use October\Rain\Database\ModelException;
use October\Rain\Exception\ValidationException;
/**
* Trait ApiValidationTrait
*
* @package PlanetaDelEste\ApiToolbox\Traits\Controllers
*
* @property array $data
* ... |
<div class="row">
<div class="col-md-12">
<h5 class="mt-4 mb-2 label-heading">
<i class="fas fa-medkit info"> FOOD </i>
</h5><br>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Desire For Food</label>
<input id="desire_food" type="t... |
<?php
namespace Nearata\CopyCodeToClipboard;
use Flarum\Extend;
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less'),
new Extend\Locales(__DIR__ . '/resources/locale')
]; |
<?php
namespace ModStart\Core\Util;
use Illuminate\Support\Str;
use ModStart\Core\Assets\AssetsUtil;
class HtmlUtil
{
public static function replaceImageSrcToLazyLoad($content, $dataAttr = 'data-src', $useAssets = false)
{
preg_match_all('/(<img.*?)src="(.*?)"(.*?>)/i', $content, $mat);
if ($... |
@extends('layouts.app')
@section('title')
Login
@stop
@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
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Typesub extends Model
{
use HasFactory;
protected $table = 'type_sub';
protected $primaryKey = 'type_sub_id';
public function typestatus(){
return $this->hasMany... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Court extends Model
{
/** @inheritdoc */
protected $fillable = [
'name',
'address',
'state'
];
} |
<?php
/**
* Copyright 2017 Facebook, Inc.
*
* 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.
*
* As with any software that in... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Categoria da ... |
<?php
namespace App\Http\Requests;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Client\Request;
class TodoRequest extends ApiRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*... |
<?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... |
@extends('template._master')
@section('judul_halaman','Pemilih')
@section('konten')
<div class="card">
<div class="card-body">
<h4 class="card-title">Daftar Pemilih</h4>
<div class="row">
<div class="col-sm-4 col-md-8"></div>
<div class="col-sm-4 col-md-8">
<div id="order-listing_filter" class="dataTa... |
<?php return array (
'domain' => NULL,
'plural-forms' => 'nplurals=2; plural=(n != 1);',
'messages' =>
array (
'' =>
array (
'' =>
array (
0 => 'Project-Id-Version: azuracast
Report-Msgid-Bugs-To:
Last-Translator:
Language-Team: Turkish
MIME-Version: 1.0
Content-Type: text/plain... |
<?php
namespace PharIo\Manifest;
use DOMDocument;
use DOMElement;
class ContainsElementTest extends \PHPUnit_Framework_TestCase {
/**
* @var DOMElement
*/
private $domElement;
/**
* @var ContainsElement
*/
private $contains;
protected function setUp() {
$dom = new DO... |
<?php
/**
* Holds information about the currently active session.
*/
namespace Miiverse;
/**
* Information about the current active user and session.
*
* @author Repflez
*/
class CurrentSession
{
/**
* The user object of the currently active user.
*
* @var User
*/
public static $user... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ProjectPayment extends Model
{
use SoftDeletes;
protected $fillable=[
'project_id',
'to_user_id',
'amount',
'coupon_discount',
'milestone_id'
];
protected $dates = ['deleted_at... |
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\Bridge\Symfony\Bundle\Depend... |
@extends('dashboard')
@section('content')
<div class="mt-2">
<x-form-section>
<x-slot name="title">{{ __("Jail information") }}</x-slot>
<x-slot name="description">
{{ __("You can view the jail's information.") }}
</x-slot>
<x-slot name="f... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddNewsFieldsToOrdemServicosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('o... |
<?php
namespace Application\Controller;
use Application\Model\Factory\Model\Entity\Line as LineEntityFactory;
use Application\Model\Service\Log as LogService;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class Line extends AbstractActionController
{
public function __construct(... |
<?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
return [
/*
|--------------------------------------------------------------------------
| Языковые ресурсы вывода оповещений
|--------------------------------------------------------------------------
|
| Следующие языковые ресурсы используются для вывода
| сообщений в различных сцен... |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
.register{
background:... |
<?php
use Illuminate\Database\Capsule\Manager as Capsule;
class TokenMigration
{
/**
* Run the migrations.
*
* @return void
*/
public function run()
{
Capsule::schema()->create('tokens', function($table) {
$table->increments('id');
$table->unsignedIntege... |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Tymon\JWTAuth\Contracts\JWTSubject;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable implements JWTS... |
<?php
/* forms/fields/selectize/selectize.html.twig */
class __TwigTemplate_4b588198db7d7798fc97bd0b499cf32146eef814b9f44e62b53c73f246d9dcee extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemp... |
<?php
namespace App\Http\Requests\ThongBaoDongTien;
use Illuminate\Foundation\Http\FormRequest;
use Carbon\Carbon;
class Store extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
... |
<?php
/**
* This is a backwards-compatibility shim, generated by:
* https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
*
* Beginning with MediaWiki 1.23, translation strings are stored in json files,
* and the EXTENSION.i18n.php file only exists to provide compatibility wit... |
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
p... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAnunciosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('anuncios', fun... |
<?php
require_once './Model/pedidosProveedorModel.php';
class ProveedorController {
static public function generarRequest(){
if(isset($_POST['generar']) && !empty($_POST['code'])){
$tabla="codigo_request";
$datos=array(
"codigo_rq"=>$_POST['code'],
"p... |
<?php
/**
* Copyright (c) 2016 Alorel, https://github.com/Alorel
* Licenced under MIT: https://github.com/Alorel/dropbox-v2-php/blob/master/LICENSE
*/
namespace Alorel\Dropbox\OperationKind;
use Alorel\Dropbox\Operation\Files\CopyReference\Get;
use Alorel\Dropbox\Operation\Files\CreateF... |
<!DOCTYPE html>
<html lang="en" ng-app="app" ng-cloak>
<head>
<!-- Metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Admin | Reading Nature's Library</title>
<!-- Typography -->
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,700'... |
<?php
namespace LaravelDomainOriented\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class PersistenceModel extends Model
{
use SoftDeletes, HasFactory;
protected $fillable = [
'name',
// to... |
<?php
namespace ServiceBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Users
*
* @ORM\Table(name="users", indexes={@ORM\Index(name="idflowers", columns={"idflowers"}), @ORM\Index(name="idfollowing", columns={"idfollowing"})})
* @ORM\Entity(repositoryClass="ServiceBundle\Repository\UsersRepository")
*/
cla... |
<?php
declare(strict_types=1);
namespace Ecotone\Messaging\Attribute;
use Doctrine\Common\Annotations\Annotation\Required;
use Doctrine\Common\Annotations\Annotation\Target;
#[\Attribute(\Attribute::TARGET_METHOD)]
class ServiceActivator extends InputOutputEndpointAnnotation
{
private bool $requiresReply;
p... |
<?php
namespace Drupal\twig_loader_test\Loader;
use Twig\Loader\LoaderInterface;
use Twig\Source;
/**
* A test Twig loader.
*/
class TestLoader implements LoaderInterface {
/**
* {@inheritdoc}
*/
public function getSourceContext($name) {
$name = (string) $name;
$value = $name === 'kittens' ? 'ki... |
<!DOCTYPE html>
<html>
<head>
<title>Real-Time Laravel with Pusher</title>
<meta name="csrf-token" content="{{ csrf_token() }}" />
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,200italic,300italic" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/c... |
<?php
/**
* Copyright (c) BrownBear, 2021 - Present. All Rights Reserved.
*
* This file is a part of Tuleap.
*
* Tuleap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.