text stringlengths 2 1.03M |
|---|
<!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">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ co... |
<h3>Sign In</h3>
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="row">
<div class="col-lg-12 no-pdd">
<div class="sn-field">
<input placeholder="Username / Email" id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"... |
<?php
namespace App\Repositories;
use App\Category;
use App\Traits\UploadAble;
use Illuminate\Http\UploadedFile;
use App\Contracts\CategoryContract;
use Illuminate\Database\QueryException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Doctrine\Instantiator\Exception\InvalidArgumentException;
/**
* Cl... |
<?php
namespace Dvsa\Olcs\Api\Domain\QueryHandler\Organisation;
use Dvsa\Olcs\Api\Domain\QueryHandler\AbstractQueryHandler;
use Dvsa\Olcs\Api\Domain\Repository;
use Dvsa\Olcs\Api\Entity;
use Dvsa\Olcs\Api\Entity\Application\Application as ApplicationEntity;
use Dvsa\Olcs\Transfer\Query\QueryInterface;
/**
* Organis... |
@extends('layout.base')
@section('hackathons.header')
@include('hackathons.before.header')
@endsection
@section('content')
<section id="codeweek-hackathons-before-page" class="codeweek-page ireland">
<section class="codeweek-banner hackathon">
<div class="image">
<div cl... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrderproductTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('orderprodu... |
<?php
if(!defined('BASEPATH')) exit('No direct script access allowed');
class Trsalesekspedisiitems_model extends MY_Model {
public $tableName = "trsalesekspedisiitems";
public $pkey = "fin_rec_id";
public function __construct(){
parent:: __construct();
}
public function getRules($mode="AD... |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Flight extends CI_Controller
{
public function __construct()
{
header("Access-Control-Allow-Origin: *");
header('Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS');
header('Access-Control-Allow-Heade... |
<?php
global $lang;
$lang['validate_error'] = 'Es gab Fehler bei der Zusammenstellung';
$lang['required'] = 'Pflichtfeld';
$lang['email'] = 'E-Mailadresse ungültig';
$lang['regexp'] = 'Regulärer Ausdruck "{$ value}" ist nicht gültig';
$lang['nregexp'] = 'Regulärer Ausdruck "{$ value}" ist gültig, muss nicht gült... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... |
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php $this->load->view("_partials/head.php") ?>
</head>
<body id="page-top">
<?php $this->load->view("_partials/navbar.php") ?>
<div id="wrapper">
<?php $this->load->view("_partials/sidebar.php") ?>
<div id="content-wrapper">
<div class="container-f... |
<?php
namespace SisVentas\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UsuarioFormRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TrainingType extends Model
{
//
protected $fillable = ['name','description'];
public static $category_enum = ['programs'=>1,'research'=>2];
} |
<?php
namespace Psalm\Tests;
use DOMAttr;
use DOMDocument;
use DOMXPath;
use PHPUnit\Framework\Constraint\Constraint;
use Psalm\Config;
use Psalm\Config\IssueHandler;
use Psalm\Context;
use Psalm\DocComment;
use Psalm\Exception\CodeException;
use Psalm\Internal\Analyzer\ProjectAnalyzer;
use Psalm\Internal\Provider\Fa... |
@extends('layouts.withought_login')
@section('content')
<div class="content-wrap height-auto">
<div class="login-section">
<div class="logo-box text-center marB20">
<a href="{{url('/')}}"><img src="{{ asset('frontend/outside/images/00_dexter.svg') }}" class="img-responsive"></a>
<h2 class="hea... |
<?php
namespace Database\Factories;
use App\Models\TypeRisk;
use Illuminate\Database\Eloquent\Factories\Factory;
class TypeRiskFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = TypeRisk::class;
/**
* Define the m... |
@extends('admin.layout.master')
@section('title','division')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Add Division</h1>
</div>
... |
<?php
/**
* @DateTime 2019.6.5
*/
namespace app\behaviors;
use app\models\UserInfo;
use app\models\UserProject;
use Yii;
use yii\base\Behavior;
use yii\base\ErrorException;
use yii\base\InvalidArgumentException;
use yii\base\UserException;
use yii\web\Controller;
use yii\web\UnauthorizedHttpException;
/**
* 用户登陆状... |
<?php
//============================================================+
// File name : glg.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Galician
//
// Author: Nicola Asuni
//
// (c) Copyright:
// ... |
<?php
namespace App\Repositories\User;
use App\Repositories\EloquentRepository;
use App\Models\User;
class UserRepositoryEloquent extends EloquentRepository implements UserInterface
{
/**
* @var User
*/
protected $model;
function __construct(User $model)
{
parent::__construct($mode... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace Enbit\eBaySDK\Test\PostOrder\Types;
use Enbit\eBaySDK\PostOrder\Types\RuleConditionDetailType;
class ... |
<?php
// Copyright 2004-present Facebook. All Rights Reserved.
function base_elem_warn($v, $k) {
try {
var_dump($v[$k]['a']);
} catch (Exception $e) {
echo "Exception: \"" . $e->getMessage() . "\"\n";
}
}
function base_elem($v, $k) {
try {
var_dump($v[$k]['a'] ?? "MISSING");
} catch (Exception $... |
<!DOCTYPE html>
<html>
<head>
<title>Delete User</title>
<link rel="stylesheet" href="/assets/accountController/css/acStyle.css">
</head>
<body>
@include('accountController.acNavBar')
<div id="workspace">
<form method="post">
<fieldset>
<h2>Delete General User</h2>
<br>
<table id="view">
<tr>
... |
<?php
class Connect{
public static $instance;
public function __construct(){
}
public static function get_instance(){
if(!isset(self::$instance)){
self::$instance = new PDO('mysql:host=localhost;dbname=db_utd_loja;', 'root', '', array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
self:... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
<?php
declare(strict_types=1);
namespace Telegram\API\Type;
use Telegram\API\InlineQuery\Type\{ChosenInlineResult, InlineQuery};
use Telegram\API\Payments\Type\{PreCheckoutQuery, ShippingQuery};
use Telegram\API\Base\Abstracts\ABaseObject;
/**
* Class Update
* @package Telegram\API\Type
* @property float|int $id... |
<?php
/**
* @package modules.widget
*/
class DetailWidgetModule extends WidgetModule {
const DATE_FORMAT = 'Y-m-d h:m';
} |
<?php
namespace App\Http\Requests\Auth;
use Illuminate\Foundation\Http\FormRequest;
class loginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get... |
<?php
/**
* Created by User: wene<china_wangyu@aliyun.com> Date: 2019/7/1
*/
namespace WangYu\lib;
use WangYu\exception\RouteException;
/**
* Trait Tool 扩展的工具类
* @package WangYu\lib
*/
trait RouteTool
{
public static $EXT = '.php';
/**
* 写入数据
* @param string $path 文件路径
* @param string ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Feeship extends Model
{
public $timestamps = false;
protected $fillable =[
'fee_matp','fee_maqh','fee_xaid','fee_feeship'
];
protected $primaryKey = 'fee_id';
p... |
<?php
namespace SchoolBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Matiere_Eleve
* @ORM\Entity
* @ORM\Table(name="matiere_eleve")
* @ORM\HasLifecycleCallbacks()
*/
class MatiereEleve
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*
* @... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
<?php
namespace League\Flysystem;
/**
* @deprecated
*/
class Directory extends Handler
{
/**
* Delete the directory.
*
* @return bool
*/
public function delete()
{
return $this->filesystem->deleteDir($this->path);
}
/**
* List the directory c... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateClassPhonesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('class_phone... |
<!-- Callout -->
<aside class="callout" style="background: url(http://wwwstud.dsi.unive.it/fbisconc/progettodb/public/img/biglietti.jpg) no-repeat center center scroll;">
<div class="text-vertical-center">
<h1>Login</h1>
</div>
</aside>
<!-- Portfolio -->
<section id="portfolio" class="portfolio">
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class CancelController extends Controller
{
public function show()
{
return view('cancel');
}
} |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="AmineRifi">
... |
@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">{{ __('Register') }}</div>
@if(count($errors)>0)
... |
<?php
$GLOBALS['db_conns'] = array();
$GLOBALS['timings']['db_conns_count'] = 0;
$GLOBALS['timings']['db_conns_time'] = 0;
$GLOBALS['timings']['db_queries_count'] = 0;
$GLOBALS['timings']['db_queries_time'] = 0;
$GLOBALS['timings']['db_rows_count'] = 0;
$GLOBALS['timings']['db_rows_time'] = 0;
$GLOBALS['timi... |
@extends('layouts.master')
@section('stylesheets')
<style type="text/css">
thead input {
width: 100%;
padding: 3px;
box-sizing: border-box;
}
thead>tr>th{
text-align:center;
}
tbody>tr>td{
text-align:center;
}
tfoot>tr>th{
text-align:center;
}
td:hover {
overflow: visible;
}
table.table-bordered{
border... |
<?php
namespace Rootsoft\Algorand\Models\Transactions;
use Rootsoft\Algorand\Models\Applications\AccountStateDelta;
use Rootsoft\Algorand\Models\Applications\EvalDeltaKeyValue;
/**
* Given a transaction id of a recently submitted transaction, it returns
* information about it.
* There are several cases when this ... |
<?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 App\Entity\Hermes;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Tr... |
<?php
namespace App\Http\Controllers;
use App\Models\Magasin;
use Illuminate\Http\Request;
class MagasinController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the... |
@extends('layouts.app')
@section('contact')
active
@endsection
@section('content')
<div class="container">
<div class="row ">
<div class="col-sm-12 mb-3">
<img class="d-block w-100" src="{{asset('Template/images/banner.jpg')}}" alt="First slide">
</div>
<div class="col-sm-12 mb-3">
... |
<?php
//including the database connection file
include_once("config.php");
if(isset($_POST['add_footer'])) {
$pershkrimi = $_POST['pershkrimi'];
$ikonat = $_POST['ikonat'];
{
// if all the fields are filled (not empty)
//insert data to database
$result = mysqli_query($conn, "INSERT INTO footer (per... |
<?php
class FooController
{
public function hello()
{
return "Hello World";
}
public function goodbye(\ControllerDependency $dependency)
{
return $dependency->goodbye();
}
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Author extends Model
{
public function quotes(){
return $this->hasMany(Post::class)->where("isQuote",1);
}
public function getNameAttribute(){
return $this->attributes['name'] = ucwords($this->attributes['name']);
}
... |
@extends('backend.layouts')
@section('contents')
<div class="content-wrapper">
<!-- Main content -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Update PostImage</h1>
</div>
<div class="... |
@extends('emails.template')
@section('emails.main')
<div class="mt-20 text-left">
<p>
<?=$content?>
</p>
<p class="mt-20 text-center">
<a href="{{ $url.('users/reset_password?secret='.$token) }}" target="_blank">
<button type="button" class="learn-more">{{trans('messages.email_template.reset_pas... |
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysqli';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '';
$g_default_timezone = 'Europe/Berlin';
$g_crypto_master_salt = 't+vuIqtwQV/8JVvLOgsP/LTQNMd1Up3nxTsHcH5mVrI='; |
<?php
use App\Http\Controllers\ReactController;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can r... |
<?php
/**
* Language file for blog error/success messages
*
*/
return [
'blogcategory_exists' => 'Blog categorie bestaat al!',
'blogcategory_not_found' => 'Blog categorie met [:id] bestaat niet.',
'blogcategory_have_blog' => 'Blog categorie bevat blogs!',
'success' =>... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Control_SkjClassroom extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->library('timeago');
$this->load->model('model_news');
}
public static $description = "รับสมัครนักเรียนวันนี้ จนถ... |
@extends('layouts.app', ['activePage' => 'course', 'titlePage' => __('Events')])
@section('content')
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<form method="post" action="{{ route('category.update',$category->id) }}" autocomplete="off" c... |
<?php
session_start();
?>
<head>
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="author" content="UniRent">
<title>Wallet | UniRent</title>
<link rel="shortcut icon" type="image/jpg" href="img/logo/UniRent-V2.png" />
<meta name="viewport" content="width=device... |
<?php
/**
* PaymentTest
*
* PHP version 5
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Biwse API V1 Reference
*
* This API documentation generated from OpenAPI specification.
*
* The version of the OpenAPI document: ... |
<?php
namespace App\Containers\User\Models;
use App\Containers\Authorization\Traits\AuthenticationTrait;
use App\Containers\Authorization\Traits\AuthorizationTrait;
use App\Containers\Payment\Models\PaymentAccount;
use App\Containers\Payment\Traits\ChargeableTrait;
use App\Ship\Parents\Models\UserModel;
use Illuminat... |
@extends('adminlte::page')
@section('title', 'AdminLTE')
@section('content_header')
<h1 class="m-0" style="color: rgb(100, 31, 177)">Dashboard</h1>
@stop
@section('content')
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</l... |
<?php
// declare(strict_types=1);
namespace App\Http\Controllers;
use App\DocReferencia;
use Illuminate\Http\Request;
use App\DocVentas As ObjectModel;
use App\DocVentasDet;
use App\ParametrosCompras;
use Carbon\Carbon;
use function App\Helpers\getIdentity;
use function App\Helpers\getValParametro;
use function App\... |
<?php
use App\Http\Controllers\AboutController;
use App\Http\Controllers\BlogController;
use App\Http\Controllers\ContactController;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\LoginController;
use App\Http\Controllers\ProjectController;
use App\Http\... |
<?php
return [
'enable' => true,
'auth' => [
'auth_service' => [
'url' => env('AUTH_SERVICE_BASE_URL'),
'permission_api_uri' => '/get-user-permissions',
],
'token_header' => [
'sent' => 'Authorization',
'receiv... |
<?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'1d1b89d124cc9cb8219922c9d5569199' => $vendorDir . '/hamcrest/hamcrest-php/h... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\MaindispaudioSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Maindispaudios';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="box box-solid">
<div class="box-b... |
<?php
/*
Template Name: DT - Favorites page
*/
get_header();
// function theme
get_footer(); |
<?php
namespace CfdiUtils\Elements\Cfdi40;
use CfdiUtils\Elements\Common\AbstractElement;
class Retenciones extends AbstractElement
{
public function getElementName(): string
{
return 'cfdi:Retenciones';
}
public function addRetencion(array $attributes = []): Retencion
{
$subject... |
@if (App::getLocale() == 'en')
<div class="container mt-5 pt-5">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center my-auto">
<h1 class="h4 fw-bold text-light border-2 border-bottom border-danger p-2">Leader</h1>
<a class="text-decoration-none fw-bold btn btn-sm bg-... |
<?php
namespace App\Http\Controllers;
use App\Models\Role;
use App\Models\User;
use Illuminate\Http\Request;
use RealRashid\SweetAlert\Facades\Alert;
class RoleController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function... |
<tr>
<td nowrap align="left" width="260" valign="top" margin="0" style="padding:8px 4px 8px 8px; margin:0; boder:0; color:#000; background:#ccc; width:260px !important; font-size: 12px;">
PROJECT NAME
</td>
<td nowrap align="left" width="140" valign="top" margin="0" style="padding:8px 4px 8px 4px; margin:0; bode... |
<?php
use Illuminate\Database\Seeder;
class PrivilegesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run() {
DB::table('privileges')->insert([
'name' => 'Super Administrator',
'is_superadmi... |
<?php
namespace React\Tests\Stream;
/**
* Used to test dummy stream resources that do not support setting non-blocking mode
*
* @link http://php.net/manual/de/class.streamwrapper.php
*/
class EnforceBlockingWrapper
{
public function stream_open($path, $mode, $options, &$opened_path)
{
return true;... |
<?php
//include('dbconnect.php');
require_once('connection.php');
$addIdNo = $_GET['id'];
//if(isset($_GET['id']))
//{
$sql="DELETE FROM advertises WHERE aid='$addIdNo' ";
$query=mysql_query($sql);
if($query)
{
echo "Deleted";
header('Refresh:0; portfolio-1-col.php');
}else{
echo " :( ";
}
//}
?> |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFeedback extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('feedback', function... |
@extends('layouts.admin_layout')
@section('title', 'Courses | Admin Dashboard')
@section('pagename')
<a href="/admin/videos/create" class="navbar-brand">New Video</a>
@endsection
@section('content')
{!! Form::open(['method' => 'POST', 'action' => 'Admin\VideoController@store','files' => true]) !!}
<div class="... |
@extends('layouts.back')
@section('style')
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
@endsection
@push('script')
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script>
$(document).ready(function() {
... |
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use App\invoices;
use Illuminate\Support\Facades\Auth;
class Add_new_invoice extends Notification
{
use Queue... |
@extends('main.industrial_park.admin.layouts')
@section('title','News')
@section('content')
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<?php
$lang = $news[0]->lang;
//$id_news = isset($_GET... |
<?php
use backend\modules\user\Module;
use common\components\grid\GridView;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\user\models\search\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Module::t('user', 'User');
$this->params['breadcrum... |
<?php
if (isset($con))
{
?>
<!-- Modal -->
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header alert alert-warning">
<button type="button" class="close" data-d... |
<?php
namespace Php8\Image\Strategy;
use Php8\Image\SingleChar;
#[description("Adds lines to image background")]
class LineFill
{
#[description("Writes lines onto image following this strategy")]
#[SingleChar("char")]
#[int("num : number of lines")]
#[returns("void")]
public static function writeFill(SingleChar $c... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(CoffeeTableSeeder::class);
}
} |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<div class="register pull-left" style="width:100%;">
<div class="register-but">
<form method="POST" action="<?=base_url();?>welcome/post" enctype="multipart/form-data">
<div class="register-top-grid">
<h3>PERSONAL INFORMATION</h3>
<div class="mation">
<link rel="stylesheet" href="https://max... |
@extends('frontend.template.layout')
@section('post-body-content')
<!-- site__body -->
<div class="site__body">
<div class="page-header">
<div class="page-header__container container">
<div class="page-header__breadcrumb">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb... |
<?php
/**
* Created by PhpStorm.
* User: marcel
* Date: 26.06.17
* Time: 21:20
*/
namespace AppBundle\Components\Cart;
use Money\Money;
class CartItem
{
/**
* @var IBuyable
*/
private $product;
/**
* @var int
*/
private $amount;
/**
* CartItem constructor.
*
... |
<?php
/*
* Copyright 2014 Google 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
*
* Unless required by applicable law or agreed t... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var user\Module $module
* @var user\models\User $user
* @var user\models\UserToken $userToken
*/
$module = $this->context->module;
$this->title = Yii::t('user', 'Account');
$this->param... |
<?php
namespace Psalm\Tests\Template;
use Psalm\Tests\TestCase;
use Psalm\Tests\Traits;
class TemplateTest extends TestCase
{
use Traits\InvalidCodeAnalysisTestTrait;
use Traits\ValidCodeAnalysisTestTrait;
/**
* @return array
*/
public function providerValidCodeParse()
{
return ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Instansi extends Model
{
protected $table = 'instansi';
protected $fillable = [
'nama', 'alamat', 'no_tlp',
];
public function mahasiswa()
{
return $this->hasMany('App\User', 'instansi_id');
}
} |
<?php
//多语言补充
$lang['promote_title'] = 'Самые горячие скидки на ' . ucfirst( COMMON_DOMAIN );//1
$lang['promote_keywords'] = 'Большаяраспродажа, Онлайн скидки, Одежда со скидкой, Большая распродажа одежды' ;//2
$lang['promote_description'] = 'Eachbuyer предлагает большие скидки на модную и красивую одежду, ювелирные ... |
--TEST--
enum type
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc')
?>
--FILE--
<?php
include_once("connect.inc");
$conn = cubrid_connect($host, $port, $db, $user, $passwd);
//drop the class if exist
$sql = "drop class if exists t1";
$req = cubrid_execute($conn, $sql, CUBRID_INCLUD... |
<?php declare(strict_types=1);
namespace Shopware\Core\Migration\V6_3;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Migration\MigrationStep;
class Migration1580827023ProductCrossSellingAssignedProductsDefinition extends MigrationStep
{
public function getCreationTimestamp(): int
{
return... |
<!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/css2?family=Nunito... |
<!-- ========== Left Sidebar Start ========== -->
<div class="left side-menu">
<button type="button" class="button-menu-mobile button-menu-mobile-topbar open-left waves-effect">
<i class="ion-close"></i>
</button>
<!-- LOGO -->
<div class="topbar-left">
<div class="text-center">
... |
<?php
namespace JsonMachineTest\JsonDecoder;
use JsonMachine\JsonDecoder\ItemDecoder;
class StubDecoder implements ItemDecoder
{
private $decodedKey;
private $decodedValue;
public function __construct($decodedKey, $decodedValue)
{
$this->decodedKey = $decodedKey;
$this->decodedValue ... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle ... |
<?php
/**
* Auto generated from Common.proto at 2016-12-05 10:43:26
*/
namespace {
/**
* PE_LeagueAddMode enum
*/
final class PE_LeagueAddMode
{
const PE_LAM_Verify = 1;
const PE_LAM_NonVerify = 2;
/**
* Returns defined enum values
*
* @return int[]
*/
public function getEnumVa... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Comment extends Model
{
use HasFactory;
protected $guarded = [];
public function author()
{
return $this->belongsTo(User::class, 'user_id');
}
public func... |
<?php
namespace App\Model\Backend\Admin\UserRoleManagement;
use Illuminate\Database\Eloquent\Model;
class User_role_menu_action_permition extends Model
{
public function menuAction()
{
#return $this->belongsTo(User_role_menu_action::class,'user_role_menu_action_id','id');
return $this->belong... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/vision/v1p1beta1/image_annotator.proto
namespace Google\Cloud\Vision\V1p1beta1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Users describe the typ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.