text stringlengths 2 1.03M |
|---|
<div class="widget-body table-responsive">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="col-sm-6 col-xs-12">
<div class="col-sm-4 col-md-2 col-xs-12">
<label for="search">Show Results:</label>
</div>
... |
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-08-09 at 18:11:13.
*/
class Mageflow_Connect_Helper_DataTest extends PHPUnit_Framework_TestCase
{
/**
* @var Mageflow_Connect_Helper_Data
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
... |
<?php declare(strict_types=1);
namespace Rodacker\Sleddog\Test\Training\Speed;
use PHPUnit\Framework\TestCase;
use Rodacker\Sleddog\Training\Unit;
use Rodacker\Sleddog\Training\Speed\SpeedUnit;
class SpeedUnitTest extends TestCase
{
public function test_create_km_per_hour_speed_unit(): void
{
$unit =... |
<?php
namespace Test\Feature\TRegx\CleanRegex\Replace\focus\by\map;
use PHPUnit\Framework\TestCase;
use TRegx\CleanRegex\Exception\FocusGroupNotMatchedException;
/**
* @coversNothing
*/
class ReplacePatternTest extends TestCase
{
/**
* @test
*/
public function shouldReplace_focus_by_map()
{
... |
<?php
/**
* @see https://github.com/rpdesignerfly/access-control
* @copyright Copyright (c) 2018 Ricardo Pereira Dias (https://rpdesignerfly.github.io)
* @license https://github.com/rpdesignerfly/access-control/blob/master/license.md
*/
declare(strict_types=1);
use Illuminate\Support\Facades\Schema;
use I... |
<?php
namespace App;
use Laravel\Passport\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
use HasApiTokens, Notifiable, HasRoles;
/**
* The attributes that are mass... |
@extends ('index')
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@section ('judul_halaman', 'Kolom Edit Info Menarik 48')
<title>Info 48(Edit)</title>
<link rel="styl... |
<?php
/**
* This class is the controller for the index resource
*
* @author Linus Norton <linusnorton@gmail.com>
*/
class Index extends Controller {
/**
* This class provides the implementation for the home request. The
* annotations below map the "home" request to this method and sets the
* vi... |
<a href="{{ route('login') }}">admin</a>
<a href="">Client</a>
|
<?php
/**
* Модуль Пользователи.
* Этот модуль содержит все классы для работы с пользователями, авторизации и аунтификации в системе.
*
* @package App\Modules\User
* @since 1.0
* @version 1.0
*/
namespace App\Modules\User\Pipes\Create;
use App\Models\Contracts\Pipe;
use App\Modules\User\Repositories\User;
use ... |
<?php
if (!defined('IN_WACKO'))
{
exit;
}
$this->ensure_page();
$tpl->page = $this->compose_link_to_page($this->tag, '', '');
if ($user = $this->get_user())
{
$user_name = mb_strtolower($this->get_user_name());
$user_id = $this->get_user_id();
$registered = true;
}
else
{
$user_name = GUEST;
$registered = fal... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Donator extends Model
{
public function donations(){
return $this->hasMany(Donation::class)->get()->all();
}
}
|
<?php # -*- coding: utf-8 -*-
/*
* This file is part of the MultilingualPress package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Inpsyde\MultilingualPress\Activation;
... |
<?php
namespace App\Http\Controllers\admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class coursecategoryController extends Controller
{
public function __construct()
{
$this->data= \App\system::getmasterdata();
}
public function index()
{
$this->data['cou... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, ... |
<?php
namespace EGOL\ReisenLizenzPayment\Requests;
use App\Http\Requests\Request;
class CreatePaymentHistoryRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... |
<?php
/**
* @author PhpTheme Dev Team <dev@getphptheme.com>
* @link http://getphptheme.com
* @license MIT
*/
namespace PhpTheme\Themes\Bootstrap4;
class GridHeaderButton extends GridHeaderLink
{
} |
<?php
namespace ContainerREX4rqs;
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 getForm_ServerParamsService exten... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Cviebrock\EloquentSluggable\Sluggable;
use Kyslik\ColumnSortable\Sortable;
class PetInformartion extends Model
{
use Sluggable;
use HasFactory, Sortable;
protected $table = 'pet... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\ResizeImage;
class MediaGallery extends Model
{
//返回图片上传用户
public function user() {
return $this->hasOne('App\User');
}
//返回所属产品
public function product() {
return $this->belongsTo('App\Product');
}
//保存产品图
public static function... |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\rest;
use Yii;
use yii\base\Component;
use yii\base\Model;
use yii\data\DataProviderInterface;
use yii\data\Pagination;
use yii\helpers\ArrayHelper;
use ... |
<!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">
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
<title>CTFU</title>
</head>
<style>
.row, .align-items-center,... |
<?php
namespace Modules\Initializer\Traits;
trait ReactivityTrait {
protected static function bootReactivityTrait() {
static::saving(function ($model) {
//$attributes = $model->getConncetion()->getSchemaBuilder()->get
});
static::saved(function($model) {
});
}
} |
<header class="header dark-bg">
<div class="toggle-nav">
<div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i class="icon_menu"></i></div>
</div>
<!--logo start-->
<a href="/dashboard" class="logo"> Max <span class="lite">Blog</span... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/6/5
* Time: 8:57
*/
namespace Liang\Models;
use AvoRed\Ecommerce\Models\Database\User;
class Article extends BaseModel
{
protected $fillable = ['title','content','status','created_by','tags'];
public function user(){
return $t... |
<?php
/*
* DataTables example server-side processing script.
*
* Please note that this script is intentionally extremely simply to show how
* server-side processing can be implemented, and probably shouldn't be used as
* the basis for a large complex system. It is suitable for simple use cases as
* for learning... |
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from doccure-html.dreamguystech.com/template/patient-profile.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 22 Mar 2021 19:28:23 GMT -->
<head>
<meta charset="utf-8">
<title>Doccure</title>
<meta name="viewport" content="width=device-width, initial-scale=1.... |
<?php
namespace App\Http\Controllers;
use App\Models\Order;
use App\Models\Product;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Unicodeveloper\Paystack\Facades\Paystack;
class PaymentController extends Controller
{
/**
* Redirect the User to Paystack Payment Page... |
<?php
declare(strict_types=1);
namespace Pollen\WpTerm;
use Pollen\Support\Concerns\BootableTrait;
use Pollen\Support\Concerns\ConfigBagAwareTrait;
use Pollen\Support\Exception\ManagerRuntimeException;
use Pollen\Support\Proxy\ContainerProxy;
use Psr\Container\ContainerInterface as Container;
use WP_Taxonomy;
class... |
<?php
require_once 'Figure.php';
class Triangle extends Figure {
public function getArea(): float {
return $this->width * $this->height / 2;
}
}
|
<?php
declare (strict_types=1);
namespace Rector\Transform\Rector\StaticCall;
use PhpParser\Node;
use PhpParser\Node\Expr\New_;
use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Name\FullyQualified;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Rector\AbstractRector;
use Rector\Tra... |
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class RegisterConfirmationController extends Controller
{
public function index()
{
$user = User::where('confirmation_token', request('token'))
->first();
... |
<?php
/**
* 管理员后台会员模块设置
*/
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
pc_base::load_sys_class('format', '', 0);
class member_setting extends admin {
private $db;
function __construct() {
parent::__construct();
$this->db = pc_base:... |
<?php
declare(strict_types=1);
namespace Ssch\TYPO3Rector\Tests\Rector\v8\v0\TimeTrackerInsteadOfNullTimeTracker;
use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
final class TimeTrackerInsteadOfNullTimeTrackerRectorTest extends AbstractRectorTestCase
{
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = [
'title', 'file', 'description', 'is_visible', 'is_sticked', 'type_id'
];
public function user()
{
return $this->belongsTo('App\User');
}
public function commen... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Requests\API\CreateUserAPIRequest;
use App\Http\Requests\API\UpdateUserAPIRequest;
use App\Http\Requests\UserSubscriptionRequest;
use App\Models\User;
use App\Repositories\UserRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\AppBaseController;
us... |
@extends('adminlte::page')
@section('title', 'Permissões disponíveis para o Cargo')
@section('content_header')
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('admin.index') }}">Dashboard</a></li>
<li class="breadcrumb-item active"><a href="{{ route('roles.index') }}" class="... |
<?php
namespace Yurun\PaySDK\AlipayApp\Params\Query;
use Yurun\PaySDK\AlipayRequestBase;
/**
* 支付宝统一收单线下交易查询请求类.
*/
class Request extends AlipayRequestBase
{
/**
* 接口名称.
*
* @var string
*/
public $method = 'alipay.trade.query';
/**
* 详见:https://docs.open.alipay.com/common/1051... |
<?php
// config for TriventoEducacao/ClassName
return [
'seller_id'=>env('GET_NET_SELLER_ID'),
'base_url'=>env('GET_NET_BASE_URL', 'https://api-sandbox.getnet.com.br'),
'client'=>env('GET_NET_CLIENT'),
'secret'=>env('GET_NET_SECRET'),
'debug'=>false,
];
|
<?php
include("get.php");
include("update.php");
include("control.php");
include("ajax.php");
?>
<form method="post">
<div class="sub-header clearfix">
<div class="content">
<h2>Manage Recipes <?php echo $date_server;?></h2>
<select class="input-sel... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\ExamQueRel;
use Illuminate\Support\Facades\DB;
class test01 extends Controller
{
public function index() {
DB::table('users')->insert(['name'=>'helloo']);
$users = DB::table('users')->get();
ech... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Banger & Co.</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="... |
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Tests\TestCase;
class A03ApiSaveBackTest extends TestCase
{
use DatabaseTransactions;
/** @te... |
<?php
/* @var $this yii\web\View */
/* @var $model src\forms\Store\CategoryForm */
$this->title = 'Create Category';
$this->params['breadcrumbs'][] = ['label' => 'Categories', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="category-create">
<?= $this->render('_form', [
... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\APIs\ApiFacilityController;
use App\Http\Requests;
use App\Facility;
use App\Lang;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Request;
use App\Http\Controllers\Controller;
class A... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PersonalAccount extends Model
{
use HasFactory;
protected $table = 'personal_accounts';
protected $guarded = [];
public function account() {
return $this->belongs... |
<div class="one_half">
<section class="title">
<h4><?php echo lang('pam.settings_title'); ?></h4>
</section>
<section class="item">
<div class="content">
<?php echo form_open(uri_string(), 'class="crud"'); ?>
<?php echo form_hidden('id', $settings->id); ?>
<div class="form_inputs">
<fieldset>
<ul... |
<?php
session_start();
include("includes/config.php");
$_SESSION['login']=="";
date_default_timezone_set('Asia/Kolkata');
$ldate=date( 'd-m-Y h:i:s A', time () );
mysqli_query($bd,"UPDATE userlog SET logout = '$ldate' WHERE username = '".$_SESSION['login']."' ORDER BY id DESC LIMIT 1");
session_unset();
?>
<script la... |
@extends('layouts.app', ['activePage' => 'upgade', 'titlePage' => 'Upgrade to PRO'])
@section('content')
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-8 ml-auto mr-auto">
<div class="card">
<div class="card-header card-header-primary">
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class FileUpload extends Model
{
use HasFactory;
protected $guarded = [];
}
|
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Setup;
/**
* Interface for data upgrades of a module
*
* @api
*/
interface UpgradeDataInterface
{
/**
* Upgrades data for a module
*
* @param ModuleDataSetupInterfa... |
<?php
@extends('Layout.app')
@section('content')
<h1>Lista de Marketing</h1>
<table style="width:100%">
<tr>
<th>Nome</th>
<th>Descrição</th>
<th>Evento</th>
<th>Ações</th>
</tr>
@foreach ($atracoes as $atracao)
<tr>
... |
@extends('layouts.admin')
@section('content')
<div class="app-content content">
<div class="content-wrapper">
<div class="content-header row">
<div class="content-header-left col-md-6 col-12 mb-2">
<div class="row breadcrumbs-top">
<di... |
<?hh
function test($x) {
$y = ($x ? 5 : 3) + 5;
return array($y + 1, $y + 1,);
}
<<__EntryPoint>>
function main_cse_assert() {
var_dump(test(0));
}
|
@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">{{ __('Login') }}</div>
<div class="card-body">
<form method="POST... |
<?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\Services\Interfaces;
use App\Models\Users\User;
interface IUserService extends IModelService
{
public function registerUser(string $email, string $password) : User;
} |
<?php
/**
* config.php template
*/
return call_user_func( function(){
// initialize
/** コンフィグオブジェクト */
$conf = new stdClass;
// project
/** サイト名 */
$conf->name = 'Pickles 2 Practice 1';
/** コピーライト表記 */
$conf->copyright = 'Tomoya Koyanagi';
/** ドメイン(本番環境のドメイン) */
$conf->domain = null;
/** コンテンツルートディレクト... |
@extends('layouts.backend')
@section('admin-content')
<div class="content-wrapper">
<div class="box box-primary">
@include('flashMsg.flashmessages')
<div class="box-header">
<h3>
Pending Orders
</h3>
</div>
<... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="icon" type="image/png" href="{{ asset('images/icon.ico') }}">
<title>sinapsis</title>
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link href="{{ asset('css/table/table.css') }}" rel="stylesh... |
<?php
/**
* @package SubdomainBlacklist
* @author Michał Dudek <michal@michaldudek.pl>
*
* @copyright Copyright (c) 2014, Michał Dudek
* @license MIT
*/
namespace MD\SubdomainBlacklist;
/**
* Common words that your users shouldn't use when setting up accounts.
*/
class SubdomainBlacklist
{
/**
* The... |
<!DOCTYPE html>
<html>
<head>
<title>first site</title>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width,initial-scale=1">
<!---Fontawesome--->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3... |
@extends('layouts.frontend_app')
@section('seo_title')
Sukrapath Cooperative| Gallery| {{ $album->category_name }}
@endsection
@section('content')
<section class="inner-breadcrumb" style="background-image: url({{ asset(Storage::url($album->thumbnail_image)) }});">
<div class="container">
<div class="inner-... |
<?php
/**
* @package icons
* @author Syahril Hermana
*/
class Icons
{
var $CI = NULL;
function __construct(){
$this->CI =& get_instance();
}
public function glyphicons()
{
$glyphicons = array(
'Home' => 'md md-home',
'Computer' => 'md md-computer',
... |
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sobre</title>
<!--links-->
<link rel="stylesheet" href="assets/css/m... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php
/**
* PgUtils
*
* @author Nurlan Mukhanov <nurike@gmail.com>
* @copyright 2020 Nurlan Mukhanov
* @license https://en.wikipedia.org/wiki/MIT_License MIT License
* @link https://github.com/Falseclock/dbd-common
*/
declare(strict_types=1);
namespace DBD\Common;
use DBD\DBD;
use DBD\Entity\Column;
... |
<?php
session_start();
$obj = new stdClass();
$obj->result = true;
$obj->is_connected = isset($_SESSION["user_id"]);
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
echo json_encode($obj);
|
<?php
/*
* BloonJPHP
* Habbo R63 Post-Shuffle
* Based on the work of Burak (burak@burak.fr)
*
* https://bloon.burak.fr/ - https://github.com/BurakDev/BloonJPHP
*/
class CatalogEvents {
public function __construct() {
$this->initializeEvents();
}
private function initializeEvents() {
... |
<?php
/* @var $this ForecastingController */
/* @var $model Forecasting */
/* @var $form CActiveForm */
?>
<div class="wide form">
<?php $form=$this->beginWidget('CActiveForm', array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get',
)); ?>
<div class="row">
<?php echo $form->label($model,'id'); ?... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script type="text/javascript" src="collect.js">
</script>
<title></title>
</head>
<body>
<div>
<h3>Current interval: (seconds)</h3>
<span id="current_interval"><?php echo $current_interval/1000; ?></span>
<br/><br/>
<fieldset>
<l... |
<?php
namespace Database\Seeders;
use App\NewsPost;
use Illuminate\Database\Seeder;
class NewsPostSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
NewsPost::create([
'user_id' => 1,
'news_category_id' => ... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGithubTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('social_github_users', function(Blueprint $table) {
$table->increments('id')... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\MonedaController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your applicat... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
namespace j0hnys\Trident\Tests\Integration;
use j0hnys\Trident\Tests\Base\TestCase;
use j0hnys\Trident\Builders\Setup\Install;
use j0hnys\Trident\Builders\Workflow;
use j0hnys\Trident\Console\Commands\GenerateWorkflow;
class GenerateWorkflowTest extends TestCase
{
private $td_entity_name;
private $work... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CinemaDetail extends Model
{
protected $fillable = ['cinema_id', 'film_id'];
use HasFactory;
}
|
<form action="<?= $router($action); ?>" method="<?= $method; ?>">
<?php if (!empty($grids)) : ?>
<?= $this(reset($grids)); ?>
<?php else :?>
Where my grid
<?php endif; ?>
</form>
|
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Url\Helper;
class DataTest extends \PHPUnit\Framework\TestCase
{
/**
* @var \Magento\Framework\Url\Helper\Data
*/
protected $_helper = null;
protected function setU... |
<?php
return [
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, ... |
<?php
namespace Kusabi\Native\Benchmarks;
/**
* @Revs(10000)
* @Iterations(20)
* @OutputTimeUnit("seconds")
* @OutputMode("throughput")
*/
class Bench
{
}
|
<?php
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author Robin Appelman <robin@icewind.nl>
*
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Lice... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
include '../dbh.php';
$itemID = $_GET['itemID'];
$email = $_GET['email'];
$query = "SELECT * FROM users, transactions, shipping, thebag, offers, products WHERE transactions.transactionID = '$itemID' AND transactions.transactionID = shipping.transactionID AND transactions.sellerID = users.uid AND u... |
<?php
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) Jonathan H. Wage <jonwage@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Base... |
@extends('_layouts._layout_site')
@include('_layouts._includes._head')
@include('_layouts._includes._validators_jquery')
@section('head')@endsection
@section('titulo')@lang('bocais.bocais')@endsection
@section('topo_detalhe')
<div class="container-fluid topo">
<div class="row align-items-start">
... |
<?php
require_once 'conexao.php';
$conn = new Conexao();
$sql = 'SELECT * FROM cliente;';
$res = mysqli_query($conn->conectar(), $sql);
if (!$res)
{
echo "Não foi possível listar os clientes";
}
$linha = mysqli_fetch_assoc($res);
$total = mysqli_num_rows($res);
?>
<htm... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Subcategory extends Model
{
protected $table = 'expense_categories';
public $fillable = [
'subcategory_name',
'category_id'
];
public function __construct(array $a... |
<?php
/**
* User: andrew
* Date: 13.02.2018
* Time: 12:15.
*/
namespace andrew72ru\QueryBuilder;
use andrew72ru\QueryBuilder\Exceptions\ParserException;
/**
* Separate class for build query parameter for builder.
*/
class QueryParam
{
/**
* @var string Parameter name
*/
private $name;
/*... |
@extends('layouts.layout')
@section('title', ' Periodos académicos |')
@section('content')
<main class="c-main">
<div class="container-fluid">
<div class="fade-in">
@include('partials.success')
<div class="row">
<div class="col-lg-12">
<div class="card card-accent-primar... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('masters', function (Blu... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTemanTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('teman', function ... |
<?php defined('COREPATH') or exit('No direct script access allowed'); ?>
WARNING - 2020-07-06 06:55:15 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
WARNING - 2020-07-06 06:55:16 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
WARNING - ... |
<?php
namespace Grimzy\LaravelMysqlSpatial;
use Doctrine\DBAL\Types\Type as DoctrineType;
use Grimzy\LaravelMysqlSpatial\Connectors\ConnectionFactory;
use Grimzy\LaravelMysqlSpatial\Doctrine\Geometry;
use Grimzy\LaravelMysqlSpatial\Doctrine\GeometryCollection;
use Grimzy\LaravelMysqlSpatial\Doctrine\LineString;
use G... |
<?php /* Smarty version 2.6.18, created on 2017-07-24 20:10:00
compiled from form.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'css_safe', 'form.tpl', 32, false),array('modifier', 'explode', 'form.tpl', 74, false),a... |
<?php
use App\Model\Editor;
use PHPUnit\Framework\TestCase;
class EditorTest extends TestCase
{
/** @var \App\Model\Editor $editor */
protected $editor;
/** @before */
public function setup(): void
{
$this->editor = new Editor('fname', 'lname', 'bole 04', '+251911223344', 'emp@ourmail.com');
}
/** @after *... |
<?php
$LANG = array(
'organization' => 'Įmonė',
'name' => 'Pavadinimas',
'website' => 'Internetinis puslapis',
'work_phone' => 'Telefonas',
'address' => 'Adresas',
'address1' => 'Gatvė',
'address2' => 'Adresas 2',
'city' => 'Miestas',
'state' => 'Apskritis',
'postal_code' => 'Pa... |
<?php
namespace JasonRoman\NbaApi\Params;
class GameIdParam extends AbstractParam
{
const FORMAT = '/^\d{10}$/';
/**
* {@inheritdoc}
*/
public static function getExampleValue()
{
// 2017-02-01 Toronto @ Boston Regular Season
return '0021600732';
}
} |
<?php
namespace thuenhanh;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.