text stringlengths 2 1.03M |
|---|
<?php
/**
* This file is part of the LdapTools package.
*
* (c) Chad Sikorra <Chad.Sikorra@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\LdapTools\AttributeConverter;
use LdapTools\AttributeConverter\A... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'title', 'body'
... |
@extends('layouts.backend')
@section('main')
<section class="wrapper">
<div class="row">
<div class="col-lg-9 main-chart">
<!--CUSTOM CHART START -->
<div class="border-head">
<h3>Category Form Role</h3>
</div>
<... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be... |
<?php
$menu_admin_1 = "active";
include_once("_inc_hearder.php");?>
<link href="<?=base_url()?>../assets/css/style-admin.css" rel="stylesheet">
<div class="container">
<div class="adminpage">
<div class="admin-title"><i class="far fa-check-circle"></i> แบบบันทึกข้อร้องเรียน</div>
<div class="admin-body">
... |
<div>
<section class="pt-50" style="padding: 0px;">
<div class="py-5 text-center">
<img class="d-block mx-auto mb-4" src="{{ 'https://ui-avatars.com/api/?name='.Auth::user()->name.'&size=72' }}" alt="" width="72" height="72">
<h2>Checkout form</h2>
<p class="lead">Below is an e... |
<?php
namespace Laravel\Horizon\Repositories;
use Carbon\CarbonImmutable;
use Illuminate\Contracts\Redis\Factory as RedisFactory;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Laravel\Horizon\Contracts\JobRepository;
use Laravel\Horizon\JobPayload;
class RedisJobRepository implements JobReposito... |
<?php
namespace ContainerUloKIjl;
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 getMaker_AutoCommand_MakeDockerD... |
<?php
namespace App\Controller;
use App\Entity\Activite;
use App\Entity\Association;
use App\Entity\Topic;
use App\Entity\User;
use App\Form\ActiviteType;
use App\Repository\ActiviteRepository;
use App\Repository\ActualiteRepository;
use App\Repository\AssociationRepository;
use App\Services\UploadHelper;
use Doctr... |
<?php
include('db_conn.php');
include('session.php');
if (!isset($session_id) || !isset($session_access) || $session_id == "" || $session_access != "3")
echo "<script type='text/javascript'>alert('You are not allowed to access this page.');
window.location='index.php';</script>";
?>
<!DOCTYPE html>
<ht... |
<?php
/**
* Checks that the file does not end with a closing tag.
*
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
namespace PHP_CodeSniffer\Standards\PSR2\... |
<?php
namespace AppBundle\Admin;
use AppBundle\Entity\Company;
use AppBundle\Entity\User;
use AppBundle\Validator\Constraints\OldPassword;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersRegisterStat extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (!Schema::hasTable('use... |
@extends('adminlte::page')
@section('title', 'Tipo - Transporte')
@section('content_header')
<h1>Editar Tipo</h1>
@stop
@section('content')
<div class="card">
<div class="card-body">
<form method="post" action="{{route('tipotransportes.update',$tipotransporte)}}" novalidate >
@csrf
... |
@inject('layout', 'App\Layout')
@extends('layouts.'.$layout->app(), ['page_header'=>'Page not foud', 'page_description'=>'Sorry!'])
@section('content')
<div class="col-sm-8 col-sm-offset-2">
<div class="box box-primary">
<div class="box-body">
<div class="error-page">
<h2 class="headline ... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Http\Controllers\TemplateController;
use App\ProcessItem;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;
class ProcessItemController extends Controller
{
p... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class UserModel extends CI_Model {
public function simpan()
{
$data = $this->input->post();
if(!empty($data)){
return $this->db->insert('data_siswa', $data);
}
}
public function edit($id)
{
... |
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Datagrid;... |
@extends('master')
@section('content')
<div class="container custom-login">
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<form action="enregistrer" method="POST">
@csrf
<div class="form-group">
<label for="exampleInputEmail1">Nom </label>
... |
<?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\Process\Tests;
use PHPUnit\Framework\TestCase;
use Sy... |
<?php
include('../Ezz/autoexec.php');
// Example of options array
$options = ['Столицы'=>[123=>'Moskow','WA'=>'Washington']];
$form = Ezz\form('exampleForm')
->csrf(true)
->action('./formFull.php')
->method('POST')
->fields([
Ezz\text('login')->def('runcore')->rules(['required rangelen:3,30',... |
<?php
declare(strict_types=1);
namespace SensioLabs\Deptrac\Dependency;
use SensioLabs\Deptrac\AstRunner\AstMap;
use SensioLabs\Deptrac\DependencyEmitter\DependencyEmitterInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class Analyzer
{
private $dispatcher;
private $inheritanceFlat... |
<?php
namespace frontend\modules\referrals\controllers;
use Yii;
use common\models\referral\Referraltracktesting;
use common\models\referral\Referraltrackreceiving;
use common\models\referral\Referral;
use common\models\referral\ReferralSearch;
use yii\db\Query;
use yii\data\ArrayDataProvider;
use common\models\refer... |
<!-- loader -->
<div class="loader-wrapper">
<img src="/e-learning/public/assets/gif/loader.gif" alt="">
</div>
<main class="p-5 quiz-size">
<div class="quiz-wrapper" id="quiz-div">
<a class="btn btn-primary btn-lg mb-3" href="/e-learning/public/lesson"><i class="fas fa-arrow-circle-left"></i> Back</a>
... |
<?php
namespace App\Http\Controllers\Api;
namespace App\Http\Controllers\API;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
use Illuminate\Support\Facades\Auth;
use Validator;
class UserController extends Controller
{
public $successStatus = 200;
/**
* login api
*
... |
<?php
return [
'online' => '在线',
'login' => '登录',
'logout' => '登出',
'setting' => '设置',
'name' => '名称',
'username' => '用户名',
'password' => '密码',
'password_confirmation' => '确认密码',
'... |
<?php
namespace FondOfOryx\Zed\SplittableCheckoutRestApiOrderCustomReferenceConnector\Business;
use Codeception\Test\Unit;
use FondOfOryx\Zed\SplittableCheckoutRestApiOrderCustomReferenceConnector\Business\Expander\QuoteExpanderInterface;
use Generated\Shared\Transfer\QuoteTransfer;
use Generated\Shared\Transfer\Rest... |
<?php
/**
* Amadeus
*
* Copyright 2015 Amadeus Benelux NV
*/
namespace Amadeus\Client\Struct\SalesReports\DisplayQueryReport;
/**
* CurrencyDetails
*
* @package Amadeus\Client\Struct\SalesReports\DisplayQueryReport
* @author Dieter Devlieghere <dieter.devlieghere@benelux.amadeus.com>
*/
class CurrencyDetails... |
<?php
namespace common\components;
use common\models\_base\CameraBase;
use common\models\Recorder;
use frontend\models\Camera;
use Yii;
class Common
{
public static function validatePhone($phone) {
$phone = trim($phone);
if(strpos($phone,"84")===0){
$phone = "0".substr($phone,"2");
... |
@props(['name'])
@if($name === 'down-arrow')
<svg {{ $attributes(['class' => "transform -rotate-90"]) }} width="22"
height="22" viewBox="0 0 22 22">
<g fill="none" fill-rule="evenodd">
<path stroke="#000" stroke-opacity=".012" stroke-width=".5" d="M21 1v20.16H.84V1z">
</pat... |
<?php
namespace Pagekit\Component\Filter;
/**
* This filter adds a rel="nofollow" to all HTML anchor elements.
*/
class AddRelNofollow extends AbstractFilter
{
/**
* Returns the filtered value.
*
* @param mixed $value
*
* @return string
*/
public function filter($value)
... |
<?php if (!isset($_REQUEST['url'])): ?>
<?php header("Content-Type: application/javascript") ?>
//<script>
(function(){
var scripts = document.getElementsByTagName("script");
for (var s=0;s < scripts.length;s++) {
var script = scripts[s];
if (script.src.indexOf("require.proxy.php")!=-1) {
var proxy_url ... |
<?php
namespace App\Http\Requests\Masters;
use Illuminate\Foundation\Http\FormRequest;
use App\Models\Masters\MasterSubmissionValidationRules;
class CreateMasterSubmissionValidationRulesRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
... |
@extends("layouts.plantilla")
@section("title", "Contactanos")
@section("content")
<h1>Dejanos un mensaje</h1>
<form action="{{route("contactanos.store")}}" method="post">
@csrf
<label>
Nombre:
<br>
<input type="text" name="name" value="{{old("name")}}"/>... |
<?php
declare(strict_types=1);
use Jose\Component\Encryption\Algorithm\KeyEncryption\A128KW;
use Jose\Component\Encryption\Algorithm\KeyEncryption\A192KW;
use Jose\Component\Encryption\Algorithm\KeyEncryption\A256KW;
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2020 Spomky-Labs
*
* This software may be modi... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class BandTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('band', function (Blueprint $table) {
$table->string... |
@extends('layouts.app')
@section('title')
{{__('All Service Companies')}}
@endsection
@section('page-title')
{{__('All Service Companies')}}
@endsection
@section('header')
@include('layouts.header')
@endsection
@section('sidebar')
@include('layouts.sidebar')
@endsection
@section('content')
<hr class="">
@can('User Cre... |
<?php
/*
* $Id: 92f075809a5c7900b630f1dbb6fe4b544d66279d $
*
* 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... |
<?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\Repositories;
use App\Models\Mobil;
use App\Models\TransaksiMobil;
class MobilRepository
{
protected $model = null;
public function __construct(Mobil $model)
{
$this->model = $model;
}
public function getAll()
{
return $this->model->all();
}
publ... |
@extends('index')
@section('title')
@endsection
@section('extra-css')
@endsection
@section('content')
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header bg-blue">
<h2>
BUAT DATA ADMIN KE... |
<?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.
*/
namespace App\Http\Controllers;
use App\Departamento;
use App\Secretario;
use App\Area;
use App\Professor;
use App\User;
use D... |
<?php
use Illuminate\Database\Seeder;
use App\Models\User;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$users = factory(User::class)->times(50)->make();
User::insert($users->makeVisible(['password','re... |
<?php
namespace Integration\Providers;
use Illuminate\Foundation\Testing\TestResponse;
use Illuminate\Support\Facades\Blade;
use Oloid\Providers\PatternServiceProvider;
use Tests\BaseTestCase;
use Tests\Traits\TestStubs;
class PatternServiceProviderTest extends BaseTestCase
{
use TestStubs;
/**
* @test... |
<?php
/**
* error.php
*
* @author Pedro Plowman
* @copyright Copyright © Pedro Plowman, 2017
* @link https://github.com/p2made
* @package yii2-triangle-theme
* @license MIT
*/
use yii\bootstrap\Html;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
use p2m\helpers\FA;
/* @var $this yii\web\View */
/* @v... |
<?php
class Route_Object {
private $name;
private $uri;
private $exploded;
private $action;
private $controller;
public function __construct($props) {
foreach ($props as $key => $value) {
if($key == 'options') {
foreach ($value as $option_key => $option_value) {
$this->$option_key = $option_value... |
@extends("layouts.backend")
@section("content")
<div class="content-body">
<div class="container-fluid">
<div class="row page-titles" style="margin-bottom: 15px;">
<div class="col p-md-0 col-md-4">
<a href="javascript:void(0)" onclick="javascript: window.histo... |
<?php
require_once 'core/init.php';
require '../../includes/function.php';
require '../../includes/db.php';
$user = new User();
if ($user->isLoggedIn()) {
?>
<?php
if (!$ett_hash = Input::get('emd_department_hash')) {
//Redirect::to('../index.php');
} else {
$ett_teacher = new Department(co... |
<?php
namespace App\Http\Middleware;
use Closure;
class CheckFb
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $next($request);
... |
<?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 DusanKasan\Knapsack\Tests\Helpers;
class Car extends Machine
{
/**
* @var int
*/
private $numberOfSeats;
/**
* @param string $name
* @param int $numberOfSeats
*/
public function __construct($name, $numberOfSeats)
{
parent::__construct($name);
... |
<?php
/**
* Personal data exporters.
*
* @since 3.4.0
* @package WooCommerce\Classes
*/
defined( 'ABSPATH' ) || exit;
/**
* WC_Privacy_Exporters Class.
*/
class WC_Privacy_Exporters {
/**
* Finds and exports customer data by email address.
*
* @since 3.4.0
* @param string $email_address The user email... |
@extends('layouts.app')
@section('content')
<div class="row extra-space">
<div class="col-md-12 upper-div">
<div class="especifies">
<br>
<div class="row">
<div class="col-md-12">
<h1 class="marker">Editar reunião</h1>
</div>
... |
<?php
/*
|--------------------------------------------------------------------------
| Application & Route Filters
|--------------------------------------------------------------------------
|
| Below you will find the "before" and "after" events for the application
| which may be used to do any work before or after a... |
<?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use App\Repositories\SettingRepository;
class SettingController extends ApiController
{
/**
* @var SettingRepository
*/
protected $setting;
/**
* SettingController constructor.
* @param SettingRepository $setting
... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AdminUpdateUserPicture extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
if (\Auth::check() && auth()->use... |
<?php
session_start();
include "../koneksidb.php";
if(isset($_SESSION["laf_username"])){ $username = $_SESSION["laf_username"]; }else{ die('{"status":404,"msg":"user not logged in"}'); }
$data = array();
$query = "select * from post where username='$username' order by tanggal desc";
$result = mysql_query($query,$koneks... |
{!!Html::image('user_images/'.$dataclerk->image,
null,
['class'=>'student.image', 'id'=>'showImage' , 'style'=>'width:200px; height:200px; border-radius:100px;'])!!}
<hr>
<!-- Nom Field -->
<div class="form-group">
{!! Form::label('nom', 'Nom:') !!}
<p>{{ $dataclerk->nom }}</p>
</div>
<!-- Prenom Field -->
<d... |
<?php
/**
* PHPExcel_CachedObjectStorageFactory
*
* Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Lic... |
<?php
declare(strict_types=1);
/*
* (c) 2021 Michael Joyce <mjoyce@sfu.ca>
* This source file is subject to the GPL v2, bundled
* with this source code in the file LICENSE.
*/
namespace App\Controller;
use App\Entity\Pln;
use App\Form\FileUploadType;
use App\Form\PlnType;
use App\Services\ConfigExporter;
use Ap... |
<?php
namespace Aluno\projetophp\Controller;
class ExercicioController
{
public static function exibir(){
require_once("../src/view/exemplo.php");
}
public static function exibirResultado(){
$valor1 = $_POST['valor1'];
$valor2 = $_POST['valor2'];
$soma = $valor1 + $valor2... |
<?php
/**
* GeneralSubtree
*
* PHP version 5
*
* @category File
* @package ASN1
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2016 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://phpseclib.sourceforge.net
*/
namespace phpsecl... |
@extends('layout.app')
@section('content')
<div id="content" class="main-content">
<div class="container">
<div class="container">
<div class="row">
<div class="col-lg-7 col-12 layout-spacing">
<div class="statbox widget box box-shadow">
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>SIMPAPI</title>
<!-- General CSS Files -->
... |
<?php
/* travailrealise/add.html.twig */
class __TwigTemplate_79cbeeb9fa3a6fd702bac15c59b133a429e6ff5f208225d8d2f03dca82f3c2fe extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("base2.ht... |
<?php
namespace Addons\CustomReply\Controller;
use Addons\CustomReply\Controller\BaseController;
class CustomReplyController extends BaseController {
var $model;
function _initialize() {
$this->model = $this->getModel ( 'custom_reply_news' );
parent::_initialize ();
}
// 通用插件的列表模型
public function lists() {
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddImageLinkToSchemesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('schemes'... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;
class PurchaseReturn extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'purchase_returns';
protected $guarded = ['purchase_returns'];
/**
* set... |
<?php
/**
* This file is part of Itcyborg\JWT, a simple library to handle JWT and JWS
*
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
*/
namespace Itcyborg\JWT\Signer\Ecdsa;
use Itcyborg\JWT\Signer\Ecdsa;
/**
* Signer for ECDSA SHA-384
*
* @author Luís Otávio Cobucci Oblonczyk <lcobucci@... |
<?php
/**
* Author: jayinton
*/
namespace app\common\service\email;
use app\admin\service\AdminConfigService;
use app\common\model\email\EmailSendLogModel;
use app\common\service\BaseService;
use PHPMailer\PHPMailer\PHPMailer;
/**
* 邮件服务
*
* @package app\common\service\email
*/
class EmailService extends BaseS... |
<?php
//Step 1: Load KoolReport
require_once "../../../../koolreport/autoload.php";
use \koolreport\processes\ColumnMeta;
use \koolreport\processes\Filter;
//Step 2: Creating Report class
class MyReport extends \koolreport\KoolReport
{
protected function settings()
{
return array(
"dataSou... |
<?php
namespace Google;
use Cache;
use Emergence\Logger;
use Firebase\JWT\JWT;
use Psr\Http\Message\MessageInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
class API
{
public static $clientEmail;
public static $privateKey;
public static $domain;
public static $developerKey;
public st... |
<?php
// detalhes do banco - relacionamentos:
// 1:1 - Um pra um (usuario e loja) | hasOne e belongsTo
// 1:N - um pra muito (loja e produtos) | hasMany e belongsTo
// N:N - mtos pra mtos (produtos e categorias) | belongsToMany
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Au... |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
use Illuminate\Database\Eloquent\Model as Eloquent;
class Categorie extends Eloquent
{
protected $primaryKey = 'idCateg';
public $timestamps = false;
public function produits() {
return $this->hasMany('Produit', 'categProd');... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCouponsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('coupons', funct... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, Mandrill, and others.... |
<?php
namespace Rayblair\SpacetradersPHP\Tests;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/** @test */
public function true_is_true()
{
$this->assertTrue(true);
}
} |
<?php
namespace WP_Rocket\Engine\Cache;
use WP_Filesystem_Direct;
use WP_Rocket\Engine\Activation\ActivationInterface;
use WP_Rocket\Engine\Deactivation\DeactivationInterface;
class AdvancedCache implements ActivationInterface, DeactivationInterface {
/**
* Absolute path to template files
*
* @var string
*... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
const REFUND_STATUS_PENDING = 'pending';
const REFUND_STATUS_APPLIED = 'applied';
const REFUND_STATUS_PROCESSING = 'processing';
const REFUND_STATUS_SUCCESS = 'success';
const REFUND_STATUS_FAILED = 'f... |
@extends('layouts.app')
@section('content')
@include('auth.common.content_header')
@php $form = FormGenerate::getInstance($config); @endphp
<section class="content">
<div class="row">
<div class="col-md-12">
<form role="form" id="submit_form" action="?" method="post" enctype="multipart/form-data">
{{ csrf_fi... |
@extends('header')
@section('content')
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">Hello {{ Auth::user()->name}}, Please Finish Setting up Your Account Here </h3>
</div>
<div class="box-body">
<!--<div ... |
@extends('admin.master')
@section('content')
<div id="wrap" >
<!-- HEADER SECTION -->
@include('admin.top')
<!-- END HEADER SECTION -->
<!-- MENU SECTION -->
@include('admin.left')
<!--END MENU SECTION -->
<!--PAGE CONTENT -->
<div id="con... |
<?php
/*
* Модель для сохранения расхода топлива и цены . Вызывается из FuelController-а
*
*/
namespace app\models;
use Yii;
use yii\base\Model;
class FuelForm extends Model
{
public $from;
public $to;
public $consumption;
public $cost;
public function rules()
{
return [
[['cost', 'consum... |
<?php
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Fixer\Basic;
use PhpCsFixer\A... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>FashionHub| Registration Page</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" n... |
@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">
... |
<?php
namespace Brosland\Media;
interface IFile
{
/**
* @return string
*/
public function getLabel();
/**
* @return string
*/
public function getName();
/**
* @return string
*/
public function getContentType();
/**
* @return string
*/
public function getExt();
/**
* @return \DateTime
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductImagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_i... |
@include('include.adminheader')
<body class="dashboard-analytics">
<!-- BEGIN LOADER -->
<div id="load_screen"> <div class="loader"> <div class="loader-content">
<div class="spinner-grow align-self-center"></div>
</div></div></div>
<!-- END LOADER -->
@include('include.adminnavbar')
... |
<?php
/**
* LICENSE: 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 to in writing, software
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableAbsolut extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('absoluts', func... |
--TEST--
swoole_server/task: kill task worker [SWOOLE_BASE]
--SKIPIF--
<?php
require __DIR__ . '/../../include/skipif.inc';
skip_if_darwin();
skip_if_in_valgrind();
?>
--FILE--
<?php declare(strict_types = 1);
require __DIR__ . '/../../include/bootstrap.php';
use Swoole\Server;
const PROC_NAME = 'swoole_unittest_server... |
<?php
declare(strict_types = 1);
namespace Rx\Operator;
use Rx\Disposable\CompositeDisposable;
use Rx\Disposable\EmptyDisposable;
use Rx\Disposable\SerialDisposable;
use Rx\DisposableInterface;
use Rx\ObservableInterface;
use Rx\Observer\CallbackObserver;
use Rx\ObserverInterface;
final class ConcatAllOperator impl... |
<div class="form-group row">
<label class="control-label col-md-3">Name</label>
<div class="col-md-8">
<input class="form-control" value="{{ old('name', isset($student) ? $student->name : '') }}" name="name" type="text" placeholder="Enter student name">
</div>
</div>
<div class="form-group row">
... |
<?php
$Module = array( "name" => "Departments configuration");
$ViewList = array();
$ViewList['departments'] = array(
'params' => array(),
'uparams' => array('visible_if_online','hidden','disabled','name','export'),
'functions' => array( 'list' )
);
$ViewList['new'] = array(
'params' => array(),... |
@extends('superadmin.layouts.master')
@section('content')
<body>
<!-- Main Wrapper -->
<div class="main-wrapper">
<!-- Page Wrapper -->
<div class="page-wrapper">
<div class="content container-fluid">
<!-- Page Header -->
<div class="page-header">
... |
<?php
namespace SmartUnity\AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Entity\User as BaseUser;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* Membre
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="SmartUnity\AppBundle\Entity\membreRepository")
* @UniqueEntity(fi... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
require "vendor/autoload.php";
use \Firebase\JWT\JWT;
require APPPATH . 'libraries/RestController.php';
use chriskacerguis\RestServer\RestController;
class Order extends RestController
{
public function __construct()
{
parent::__c... |
<?php
namespace App\Http\Controllers\resources\B341\remessa\cnab400;
use App\Http\Controllers\resources\generico\remessa\cnab400\Generico2;
class Registro2 extends Generico2
{
protected $meta = array(
'tipo_registro'=>array(
'tamanho'=>1,
'default'=>'2',
'tipo'=>'int',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.