text stringlengths 2 1.03M |
|---|
<?php
return [
'name' => 'Departments'
]; |
<?php
declare(strict_types=1);
namespace Stsbl\FileDistributionBundle\Twig\Extension;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
/*
* The MIT License
*
* Copyright 2021 Felix Jacobi.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeClassRoomsTableAddProductsId extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Schema;
use App\Models\Role;
class RolesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//DB engines will not allow you truncate tables because of fk cons... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By defau... |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use ... |
<?php
$this->title = Yii::t('layout', 'Template'); |
<?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 23/03/16
* Time: 23:24.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Tests\MessageBus;
use InvalidArgumentException;
/**
* C... |
<?php
/**
* This file contains the code that displays the course list.
*
* @since 2.1.0
*
* @package LearnDash\Templates\Legacy\Shortcodes
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<?php the_title( '<h2 class="ld-entry-title entry-title"><a href="' . learndash_get_step_permalink( get_the_ID(), $course_id ) ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVaccineAnimalModelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('vac... |
<?php
namespace Hauser\DiscountSet\jingdong\Request\domain\UnionOpenSellingGoodsQuery;
class Req{
private $params=array();
function __construct(){
$this->params["@type"]="com.jd.union.open.gateway.api.dto.goods.selling.SellingGoodsReq";
}
private $skuIds;
public function setS... |
--TEST--
Test vfprintf() function : usage variations - int formats with non-integer values
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
/* Prototype : int vfprintf ( resource $handle , string $format , array $args )
* Description: Write a formatted str... |
<?php
declare (strict_types=1);
namespace Rector\Doctrine\NodeAnalyzer;
use PhpParser\Node\Stmt\Class_;
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTagRemover;
use Rector\Doctrine... |
<?php
session_start();
if (isset($_POST['sublog'])) {
if ($_POST['login'] == "admin" && $_POST['pass'] == "motdepasse") {
$_SESSION['admin'] = 1;
header("Location:gestion.php");
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>UNASS Calvados</title>
<meta charset="utf-8">
<meta name="viewport" content="widt... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit2b65b22b10e86af86afd8a8ccc335fd3
{
public static $files = array (
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
'0e6d7bf4a5811bfa5cf40c5ccd... |
@extends("la.layouts.app")
@section("contentheader_title")
<a href="{{ url(config('laraadmin.adminRoute') . '/branches') }}">Branch</a> :
@endsection
@section("contentheader_description", $branch->$view_col)
@section("section", "Branches")
@section("section_url", url(config('laraadmin.adminRoute') . '/branches'))
@se... |
<?php $__env->startSection('content'); ?>
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark text-right">فیلم ها</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="... |
<div class="wrapper">
<header>
<!-- Background image -->
<div class="p-5 text-center bg-image" style="background-image: url('<?= site_url('assets/img/' . $this->fungsi->setting()->head_img) ?>'); height: 400px;">
<div class="mask" style="background-color: rgba(0, 0, 0, 0.6)">
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<!DOCTYPE html>
<html>
<head>
<title>Lock Screen | Josh Admin Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- global level css -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet" />
<!-- end of global level css -->
<!-- page... |
<?php
namespace app\controllers;
use Yii;
use app\models\ResepDokter;
use app\models\JadwalKunjungan;
use app\models\LaporanPeriksa;
use app\models\StaffDokter;
use yii\data\ActiveDataProvider;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* ResepDokterController impleme... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\model\config;
use DB;
use Storage;
class SetController extends Controller
{
/**
* 网站配置列表的显示
*
* @return \Illuminate\Http\Response
*/
public function... |
<?php
declare(strict_types=1);
/*
* This file is part of the goldeagle/takoff project.
*
* @author goldeagle <1308362@gmail.com>
*
*/
namespace _;
use function _\internal\baseIteratee;
/**
* Reduces `collection` to a value which is the accumulated result of running
* each element in `collection` thru `iter... |
<?php
//This script will handle login
session_start();
// check if the user is already logged in
if(isset($_SESSION['username']))
{
header("location: welcome.php");
exit;
}
require_once "config.php";
$username = $password = "";
$err = "";
// if request method is post
if ($_SERVER['REQUEST_METHOD'] == "POST... |
<?php
namespace App\Http\Controllers;
use App\Models\Document;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class DocumentController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
... |
<?php
namespace App\Http\Controllers;
use App\Imports\salaryImport;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use DB;
use Excel;
use File;
class salaryController extends Controller
{
public function index()
{
$result = DB::table('salary')
->join('employee', ... |
<?php
/**
* Created by PhpStorm.
*
* kookaburra
* (c) 2019 Craig Rayner <craig@craigrayner.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* User: craig
* Date: 3/10/2019
* Time: 13:44
*/
namespace Kookaburra\SchoolAdmin\... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
<!DOCTYPE html>
<html>
<head>
<title>Luxury Watches A Ecommerce Category Flat Bootstrap Resposive Website Template | Home :: w3layouts</title>
<link href="{{asset('css/bootstrap.css')}}" rel="stylesheet" type="text/css" media="all" />
<!--jQuery(necessary for Bootstrap's JavaScript plugins)-->
<script s... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit3d12d07408f72be34bfc2afc41349782
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
'25072dd6e2470089de65ae7bf... |
<div class="container-fluid">
<!-- Content Row -->
<div class="col-md-12">
<h1>COMING SOON</h1>
<p>Our Website is under construction</p>
</div>
</div> |
<?php
declare(strict_types=1);
namespace Pggns\MidocoApi\Order\StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for MakeBillingDocument4AgencyFeeTypeRequest StructType
* @subpackage Structs
*/
class MakeBillingDocument4AgencyFeeTypeRequest extends Ab... |
@extends('base_layout._layout')
@section('style')
<style>
#button{
float: left;
margin-bottom: 20px;
width: 15%;
}
</style>
@endsection
@section('body')
<!-- BEGIN SAMPLE TABLE PORTLET-->
<div class="portlet box green">
<div class="portlet-title">
<div... |
<?php
namespace Flow;
return [
new Token(Token::BLOCK_BEGIN, '{%', 1, 1),
new Token(Token::NAME, 'for', 1, 4),
new Token(Token::NAME, 'i', 1, 8),
new Token(Token::OPERATOR, 'in', 1, 10),
new Token(Token::OPERATOR, '[', 1, 13),
new Token(Token::NUMBER, '1', 1, 14),
new Token(Token::OPERATOR... |
<x-app-layout>
@include('layouts.header')
@include('layouts.menu')
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Dashboard') }}
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
... |
@extends('layouts.app')
@section('content')
<section class="cover-2 text-left" id="text">
<div class="cover-container">
<div class="cover-inner container">
<div class="row justify-center">
<div class="col-lg-5 mt-5 mb-5 text-center text-lg-left">
... |
<?php
/**
* @license Copyright 2011-2014 BitPay Inc., MIT License
*
*/
namespace Bitpay\Core\Model\ResourceModel;
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
/**
* Invoice resource
*/
class Invoice extends AbstractDb
{
/**
* Initialize resource
*
* @return void
*/
publi... |
<?php
declare(strict_types=1);
namespace JMS\Serializer\Tests\Fixtures\Doctrine;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\SerializedName;
/** @ORM\Entity */
class Author
{
/**
* @ORM\Id @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="string")
... |
<?php
namespace App\Http\Controllers\tpq\pengajar;
use App\Http\Controllers\Controller;
use App\Pengajar;
use Illuminate\Http\Request;
class PengajarController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@yield('title')</title>
@include('includes.user.style')
<!-- CSS -->
</head>
<body>
<!-- Sidebar -->
@include('includes.user.sidebar')
<!-- End Sidebar -->
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Kost extends Model
{
use HasFactory;
protected $table = 'kosts';
protected $fillable = [
'user_id',
'name',
'address',
'city',
'detail',... |
@extends('featherwebs::admin.layout')
@section('title', 'Edit Menu')
@section('content')
@component('featherwebs::admin.template.default')
@slot('heading')
<h2 class="mdl-card__title-text">Edit Menu {{ $menu->title }}</h2>
@endslot
@slot('breadcrumb')
<nav aria-labe... |
@extends('admin.layouts.main')
@section('container')
<link rel="stylesheet" href="{{asset('admin/assets/vendors/simple-datatables/style.css')}}">
<link rel="stylesheet" href="{{asset('admin/assets/vendors/toastify/toastify.css')}}">
<style>
.btn-hapus:hover {
opacity: 0.7;
}
</style>
<div class="page-he... |
<?php
$sql = mysqli_query($conn, "SELECT * FROM tb_req_absen");
?>
<div id="layoutSidenav_content">
<main>
<div class="container-fluid">
<h1 class="mt-4">Konfirmasi absensi</h1>
<ol class="breadcrumb mb-4 bg-secondary">
<li class="breadcrumb-item active text-white... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet"... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;
class User extends Authenticatable implements JWTSubject
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var arra... |
<?php
/**
* Web Access Frontend for TestSuite
*
* PHP versions 4 and 5
*
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The Open Group Test Suite License
* Redistributions of files must retai... |
<?php
/**
* GradingPeriodTest
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 ... |
<div class="card product text-left">
@if(Auth::check() && $producto->user_id == Auth::user()->id)
<div class="absolute actions">
<a href="{{url('/productos/'.$producto->id.'/edit')}}">
Editar
</a>
@include('producto.delete',['producto' => $producto])
</div>
@endif
<h1>{{ $producto->title }}<... |
<?php
namespace App\Http\Controllers\Dashboard;
use App\Contacts;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Carbon\Carbon;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Str;
use DB;
class ContactsController extends Controller
{
public function index(Request $request)
... |
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Spryker\Zed\ShoppingListDataImport\Business\DataSet;
interface ShoppingListDataSetInterface
{
/**
* @var string
*/
public const COLUMN_KEY = 'shopping_lis... |
<?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 MolliePrefix\Symfony\Component\DependencyInjection\Tests\Compiler;
use M... |
<?php
namespace App\Filament\Resources\PurchaseResource\Pages;
use App\Filament\Resources\PurchaseResource;
use Filament\Resources\Pages\ListRecords;
class ListPurchases extends ListRecords
{
protected static string $resource = PurchaseResource::class;
} |
@extends('layouts.layout')
@section('container')
<div class="container">
<div class="row space-100">
<div class="col-lg-6 col-md-12 col-xs-12">
<div class="contents">
<h2 class="head-title">Generate Github</h2>
<p>Find a professional programmer's github account and ... |
<?php
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2018 SalesAgility Ltd.
*
* This program is f... |
<?php
use Psr\Http\Message\ServerRequestInterface;
use React\EventLoop\Factory;
use React\Http\Response;
use React\Http\Server;
require __DIR__ . '/../vendor/autoload.php';
$loop = Factory::create();
$server = new Server(function (ServerRequestInterface $request) {
return new Response(
200,
arra... |
<?php
namespace frontend\assets;
use yii\web\AssetBundle;
/**
* Main frontend application asset bundle.
*/
class OrderDetailsAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/order-details.css',
'css/button.css',
];
public ... |
<?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
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Ecs\V20140526\Models;
use AlibabaCloud\SDK\Ecs\V20140526\Models\DescribeRenewalPriceResponse\priceInfo;
use AlibabaCloud\Tea\Model;
class DescribeRenewalPriceResponse extends Model
{
/**
* @var string
*/
public... |
<?php
namespace App\Controller;
use App\Entity\Groups;
use App\Form\GroupsType;
use App\Form\UserEditType;
use App\Repository\PostRepository;
use App\services\image\ImageServices;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFound... |
<?php
namespace Spatie\LaravelLumenGlide\Test\Integration;
use Spatie\Glide\GlideImage;
use Spatie\Glide\Exceptions\SourceFileDoesNotExist;
class GlideImageTest extends TestCase
{
/** @test */
public function it_can_modify_an_image()
{
$targetFile = __DIR__.'/temp/conversion.jpg';
GlideI... |
<div>
@include('livewire.admin.loyihas.add')
@include('livewire.admin.loyihas.delete')
<div class="container-fluid mt-2">
@if(session()->has('message'))
<div class="alert alert-success">{{session('message')}}
<button type="button" class="close" data-dismiss="alert" aria-l... |
<?php
include 'Conexao.php';
session_start();
$Email = $_POST['NovoEmail'];
$AlteraEmail = "update usuario set usrEmail = '$Email' where UsrCodigo = ".$_SESSION['Login'];
if (mysqli_query($oCon,$AlteraEmail)) {
echo "Tudo certo";
header('location:../ProdutosUsuario.php');
}else{
echo 'erro';
echo mysqli_err... |
<?php
global $github_api, $repo_info;
$api_fork_per_page = 100;
$forks = gh_input( 'FORK', 'README.md' );
if ( false !== $forks ) {
$forks = ( true === $forks ) ? 'README.md' : $forks;
$fork_output_type = gh_input( 'FORK_OUTPUT_TYPE', 'table' );
$fork_output_style = gh_input( 'FORK_OUTPUT_... |
<!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/css?family=Nunito:200,600" rel="stylesheet">
<!-- Style... |
<?php
/**
* Config class
*
* @author Christophe Gosiau <christophe@tigron.be>
* @author Gerry Demaret <gerry@tigron.be>
* @author Lionel Laffineur <lionel@tigron.be>
*/
namespace Skeleton\Test;
class Config {
/**
* Browser
*
* @access public
* @var string $browser
*/
public static $browser = 'firef... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="row panel-title">
<span class="col-xs-6">项目<?=isset($form['id'])?"编辑":"添加";?></span>
<div class="col-xs-6 text-right">
<button type=... |
<?php
namespace App\Http\Controllers;
use App\Imports\VoterImport;
use Exception;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
use Throwable;
class ImportExportController extends Controller
{
public function index()
{
return view('user.import');
}
public function Import(R... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404 Page Not Found</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {... |
<?php
/**
* Site by w34u
* http://www.w34u.com
* info@w34u.com
* +44 (0)1273 201344
* +44 (0)7833 512221
*
* Project: Template routines test
* Routine: test1.php
* Created: 12/05/2006
* Descrip: Testing basic template functionality, just replacing title and a couple of single line tags.
*
* Revi... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+N... |
<?php
namespace App\Repository\Modules\Issues;
use App\Entity\Modules\Issues\MyIssue;
use App\Entity\Modules\Issues\MyIssueContact;
use App\Entity\Modules\Issues\MyIssueProgress;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\OptimisticLockException;
use Doctrine\ORM\ORMExcept... |
<?php
namespace App\Controller;
use App\Entity\Users;
use App\Form\RegistrationFormType;
use App\Security\EmailVerifier;
use App\Security\UsersAuthenticator;
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use... |
<?php
declare(strict_types = 1);
namespace App\Metrics\Cache;
use App\Metrics\ProgrammesMetrics\ProgrammesMetricInterface;
interface MetricCacheInterface
{
/**
* @param ProgrammesMetricInterface[] $metrics
*/
public function cacheMetrics(array $metrics): void;
/**
* @param callable $getAl... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SelfStudyController extends Controller
{
public function cooking_challenge(){
return view('self_study.cooking_challenge.20200421_challenge');
}
public function educe_food_edu(){
return view('self_study.educe_food_e... |
<?php
$closure = function () use${0} {
}; |
<?php $__env->startPush('css'); ?>
<style>
.info-box .info-count {
margin-top: 0px !important;
}
.page-wrapper .col-md-8 .col-sm-6:first-child a .white-box .icon-box {
background-color: #0F4C82 !important;
}
.page-wrapper .col-md-8 .col-sm-6:nth-chil... |
<?php
/* TwigBundle:Exception:exception.html.twig */
class __TwigTemplate_0b1e042a73e2e0324be4b3d41b6e9c7efcaa4501b611c2919ab320a063140535 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arr... |
--TEST--
Test copy() function: usage variations - src as dir and dest as an existing file(Bug #42243)
--FILE--
<?php
/* Test copy(): Trying to copy dir to an existing file */
echo "*** Test copy() function: Trying to copy dir to file ***\n";
$file_path = __DIR__;
$file = $file_path."/copy_variation13_dir.tmp";
fclose(... |
<?php
namespace tests\Cases\Composite;
use tests\Cases\Composite\Models\Fee;
use tests\Cases\Composite\Models\Fixture;
use tests\Cases\Composite\Models\Member;
use tests\Cases\Composite\Models\RepoBuilder;
use WScore\Repository\Repo;
class CompositeTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Repo
... |
<?php
/**
* @file rmnotfound.php
*
* @autor Alex Letov
*
* User reservation not found view.
*/
$theme = Yii::app()->theme->name;
$image_url = Yii::app()->getBaseUrl(true).'/public/themes/'.$theme.'/images';
$isadmin = UserModel::isAdmin(Yii::app()->user->getId());
?>
<div class="row-fluid">
<div class="wel... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
use HasFactory;
protected $fillable = ['business_name','rfc','email'];
} |
<?php
/**
* User: Andy
* Date: 01/12/14
* Time: 13:24
*/
namespace AVCMS\Core\Security\Tests\Fixtures;
use AVCMS\Core\Security\Permissions\RolePermissionsProviderInterface;
class RolePermissionsProviderFixture implements RolePermissionsProviderInterface
{
public $permissions;
public function getRolePerm... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('events', functio... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSupplierTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('supplier_... |
--TEST--
Phar: tar-based phar, make new bzipped tar
--SKIPIF--
<?php if (!extension_loaded('phar')) die('skip'); ?>
<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
<?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>
--INI--
phar.readonly=0
--FILE--
<?php
$fname = dirname(__FILE_... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Requests\API\CreateBahasaPemanduAPIRequest;
use App\Http\Requests\API\UpdateBahasaPemanduAPIRequest;
use App\Models\BahasaPemandu;
use App\Repositories\BahasaPemanduRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\AppBaseController;
use InfyOm\Ge... |
<?php
/**
* Copyright 2017 Sage Intacct, 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
*
* or in the "LICENSE" file accompanyin... |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Addtl_credit_admin extends MY_PrivateController
{
public function __construct()
{
$this->load->model('addtl_credit_admin_model', 'mod');
parent::__construct();
}
public function index($user_id=0, $form_id=0, $leave_balance_id=0, $... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAccountTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accounts', func... |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\CanonCustom;
use JMS\Serializer\Annotation\ExclusionP... |
<?php
namespace rcms\core\base;
use yii\web\Controller;
/**
* Class BaseFrontController
* @package rcms\core\base
* @author Andrii Borodin
* @since 0.1
*/
class BaseFrontController extends Controller
{
} |
<?php
namespace App\Exports\FieldObservations;
use App\Export;
class ContributorFieldObservationsCustomExport extends CustomFieldObservationsExport
{
/**
* Database query to get the data for export.
*
* @param \App\Export $export
* @return \Illuminate\Database\Query\Builder
*/
prot... |
<?php
declare(strict_types=1);
namespace Pggns\MidocoApi\CrmSD\StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetActiveCrmMidocoSettlementRequest StructType
* @subpackage Structs
*/
class GetActiveCrmMidocoSettlementRequest extends AbstractStru... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAsmeweldprocessTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('asmewel... |
<?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 exit;
elseif($action == 'notice') {
if($method == 'GET') {
$page = param(3, 1);
$pagesize = 20;
$active = 'notice';
$notices = $user['notices'];
$type = param(2, 0);
$notice_menu = include _include(APP_PATH.'plugin/huux_notice/conf/notice_menu.conf.php');
$noticelist = notice_find_by_recvuid(... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<!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>Agency - Start Bootstrap Theme</title>
<!-- Bootstrap core CSS -... |
@extends('layouts.main')
@section('tampilan')
<div class="main-content">
<section class="section">
<div class="section-header">
<h1>Dashboard</h1>
</div>
@auth
<div class="row">
<div class="col-lg-3 col-md-2 col-sm-2 col-6">
<div class="card card-statistic-1">
<div class="ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.