text stringlengths 2 1.03M |
|---|
<?php //00551
// --------------------------
// Created by Dodols Team
// --------------------------
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ServiceProviderBill extends Model
{
protected $fillable = [
'register_id','last_reading', 'current_reading', 'receipt_number', 'bill_amount',
];
public function register(){
return $this->belongsTo('App\Register');
}
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Library | Admin Dashboard</title>
<!-- styles -->
<link rel="stylesheet" href="https://use.fontaweso... |
<?php
namespace CoreBundle\Services\Crud\Builder;
class Button
{
const TEST = 'test';
protected $options;
public function __construct(array $options = [])
{
$this->options = $options;
}
public function edit()
{
$attr = [
'class' => 'btn btn-warning btn-xs ' .... |
<?php
namespace Modules\Master\Entities;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
class Resep extends Model
{
use LogsActivity;
protected $table = 'resep';
protected $fillable = ['id_kategori','nama','deskripsi','user_input','user_update'];
protected static... |
@extends('layouts.app')
@section('content')
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "category".
*
* @property int $id
* @property string $title
*
* @property Article[] $articles
*/
class Category extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
... |
<?php
namespace App;
use Laravel\Scout\Searchable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\SoftDeletes;
class User extends Authenticatable
{
use Notifiable;
use Searchable;
use SoftDeletes;
use RecordsActivity;
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Permission;
class PermissionTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
$permissions = [
'role-list... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
//
protected $fillable = [
'category_id',
'photo_id',
'title',
'body',
];
public function user(){
return $this->belongsTo('App\User');
}
public function photo(... |
<?php
namespace app\models;
use Yii;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "article_tag".
*
* @property int $id
* @property int $article_id
* @property int $tag_id
*
* @property Tag $tag
* @property Article $article
*/
class ArticleTag extends \yii\db\ActiveRecord
{
/**
... |
<?php
namespace Psalm\Internal\Analyzer\FunctionLike;
use PhpParser;
use PhpParser\Node\Expr\ArrowFunction;
use PhpParser\Node\Expr\Closure;
use PhpParser\Node\FunctionLike;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Function_;
use Psalm\Internal\Analyzer\FunctionLikeAnalyzer;
use Psalm\Internal\Anal... |
@extends('layouts.app')
@section('header')
@endsection
@section('content')
<br>
<br>
<div class="container">
<div class="col-lg-12">
<div class="row">
<div class="formorder">
<h5 class="section-subheading text-muted">Your Data Profile</h5>
<label>Name</label>
... |
@extends('layouts.app')
@section('assets')
<link rel="stylesheet" href="{{asset('css/messages.css')}}">
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="col-12 col-md-4 mt-5">
<div class="header p-3">
<h5 class="font-weight... |
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<!-- Sidebar - Brand -->
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html">
<div class="sidebar-brand-icon rotate-n-15">
<i class="fas fa-code"></i>
</div... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\DrugAllergies;
use App\Patient;
use App\Http\Resources\DrugAllergies as DrugAllergiesResource;
use App\Http\Resources\DrugAllergiesCollection;
class DrugAllergiesController extends Controller
{
public static $messages = [
'require... |
<?php
class DB extends Kohana_DB
{
} |
@extends('layouts.admin')
@section('title')
The Expeditions | Admin-Posts
@endsection
@section('content')
<div class="container">
<div class="card shadow">
<div class="card-header d-flex align-items-center">
<h2>Posts</h2>
<a href="{{ route('posts.create') }}" class="btn btn-primar... |
<?php
namespace App\Http\Controllers\Product;
use App\Http\Controllers\ApiController;
use App\Models\Product;
use App\Models\Transaction;
use App\Models\User;
use App\Transformers\TransactionTransformer;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class ProductBuyerTransactionController extends A... |
<h1>Hello World!</h1>
<p>Welcome to ePHP.</p> |
<?php
namespace Respect\Validation\Exceptions\CountrySubdivision;
use Respect\Validation\Exceptions\CountrySubdivisionException;
/**
* Exception class for Turkmenistan country subdivision.
*
* ISO 3166-1 alpha-2: TM
*/
class TmCountrySubdivisionException extends CountrySubdivisionException
{
public static $d... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\Goods */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="goods-form">
<?php $form = ActiveForm::begin([
'options' => ['enctype' => 'multipart/form-data']
]); ?>
<?php
... |
<?php
namespace App\Util;
class ValidationRules
{
public $gradeRules = array(
'weight_id' => 'bail|required|integer',
'student_id' => 'bail|required|integer',
'assignment' => 'bail|required|alpha_num',
'grade' => 'bail|required|between:0.00,100.00'
);
public $weigh... |
<?php
namespace NAV\OnlineInvoice\Entity;
class ProductCode
{
const PRODUCT_CODE_CATEGORY_VTSZ = 'VTSZ';
const PRODUCT_CODE_CATEGORY_SZJ = 'SZJ';
const PRODUCT_CODE_CATEGORY_KN = 'KN';
const PRODUCT_CODE_CATEGORY_AHK = 'AHK';
const PRODUCT_CODE_CATEGORY_CSK = 'CSK';
const PRODUCT_CODE_CATEGORY... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Modal;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\PersonSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'เหตุการณ์เกิดกับ';
$this->params['breadcrumbs'][] = $this->title;
?>
... |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Nette;
use Nette\Utils\ObjectHelpers;
/**
* Strict class for better experience.
* - 'did you mean' hints
* - access to undeclared members t... |
@extends('master')
@section('contenido')
<div class="login">
<div class="wrap">
<ul class="breadcrumb breadcrumb__t"><a class="home" href="{{url('/inicio')}}">Inicio</a></ul>
<div class="section group">
<div class="labout span_1_of_about">
<h3>Testimonios</h3>
<div class="tes... |
<?php
class Cassava extends CI_Controller{
public function __construct()
{
parent::__construct();
$this->load->model('cassava_model');
$this->load->helper('url_helper');
}
// load the basic welcome page
public function index()
{
$data['title'] = "Cassava API Test";
$this->load->view('templates/head... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel')}} - @yi... |
@extends('dashbord.master')
@section('content')
<meta name="csrf-token" content="{{csrf_token()}}">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
@if(auth()->user()->hasPermission('create_store'))
<h1>
... |
<?php
/**
* A list of form revisions in the Form Builder Revisions panel.
*
* @since 1.7.3
*
* @var string $active_class Active item class.
* @var string $current_version_url The URL to load the current form version.
* @var string $author_id Current form author ID.
* @var array $revisions ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| MIME TYPES
| -------------------------------------------------------------------
| This file contains an array of mime types. It is used by the
| Upload class to ... |
<?php
/**
* Download button
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
?>
<a class="btn btn-primary btn-block" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">
<?php echo $dlm_download->get_the_title(); ?>
</a> |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
@extends('admin.master')
@section('rootcontent')
<section class="wrapper">
<!-- //market-->
<div class="market-updates">
<a href="#">
<div class="col-md-3 market-update-gd">
<div class="market-update-block clr-block-2">
<div class="col-md-4... |
<?php
if ( ! function_exists( 'px_set_as_active' ) ) {
/**
* Set Menu Nav as Active
*
* @param string $active_nav The current nav that should be active.
* @param string $nav_name The nav name.
* @param string $active_class_name The name of active class.
* @var function
*/
function px_set_as_active( $... |
<?php
namespace HiPay\Wallet\Mirakl\Api\HiPay\Model\Status;
use HiPay\Wallet\Mirakl\Common\AbstractEnumeration;
/**
* Constants for the error descriptions
*
* @author Ivanis Kouamé <ivanis.kouame@smile.fr>
* @copyright 2015 Smile
*/
class Error extends AbstractEnumeration
{
// HiPay Wallet error codes.
... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class AuthController extends Controller
{
public function refresToken(Request $request) {
$request->validate([
'refresh_token'... |
<?php
namespace Fwolf\Common\Collection\Component;
use Fwolf\Common\Collection\CollectionInterface;
use Fwolf\Common\Collection\Exception\ExceedCollectionSizeException;
use Fwolf\Common\Collection\Exception\KeyNotFoundException;
/**
* Implement of {@link ArrayAccessorInterface}
*
* @property array $elements
*... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAcRamoTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ac_ramo', function(Blueprint $table)
{
$table->integer('acr_id', true);
$... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
<?php
namespace Artanis\AdminCustom\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class NewPurchaseGAPSAPInvoiceNotification extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new mess... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ProductTagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_tag', func... |
<?php
include 'auth.php';
include 'config.php';
include 'kepala.php';
include 'menu.php';
include 'fungsi2.php';
$status=$_GET['status'] ;
?>
<td valign="top" class="rightColumn">
<p class="subHeader">Analisis Peperiksaan Negeri</p>
<?php
if (isset($_POST['nmiss']))
{
$tahun=$_POST['tahun'];
$ting=$_POST['ting'];
$... |
<?php
declare(strict_types=1);
/*
* This file is part of the "Symphony CMS: Section Builder" repository.
*
* Copyright 2018-2020 Alannah Kearney <hi@alannahkearney.com>
*
* For the full copyright and license information, please view the LICENCE
* file that was distributed with this source code.
*/
namespace p... |
<?php
namespace App\Models;
use App\Helpers;
use App\Traits\ModelTranslation;
use Illuminate\Database\Eloquent\Model;
use DB;
/**
* Model
*/
class Product extends Model
{
use ModelTranslation;
public $timestamps = false;
/**
* @var string The database table used by the model.
*/
public ... |
<?php
require APPPATH . '/libraries/ImplementJwt.php';
class Test extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->objOfJwt = new ImplementJwt();
header('Content-Type: application/json');
}
/////////// Generating Token and put user data into token ///////////
public f... |
<?php
namespace frontend\controllers;
use Yii;
use frontend\models\Post;
use frontend\models\PostSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* PostController implements the CRUD actions for Post model.
*/
class PostController extends Controller
{
public fu... |
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\Task\Listener;
use Hyperf\Event\Contract\ListenerInterface;
use ... |
<?php
namespace Codelegacy\RequestPrice\Block\Adminhtml\Price\Edit;
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
class ResetButton extends GenericButton implements ButtonProviderInterface
{
/**
* @return array
* @codeCoverageIgnore
*/
public function getButto... |
<?php
/**
* pre-xgettext function. Initializes a new PO file for a given locale
*/
class Loco_admin_init_InitPotController extends Loco_admin_bundle_BaseController {
/**
* {@inheritdoc}
*/
public function init(){
parent::init();
$this->enqueueStyle('poinit');
//
... |
<?php
namespace App\Http\Requests;
use Illuminate\Support\Facades\Config;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
class Request extends FormRequest
{
/**
* The request repository implementation.
*
* @var \App\Repositories\Repository
*/
pr... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Styles') }}
</h2>
</x-slot>
<div class="py-2">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="py-8">
styles
</... |
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">
<title>@yield('title')</title>
<link rel="icon" type="image/x-icon" href="{{asset('admin/img/favicon.ico')}}"/>... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateConductorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('conductors',... |
<?php
namespace MyEnterprise\Service\Factory;
use Interop\Container\ContainerInterface;
use MyEnterprise\Service\VatManager;
/**
* This is the factory class for VatManager service. The purpose of the factory
* is to instantiate the service and pass it dependencies (inject dependencies).
*/
class VatManagerFactory
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class Review extends Model
{
use HasFactory, Notifiable;
protected $fillable = [
'reporter_name',
'reporter_profile_link',
... |
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<!--begin::Head-->
<head><base href="">
<meta charset="utf-8" />
<title>@yield('title') - {{ config('app.name') }}</title>
<meta name="description" content="@yield('meta_description', config('app.name'))" />
<meta name="viewport" content="width=devi... |
<?php
namespace App\Providers;
use App\Question;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use function foo\func;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
... |
<?php
namespace pocketmine\item;
class ItemString extends Item {
/**
* ItemString constructor.
*
* @param int $meta
* @param int $count
*/
public function __construct($meta = 0, $count = 1){
parent::__construct(self::STRING, $meta, $count, "String");
}
} |
<?php
namespace NotificationBundle\Entity;
use AppBundle\Entity\Part\TimeTrackableTrait;
use AppBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints\NotBlank;
/**
* Notification
*
* @ORM\Table(name="notification")
* @ORM\Entity(repositoryClass="NotificationBundle\Repos... |
<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Tests\Event;
use App\Entity\User;
use App\Event\UserInteractiveLoginEvent;
use PHPUnit\Framework\TestCase;
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class HistoryBahanBaku extends Model
{
use HasFactory;
public $timestamps = false;
protected $fillable = [
'nama',
'kode',
'user_id',
'jumlah',
... |
<?php
namespace App\Listeners;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
class MakeAuthorFullname
{
/**
* Handle the event.
*
* @param object $event
* @return void
*/
public function handle($event)
{
if($event->dataType->name =... |
<?php
namespace App\Http\Requests;
use App\Models\Image;
use Illuminate\Foundation\Http\FormRequest;
class StoreImageRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Requests\GangaRequest;
use App\Models\Ganga;
use Illuminate\Http\Request;
class apiGangaController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
... |
<!DOCTYPE html>
<html lang="en">
<head>
<?php $this->load->view('parts/header.php') ?>
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<?php $this->load->view('parts/sidebar.php') ?>
<!-- End of Sidebar -->
<!-- Content Wrapper --... |
<?php
namespace App\Http\Middleware;
use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null ... |
<?php
/**
* 構成要素:ウィジェット:サイト内検索
* Elements/widgets/search.php
*/
if (!empty($this->passedArgs['num'])) {
$url = array('plugin' => null, 'controller' => 'contents', 'num' => $this->passedArgs['num']);
} else {
$url = array('plugin' => null, 'controller' => 'contents');
}
?>
<?php if( $name && $use_title ): ?>
<div ... |
<?php
/**
* The MIT License (MIT)
*
* Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved.
*
* 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 without restriction, including ... |
<?php
require_once dirname(__DIR__) . '/inc/config.php';
require_once ROOT_PATH . '_class/query.php';
require_once ROOT_PATH . '_class/session.php';
if (empty($_POST['azione'])) {
header('Location: ' . GESTIONE);
exit();
}
switch ($_POST['azione']) {
case 'nuovo':
if (!empty($_POST[... |
<?php
/**
* class definition
*
* PHP version >=7.1
*
* Copyright (c) 2012-2017 Doug Bird.
* All Rights Reserved.
*
* COPYRIGHT NOTICE:
* The flat framework. https://github.com/katmore/flat
* Copyright (c) 2012-2017 Doug Bird.
* ALL RIGHTS RESERVED. THIS COPYRIGHT APPLIES TO THE ENTIRE CONTENTS OF TH... |
--TEST--
Test array_udiff_uassoc() function : usage variation
--FILE--
<?php
/* Prototype : array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)
* Description: Returns the entries of arr1 that have values which are not present in any of the others arguments ... |
<?php
namespace Database\Seeders;
use Illuminate\Support\Str;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Modules\Media\Models\MediaFile;
class General extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//Settin... |
<?php
/**
* Copyright (c) 2017-present Ganbaro Digital Ltd
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your ... |
<?php
/**
* Created by PhpStorm.
* User: dell
* Date: 2018/9/7
* Time: 10:00
*/
namespace app\admin\service;
use app\admin\model\User;
use app\admin\model\LoginLog;
use app\admin\model\AuthGroupAccess;
use think\facade\Request;
use app\admin\traits\Result;
class UserService
{
use Result;
/**
* 验证登... |
<?php
/* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\stylecustomizer\inline\styleset$basefontsize@[annot]][1]/ */
/* Type: array */
/* Expiration: 2022-02-26T19:24:03+08:00 */
$loaded = true;
$expiration = 1645874643;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_d... |
<?php
/**
* Elgg text input
* Displays a text input field
*
* @package Elgg
* @subpackage Core
*
* @uses $vars['class'] Additional CSS class
*/
$vars['class'] = (array) elgg_extract('class', $vars, []);
$vars['class'][] = 'elgg-input-text';
$defaults = array(
'value' => '',
'disabled' => false,
'type' => '... |
<?php
declare(strict_types=1);
namespace HoPeter1018\DoctrineFullTextSearchBundle\Formatter;
interface FormatterInterface
{
public function format($value): string;
} |
<?php
namespace Faker\Provider\ru_RU;
class Person extends \Faker\Provider\Person
{
protected static $maleNameFormats = array(
'{{firstNameMale}} {{middleNameMale}} {{lastName}}',
'{{lastName}} {{firstNameMale}} {{middleNameMale}}',
);
/**
* This provider uses wikipedia's 250 top rus... |
@extends('layouts.frontLayout.front_design')
@section('content')
<section id="form">
<!--form-->
<div class="container">
<div class="breadcrumbs">
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li class="active">Order Review</li>
</ol>
... |
<?php
/**
* Class TotalsTest.
*/
class TotalsTest extends Orchestra\Testbench\TestCase
{
use \LukePOLO\LaraCart\Tests\LaraCartTestTrait;
/**
* Test total discounts.
*/
public function testTotalDiscount()
{
$this->addItem(1, 10);
$fixedCoupon = new LukePOLO\LaraCart\Coupons... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Report;
/**
* ReportSearch represents the model behind the search form about `app\models\Report`.
*/
class ReportSearch extends Report
{
/**
* @inheritdoc
*/
public function rules()
{
... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\User;
/**
* UserSearch represents the model behind the search form about `app\models\User`.
*/
class UserSearch extends User {
/**
* @inheritdoc
*/
public function rules() {
return [
... |
<?php
use Illuminate\Support\Facades\Route;
define('PAGINATION_COUNT',10);
Route::group(['namespace' => 'Admin', 'middleware' => 'Auth:admin'], function () {
Route::get('/', 'DashboardController@index')->name('admin.dashboard');
// end of authentication
Route::group(['prefix'=>'languages'],function(... |
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Ubah Anggaran SIMDA <?=$satker['nama_satker'] ?></h3>
<div class="box-tools pull-right">
<a href="<?=base_url('referensi') ?>" class="btn btn-box-tool" data-toggle="tooltip" title="Kembali"><i class="fa fa-times"></i></a... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class create_vendors_table extends Model
{
use HasFactory;
} |
<?php namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class Variant extends Migration
{
public function up()
{
$this->forge->addField([
'id' =>
[
'type' => 'INT',
'constraint' => 11,
'unsigned' => true,
'auto_increment'=> true
],
'name' =>
[
'typ... |
<?php
/* FOSUserBundle:Profile:show_content.html.twig */
class __TwigTemplate_8382ebf0be7d1202ad65548d5b2d9b778b4621ac486ff49cce933be2f892e061 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks =... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
@extends('cp/layouts.app')
@section('active-main-menu-video', 'opened')
@section('title')
Video: @yield('section-title')
@endsection
@section ('appheadercss')
@yield('section-css')
@endsection
@section ('appbottomjs')
@yield('section-js')
@endsection
@section ('page-content')
<header class="page-content-header"... |
<div class="list-group sticky-top">
<a href="{{ route('ki') }}" class="list-group-item list-group-item-custom list-group-item-action d-flex justify-content-between align-items-center @if($active == 'orders') active @endif">
Все заявки
@isset($orders)
<span class="badge badge-light badge-pill">{{count($ord... |
<?php
namespace WS\Utils\Collections\Functions\Group;
use PHPUnit\Framework\TestCase;
use WS\Utils\Collections\CollectionFactory;
use WS\Utils\Collections\Functions\Group\Aggregator\Count;
class GroupTest extends TestCase
{
public function arrayCases(): array
{
return [
[
... |
<?php
declare(strict_types=1);
namespace App\Tests;
use App\Tests\FunctionalTester;
final class IndexFunctionalCest
{
public function _before(FunctionalTester $I)
{
$I->wantTo('index page works.');
$I->amOnPage('/');
}
public function testIndexPage(FunctionalTester $I): void
{
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\DB;
use App\Models\Matches;
class MatchesSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
static public function run()
{
... |
<?php declare(strict_types=1);
namespace FeedIo;
use DateTime;
use DomDocument;
use DomElement;
use FeedIo\Adapter\ClientInterface;
use Psr\Log\LoggerInterface;
class Explorer
{
const VALID_TYPES = [
'application/atom+xml',
'application/rss+xml'
];
public function __construct(
pr... |
<?php
/**
* Fuel
*
* Fuel is a fast, lightweight, community driven PHP5 framework.
*
* @package Fuel
* @version 1.7
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2014 Fuel Development Team
* @link http://fuelphp.com
*/
/**
* NOTICE:
*
* If you need to make... |
<?php
/**
* Copyright (c) 2010-2015 Arne Blankerts <arne@blankerts.de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright... |
<?php
namespace HuaweiCloud\SDK\Iam\V3\Model;
use \ArrayAccess;
use HuaweiCloud\SDK\Core\Utils\ObjectSerializer;
use HuaweiCloud\SDK\Core\Utils\ModelInterface;
use HuaweiCloud\SDK\Core\SdkResponse;
class IdentityproviderOption implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* Th... |
<?php
namespace ExtensionsValley\Menumanager\Models;
use Illuminate\Database\Eloquent\Model;
use ExtensionsValley\Dashboard\Models\Extension;
use Illuminate\Database\Eloquent\SoftDeletes;
class Menuitems extends Model
{
use SoftDeletes;
/**
* The database table used by the model.
*
* @var str... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.