text stringlengths 2 1.03M |
|---|
<?php
/**
* @package Options_Framework
* @author Devin Price <devin@wptheming.com>
* @license GPL-2.0+
* @link http://wptheming.com
* @copyright 2010-2014 WP Theming
*/
class Options_Framework_Admin {
/**
* Page hook for the options screen
*
* @since 1.7.0
* @type string
*/... |
<?php
require 'funciones/conexion.php';
require 'funciones/usuarios.php';
$usuario = verUsuarioPorID();
include 'includes/header.html';
include 'includes/nav.php';
?>
<main class="container">
<h1>Modificación de un usuario</h1>
<div class="alert bg-light p-4 col-8 mx-auto border... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.mi... |
@extends('layouts.app')
@section('guest')
@push('styles')
<link href="{{ asset('css/bg_body.css') }}" rel="stylesheet">
@endpush
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card bg-white shadow">
<div class="card-header... |
<?php
/**
* Copyright 2017, Cake Development Corporation (http://cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2017, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/lic... |
<?php
namespace Base\GoogleAgendaBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class BaseGoogleAgendaBundle extends Bundle
{
}
?> |
<?php
namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\Exception;
use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use function array_map;
use function get_class;
use function str_replace;
use function strrpos;
use function substr;
/**
* The base class for so-called Doctrine mapping t... |
<?php
/**
* Created by PhpStorm.
* User: barsa
* Date: 23-Aug-17
* Time: 15:15
*/
namespace app\api\modules\v1\models;
use app\models\Expense;
class EXPENSE_MODEL extends Expense
{
} |
<?php
use common\models\Identity;
use common\modules\auth\AuthModule;
use yii\log\FileTarget;
use yii\web\JsonParser;
use yii\web\JsonResponseFormatter;
use yii\web\Response;
$params = array_merge(
require dirname(__DIR__, 2) . '/common/config/params.php',
require dirname(__DIR__, 2) . '/common/config/params-... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/... |
<?php
namespace Xuandung38\LaravelFilemanager\Controllers;
class DemoController extends LfmController
{
public function index()
{
return view('laravel-filemanager::demo');
}
} |
<?php
namespace App\Models;
use CodeIgniter\Model;
class Modelkabupaten extends Model
{
protected $table = 'kabupaten';
protected $primaryKey = 'kd_kab';
protected $allowedFields = ['kd_kab', 'nm_kab']; //data yang akan disimpan kedalam fields
} |
<?php
class Build {
public static function parse_args($args, &$specs) {
for ($i=1; $i < count($args); $i++) {
$arg = $args[$i] ;
if (array_key_exists($arg, $specs) && $i + 1 < count($args)) {
$k = $arg ;
$i++ ;
$specs[$k] = $... |
<?php
/**
* Created by PhpStorm.
* User: Vuilov
* Date: 04.06.2015
* Time: 15:50
*/
namespace app\components;
use app\components\SoapConfig;
class SoapClient {
private $request;
private $response;
private $error;
public function __construct(SoapConfig $config, $method, array $parameters = null)
... |
@extends('layouts.app')
@section('title', 'Reset Password')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Confirm Password') }}</div>
<div class="ca... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class AdvertisementDate extends Model
{
//
} |
@extends('layouts.login-register')
@section('login-register')
<div class="strip__content register">
<div class="strip__inner-text">
<h2>Register</h2><br><br>
<div class="container" align="center">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
... |
<?php
namespace Ffcms\Templex\Helper\Html\Form\Field;
use Ffcms\Templex\Helper\Html\Dom;
/**
* Class Text. Build <input type="text"> field
* @package Ffcms\Templex\Helper\Html\Form\Field
*/
class Text extends StandardField
{
/**
* Build <input> inline container and return html code
* @param array|nu... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', 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, shrink-to-fit=no" />
<meta name="description" cont... |
<?php
class MainController extends \BaseController {
public function home()
{
$posts = Post::all();
return View::make('sections.home', ['posts' => $posts]);
}
} |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css"/>
<script src="https://kit.fontawesome.com/e169a3044d.js" rel="script" t... |
<?php
/* @Framework/Form/datetime_widget.html.php */
class __TwigTemplate_410c19777f820a74206fdcf8e99392658cf928570d13abe09c1ee9103d60c0a0 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
... |
<?php
declare(strict_types=1);
namespace Rector\Php70\Tests\Rector\Break_\BreakNotInLoopOrSwitchToReturnRector;
use Iterator;
use Rector\Core\Testing\PHPUnit\AbstractRectorTestCase;
use Rector\Php70\Rector\Break_\BreakNotInLoopOrSwitchToReturnRector;
final class BreakNotInLoopOrSwitchToReturnRectorTest extends Abst... |
<!DOCTYPE html>
<html lang= "en">
<head>
<meta charset= "utf-8">
<meta http-equiv= "X-UA Compatible" content= "IE= edge">
<meta name= "viewport" content= "width = device-width, intial-scale=1.0">
<title>Form Login RECOF</title>
<!-- <link rel= "stylesheet" href= "style.css"> -->
<link href="<?=... |
<?php
require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/abstract.php';
class Ingenico_Connect_Shell_WxImport extends Mage_Shell_Abstract
{
/** @var Ingenico_Connect_Model_Cron_FetchWxFiles_ProcessorInterface */
private $processor;
/**
* Ingenico_Connect_Shell_WxImport constructor.
*/
pu... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(UsersTableSeeder::class);
}
} |
--TEST--
Test to ensure that the default compilation error is throwing a fatal
--INI--
augmented_types.enforce_by_default = 1
--FILE--
<?php
require_once "tests/helper/invalid1.php"; // this should throw warnings instead
?>
--EXPECTREGEX--
Fatal error: Function annotation compilation failed for function invalid1 in fil... |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyr... |
<?php
namespace Tests\Repository;
use App\Repository\DataWarehouse;
use Doctrine\DBAL\Connection;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
class DataWarehouseTest extends KernelTestCase
{
protected static $container;
/**
* @var Connection|object|null
*/
protected static $conn;
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class EmailTemplate extends Model
{
public function parse($data) {
$parsed = preg_replace_callback('/{{(.*?)}}/', function ($matches) use ($data) {
list($shortCode, $index) = $matches;
if (isset($data[$index])) {
... |
<?php
/**
* Created by PhpStorm.
* User: Nicolas Canfrere
* Date: 31/08/2014
* Time: 12:55
*/
/*
____________________
__ / ______ \
{ \ ___/___ / } \
{ / / # } |
{/ ô ô ; __} |
/ \__} / \ /\
<=(_ __<=... |
<?php
namespace MGS\Blog\Block\Post\View;
use Magento\Customer\Model\Context as CustomerContext;
class Commentlist extends \Magento\Framework\View\Element\Template
{
protected $_coreRegistry = null;
protected $_blogHelper;
protected $_post;
protected $_category;
protected $httpContext;
protec... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CreateTestimonialRequest;
use App\Models\Testimonial;
use App\Models\State;
use Illuminate\Http\Request;
use DB;
use Mail;
class TestimonialController extends Controller
{
protected $request;
public function __construct(Request $request)
{
$this->reque... |
<section>
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12">
<div class="sec-heading center">
<h2>Amazing Properties Book</h2>
<p>Find new & featured property for you.</p>
</div>
</div>
... |
<?php
namespace DeliciousBrains\WP_Offload_Media\Aws3\Aws;
use DeliciousBrains\WP_Offload_Media\Aws3\Aws\Api\ApiProvider;
use DeliciousBrains\WP_Offload_Media\Aws3\Aws\Api\DocModel;
use DeliciousBrains\WP_Offload_Media\Aws3\Aws\Api\Service;
use DeliciousBrains\WP_Offload_Media\Aws3\Aws\ClientSideMonitoring\ApiCallAtt... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model frontend\models\Masters */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="masters-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'masters_first_name')->textInput(['maxlength' ... |
@extends('layouts.app')
@section('header')
<div class="container">
<h2>Users</h2>
</div>
@endsection
@section('content')
<div class="container">
<ul>
@forelse ($users as $user)
<li>{{ $user->name }}</li>
@empty
<p>No users</p>
@endforelse
</ul>
</div>
@endsection |
<?php
class Mahasiswa extends CI_Controller{
function __construct(){
parent::__construct();
$this->load->model('Mahasiswa_model');
if($this->session->userdata('masuk') != TRUE){
$url=base_url();
redirect($url);
}
}
function index(){
$this->load->view('mahasiswa/v_inde... |
<?php
namespace ksoftm\system\database;
use ksoftm\system\internal\BaseQuery;
use ksoftm\system\utils\datatype\Dictionary;
use ksoftm\system\utils\datatype\ListData;
/**
* This class ues to create, insert, update, delete, join, ect... the table
*/
class Query extends BaseQuery
{
/**
* field query for sele... |
<?php
namespace Database\Seeders;
use App\Models\Legend;
use Illuminate\Database\Seeder;
class LegendSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Legend::create([
"value" => 1,
"label" => "Não atende"... |
<?php
use App\Models\Reply;
return [
'title' => '回复',
'single' => '回复',
'model' => Reply::class,
'columns' => [
'id' => [
'title' => 'ID',
],
'content' => [
'title' => '内容',
'sortable' => false,
'output' => function ($... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StorePermissionRequest extends FormRequest
{
public function rules()
{
return [
'name' => 'required|min:3|max:191',
'display_name' => 'required|min:3|max:191',
'description' => 're... |
<?php
/**
* Created by PhpStorm.
* User: bartek
* Date: 25.08.16
* Time: 14:49
*/
//phpinfo();
//exit;
$db = new PDO('sqlite:' . realpath(__DIR__) . '/zftutorial.db');
$fh = fopen(__DIR__ . '/schema.sql', 'r');
while ($line = fread($fh, 4096)) {
$db->exec($line);
}
fclose($fh); |
<?php
declare(strict_types=1);
namespace Tulia\Cms\ContactForm\UserInterface\Web\Backend\Form\ModelTransformer;
use Symfony\Component\Form\DataTransformerInterface;
/**
* @author Adam Banaszkiewicz
*/
class ReceiversTransformer implements DataTransformerInterface
{
/**
* @param array $value
* @retur... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use yajra\Datatables\Datatables;
use Validator;
use Auth;
use Redirect;
use App\Admin;
class LoginController extends... |
<?php
namespace Psalm\CodeLocation;
use Psalm\CodeLocation;
use function substr;
use function substr_count;
class Raw extends CodeLocation
{
public function __construct(
string $file_contents,
string $file_path,
string $file_name,
int $file_start,
int $file_end
) {
... |
<?php defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run');
/**
* Tests Kohana Exception Class
*
* @group kohana
* @group kohana.exception
*
* @package Kohana
* @category Tests
* @author Kohana Team
* @copyright (c) 2008-2011 Kohana Team
* @license http://kohanafra... |
@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">Payment</div>
<div class="card-body">
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$config['base_url'] = 'http://localhost/simple-admin/';
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------... |
<?php
namespace Oro\Component\Layout\Tests\Unit;
use Oro\Component\Layout\Block\Type\Options;
use Oro\Component\Layout\BlockBuilderInterface;
use Oro\Component\Layout\BlockTypeExtensionInterface;
use Oro\Component\Layout\BlockTypeInterface;
use Oro\Component\Layout\BlockViewCache;
use Oro\Component\Layout\DeferredLay... |
<?php
namespace App\Admin;
use App\Entity\Patient;
use App\Manager\FileManager;
use App\Util\Tools;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollecti... |
<?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',... |
<?php
namespace Workshop\Bundle\BackendBundle\Repository;
/**
* PostRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class PostRepository extends \Doctrine\ORM\EntityRepository
{
} |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AcademicsController extends Controller
{
public function index(){
return view('pages.academics');
}
} |
<?php
declare(strict_types=1);
namespace tekki\core\html;
use \DOMDocument;
use \DOMElement;
use tekki\core\html\dom\HTMLElement;
use tekki\core\html\attr\{EventAttributes};
class Cite extends HTMLElement {
use EventAttributes;
// Only uses global attributes.
/*
// The <cite> tag defines the title of a... |
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'http://mockbin.com/har', [
'body' => '{"foo":null}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody(); |
<!DOCTYPE html>
<html lang="en">
<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>Module UploadDoc</title>
{{-- Laravel Mix - CSS File --}}
{{-- <link rel="st... |
<?php
namespace FDevs\Pagination\Extension\Doctrine\MongoDB;
use FDevs\Pagination\Extension\LimitExtension as BaseExtension;
use FDevs\Pagination\Model\PaginationInterface;
class LimitExtension extends BaseExtension
{
use QueryProperty;
/**
* {@inheritdoc}
*/
public function prepareTarget($tar... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBatchesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('batches', funct... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Emergency extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->model('M_emergency');
$this->load->library('pdf');
if ($this->session->userdata['logged'] == FALSE)
{
redirect('Login');
}
}
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RemoveCardNumberAndExpiredAndCvcAndIsPaidInCheckoutsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
... |
@extends('admin.layout')
@section('content')
<div class="wrapper">
<div class="container">
<!-- Start content -->
<!-- Page-Title -->
<div class="row">
<div class="col-sm-12">
<h4 class="page-title">{{ __('dashboard.clients') }}</h4>
... |
<?php
namespace App\Http\Controllers;
use App\Models\Designation;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use JsonResponseHandler;
class DesignationController extends Controller
{
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->library('session');
$this->load->model('Login_model');
$this->load->model('Page_Pegawai_model');
}
public function index()
... |
<?php $title ?> |
<?php
use App\Http\Controllers\FormController;
use App\Mail\WelcomeMail;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web ... |
<?php
/**
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\models\Subjects */
?>
<div class="subjects-update">
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div> |
<?php $class = $thread->isUnread(Auth::id()) ? 'alert-info' : ''; ?>
<div class="MessagePreviewItem"></div>
<script src="resources\js\app\Messages\MessagePreviewItem.jsx"></script>
<div class="media alert {{ $class }}">
<h4 class="media-heading">
<a href="{{ route('messages.show', $thread->id) }}">{{ $th... |
<?php
namespace Home\Controller;
use Think\Controller;
/**
* 购物车
*/
class ShoppingCartController extends CommonController
{
//显示购物车
public function shopBill()
{
// 获取用户uid
$uid = $_SESSION['homeuser']['id'];
if($uid){
// 遍历购物车
// 遍历用户购物车套餐
$setmeal = M('cartSetmeal... |
<?php
declare(strict_types=1);
namespace GoldSpecDigital\ObjectOrientedOAS\Objects;
use GoldSpecDigital\ObjectOrientedOAS\Contracts\SchemaContract;
use GoldSpecDigital\ObjectOrientedOAS\Utilities\Arr;
/**
* @property \GoldSpecDigital\ObjectOrientedOAS\Objects\Schema[]|null $schemas
* @property \GoldSpecDigital\Ob... |
<?php use_helper('opDiary'); ?>
<?php $title = __('Diaries of %my_friend%', array('%my_friend%' => $op_term['my_friend']->pluralize()->titleize())) ?>
<?php if ($pager->getNbResults()): ?>
<div class="dparts recentList"><div class="parts">
<div class="partsHeading"><h3><?php echo $title ?></h3></div>
<?php echo op_inc... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = '会员信息';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-index">
<?= GridView::widget([
... |
<?php
namespace PeskyORMLaravel\Providers;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
use Illuminate\Contracts\Auth\UserProvider;
use PeskyCMF\Db\Admins\CmfAdmin;
use PeskyORM\ORM\Column;
use PeskyORM\ORM\RecordInterface;
class PeskyOrmUserProvider implements ... |
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) 2005-2013 OpenStudio */
/* email : info@thelia.fr */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the ... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Siswa extends CI_Controller
{
public function __construct()
{
parent::__construct();
if (!$this->session->userdata('email')) {
redirect('auth');
}
// is_logged_in();
$this->load->mode... |
<?php
/*
* GWTPHP is a port to PHP of the GWT RPC package.
*
* <p>This framework is based on GWT (see {@link http://code.google.com/webtoolkit/ gwt-webtoolkit} for details).</p>
* <p>Design, strategies and part of the methods documentation are developed by Google Team </p>
*
* <p>PHP port, extensions and modif... |
<?php
namespace Composer\Installers;
class WinterInstaller extends BaseInstaller
{
/** @var array<string, string> */
protected $locations = array(
'module' => 'modules/{$name}/',
'plugin' => 'plugins/{$vendor}/{$name}/',
'theme' => 'themes/{$name}/'
);
/**
* For... |
{{--Lekcija 13: Part 13 - Sessions & Flash Messages [How to Build a Blog with Laravel 5 Series]--}}
{{--ovaj fajl prikazuje poruke iz sesije ako ih ima, inkluduje ga main.blade.php --}}
{{--ako u sesiji ima nesto pod kljucem success, a ima ako smo npr uneli novi post--}}
@if(Session::has('success'))
<div class="al... |
<?php
class EntryAndExitActionTest extends UnitTestCase
{
function test_EntryCalledOnConstructorForDefault()
{
$course = new CourseB();
$this->assertEqual("entry called",$course->getLog());
}
function test_CallEntry()
{
$course = new CourseB();
$course->anEvent();
$course->anEvent();
... |
<html>
<head>
<title>malasngoding.com</title>
</head>
<body>
<center><h1>Membuat Upload File Dengan CodeIgniter | MalasNgoding.com</h1></center>
<ul>
<?php foreach ($upload_data as $item => $value):?>
<li>Upload Berhasil</li>
<?php endforeach; ?>
... |
<?php
declare(strict_types=1);
namespace Dominikb\ComposerLicenseChecker\Tests;
use Dominikb\ComposerLicenseChecker\Dependency;
use Dominikb\ComposerLicenseChecker\ConstraintViolation;
class ConstraintViolationTest extends TestCase
{
/** @test */
public function getters_return_the_instance_values()
{
... |
<?php
/**
* User: quentin_p
* Date: 20/02/2017
* Time: 17:45
*/
declare(strict_types = 1);
namespace Director\Controller;
use Director\Service\DirectorServiceInterface;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
/**
* DirectorController constructor.
*
* @param DirectorSer... |
<?php
declare(strict_types=1);
namespace LaminasTest\Di\TestAsset\Hierarchy;
class C extends B
{
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
date_default_timezone_set('Asia/Kolkata');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. T... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\search\DisposisiSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$io == 'in' ? $label = 'Disposisi Masuk' : $label = 'Disposisi Keluar';
$this->title = $label;
$this->params['breadcrumbs'][... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductCatTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_cat'... |
<?php
namespace Qiniu\Tests;
use Qiniu\Processing\Operation;
use Qiniu\Processing\PersistentFop;
class FopTest extends \PHPUnit_Framework_TestCase
{
public function testExifPub()
{
$fop = new Operation('testres.qiniudn.com');
list($exif, $error) = $fop->execute('gogopher.jpg', 'exif');
... |
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be use... |
<!DOCTYPE html>
<html>
<head>
<title>Laravel</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
p... |
<?php
namespace Common\Model;
use Common\Model\BaseModel;
/**
* 文章图片关联表model
*/
class ArticlePicModel extends BaseModel{
/**
* 添加数据
* @param strind $aid 文章id
* @param array $tids 图片路径
*/
public function addData($aid,$image_path){
foreach ($image_path as $k => $v) {
$pic_... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/* @var $this yii\web\View */
/* @var $model app\models\RefKelulusanSainsSukan */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => GeneralLabel::kelulusan_sains_s... |
<?php
/**
* @copyright Copyright (c) 2016 RNP
* @license http://github.com/ufrgs-hyman/meican#license
*/
namespace meican\circuits\forms;
use yii\base\Model;
use Yii;
/**
* @author Maurício Quatrin Guerreiro
*/
class PointForm extends Model {
public $domain;
public $network;
public $location;
... |
<?php
namespace common\auth\models;
use common\auth\forms\SettingEmailCreateForm;
use common\auth\forms\SettingEmailEditForm;
use olympic\models\auth\Profiles;
/**
* This is the model class for table "auth".
*
* @property int $id
* @property int $user_id
* @property string $port
* @property string $encryption
*... |
<!-- Service Provider and Supervisor Login Form -->
@extends('layouts.site.app')
@section('content')
@section('sectionTitle', __('Login'))
@if ($message = Session::get('success'))
<div class="alert alert-success">
<button class="close" data-dismiss="alert">×</button>
<p>{{ $message }}</p>
</div>
@endif
... |
<?php
/**
* This file is part of WordPress Settings UI.
*
* Copyright 2017-2019 Peter Putzer.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, o... |
<?php
/**
* Canonical API to handle WordPress Redirecting
*
* Based on "Permalink Redirect" from Scott Yang and "Enforce www. Preference"
* by Mark Jaquith
*
* @package WordPress
* @since 2.3.0
*/
/**
* Redirects incoming links to the proper URL based on the site url.
*
* Search engines consider www.somedom... |
<!DOCTYPE html>
<html lang="en">
<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://fonts.googleapis.com/c... |
<?php
namespace CashJournal\Factory\Filter;
use CashJournal\Filter\CategoryFieldSetFilter;
use CashJournal\Filter\CategoryFormFilter;
use Interop\Container\ContainerInterface;
use Interop\Container\Exception\ContainerException;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\Exce... |
<?php
/**
* Vonage Client Library for PHP
*
* @copyright Copyright (c) 2016 Vonage, Inc. (http://vonage.com)
* @license https://github.com/vonage/vonage-php/blob/master/LICENSE MIT License
*/
namespace VonageTest\Insights;
use Vonage\Insights\Standard;
use PHPUnit\Framework\TestCase;
class CnamTraitTest exten... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.