blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 116 | path stringlengths 2 241 | src_encoding stringclasses 31
values | length_bytes int64 14 3.6M | score float64 2.52 5.13 | int_score int64 3 5 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | text stringlengths 14 3.57M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
d615b257539ae12d4871a74928327147742142c7 | PHP | gabcab/proyecto | /protected/controllers/CiudadController.php | UTF-8 | 780 | 2.53125 | 3 | [] | no_license | <?php
class CiudadController extends Controller
{
public function actionIndex()
{
$ciudad = Ciudad::model()->findAll();
$this->render('index', array('ciudad' => $ciudad));
}
public function actionView($id)
{
$ciudad = Ciudad::model()->findByPk($id);
$this->render('view', array('ciudad' => $ciudad));
... | true |
d26780cada008f2dbbd4b7c638243088b1a7edd8 | PHP | cbazureau/lebeaujeu-newsfeed | /cron/model/NewsCron.class.php | UTF-8 | 1,669 | 2.8125 | 3 | [] | no_license | <?php
require("NewsFeed.class.php");
class NewsCron
{
function tofile($data) {
echo "=> NewsCron::tofile \n";
file_put_contents(dirname(__FILE__).'/../../cron-data/news.json',json_encode($data));
}
function execute($fluxs)
{
echo "=> NewsCron::execute \n";
$feeds = [];
fo... | true |
50982ac3d531ea3c61d646dcb0d89c78ff0ac37a | PHP | Andr3sDG/Car-Rent-JS-With-Firebase | /SevenXJSWFire/login.php | UTF-8 | 1,188 | 2.78125 | 3 | [] | no_license | <?php
//Conexion con la bd y el server
$link = mysqli_connect("127.0.0.1","root","", "SevenX") or die("<h2>No se encuentra el servidor</h2>" .mysqli_connect_error());
$db = mysqli_select_db($link, 'SevenX') or die("<h2>Error de conexion</h2>" .mysqli_error());
if(isset($_POST['iniciar'])){
if($... | true |
44037411cf69f8bd5a53e73dcf04f1322e205934 | PHP | my-name-is-njuno/typing | /backend/getusers.php | UTF-8 | 564 | 2.96875 | 3 | [] | no_license | <?php
$servername = "localhost";
$username = "root";
$password = "Java_2147483647";
$dbname = "typing";
// Create connection
$con = mysqli_connect($servername, $username, $password, $dbname);
if (!$con) {
die('Could not connect: ' . mysqli_error($con));
}
$sql = "SELECT name, wpm FROM users ORDER BY wpm DESC LI... | true |
0ac1454655d24d6e81cfdd344f7744c8444db8d7 | PHP | webong/100kobo | /application/controllers/Signup.php | UTF-8 | 4,169 | 2.625 | 3 | [] | no_license | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Signup extends MY_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('m_users');
$this->load->model('m_wallet');
}
public function index()
{
$this->load->library('form_validation... | true |
a54f246ab731105dc71a075c3b9036c483c48c8c | PHP | Skaanka/blog_silex | /src/Manager/Commentaire.php | UTF-8 | 1,302 | 2.890625 | 3 | [] | no_license | <?php
namespace Manager;
class Commentaire
{
/**
* Comment id.
*
* @var integer
*/
private $id;
/**
* Comment auteur.
*
* @var Manager\User
*/
private $auteur;
/**
* Comment contenu.
*
* @var integer
*/
private $contenu;
/**
... | true |
b125fb31d876f022acc92f247849b5632db46b30 | PHP | shubnikofff/mobiles | /tests/codeception/unit/modules/directory/models/EmployeeTest.php | UTF-8 | 1,982 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: bill
* Date: 22.01.15
* Time: 14:33
*/
namespace app\tests\codeception\unit\modules\directory\models;
use app\modules\directory\models\Employee;
use app\tests\codeception\unit\fixtures\EmployeeFixture;
use Codeception\Specify;
use yii\codeception\DbTestCase;
/**
* Class... | true |
dc0c0525b8aee7dc1057fb71209bf00dea4ee3f4 | PHP | marcosdiasdev/acadnet | /class/grupo.class.php | UTF-8 | 2,983 | 2.78125 | 3 | [] | no_license | <?php
require_once 'principal.class.php';
require_once 'usuario.class.php';
class Grupo extends Principal {
public $id_grupo;
public $nome;
public $descricao;
public $data_criacao;
public $usuario_id_usuario;
public $imagem;
static function exibirGrupos($usuario){
$con = self::co... | true |
8c577e87f230303c2598c2316940b1cbef697137 | PHP | augustomdam/Gamecom | /app/Policies/PaginaPolicy.php | UTF-8 | 1,869 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Policies;
use App\User;
use App\Pagina;
use Illuminate\Auth\Access\HandlesAuthorization;
class PaginaPolicy
{
use HandlesAuthorization;
public function before(User $user)
{
if ($user->isAdmin()) {
return true;
}
}
/**
* Determine whether the... | true |
690d631737365420acc901ecfc094ae711d0a52d | PHP | PHPDX/monolog-experiments | /multipleStreams.php | UTF-8 | 1,005 | 2.78125 | 3 | [] | no_license | <?php
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Monolog\Processor\IntrospectionProcessor;
use Monolog\Processor\MemoryUsageProcessor;
require 'vendor/autoload.php';
// Wrapping in a function to exhibit the IntrospectionProcessor
function traceMe()
{
// So basic
$stdoutHandler = new StreamHan... | true |
edea969608d95c69ccfb602b18965257142a0167 | PHP | fengshuang110/yidiano2o | /application/Api/Auth.php | UTF-8 | 1,879 | 2.671875 | 3 | [] | no_license | <?php
namespace Api;
use Service\UserService;
use Service\SmsService;
use Service\AuthService;
/**
* 一点O2O
* @author fengshuang
*/
class Auth{
/**
* 登录
* @url POST /login
* @param string $username
* @param string $password
*/
public function login($username,$password){
$user = UserService::getInstanc... | true |
8d4b95dcb47becc9e3f17e5615a472e436fdc790 | PHP | nadeeshapathiraja/ErandhaShop | /database/migrations/2020_03_13_084333_create_deliverycompanys_table.php | UTF-8 | 972 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDeliverycompanysTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('delive... | true |
b1c74f84c1665351428f68309cbe5fbcb2558738 | PHP | kevinmel2000/drafterbit | /content/extensions/system/src/Models/Cache.php | UTF-8 | 2,654 | 2.625 | 3 | [
"MIT"
] | permissive | <?php namespace Drafterbit\Extensions\System\Models;
class Cache extends \Drafterbit\Framework\Model
{
public function getAll()
{
return array_merge(
$this->getDataCache(),
$this->getAssetCache(),
$this->getRouteCache()
);
}
private function getData... | true |
f5de121e5c5859febfcea9b4ed5b586e38bc86f7 | PHP | JelleCeulemans/Team12 | /application/controllers/Factuur.php | UTF-8 | 4,864 | 2.765625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* @property School_model $school_model
* @property Factuur_model $factuur_model
* @property Klas_model $klas_model
* @property Zwemtotaal_model $zwemtotaal_model
*/
/**
* @Class Factuur
* @brief Controller-klasse voor factuur
*
* Contro... | true |
f89689d1c6f89f9b050ddbe0a2f0295e7e41bf9d | PHP | rootulp/school | /web_apps/HW10/hw10old.php | UTF-8 | 2,577 | 2.53125 | 3 | [
"MIT"
] | permissive | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>HW10</title>
<style>
fieldset {
width: 500px;
background-color: gold;
color: maroon;
}
legend {
width:200px;
background-color: gold;
color: maroon;
}
label {
text-align: left;
float: left... | true |
15c5f977cdd3aaf494350f47801638c8a7440923 | PHP | denghongcai/wxpay | /src/HongcaiDeng/Wxpay/lib/UnifiedOrder.php | UTF-8 | 3,493 | 2.609375 | 3 | [] | no_license | <?php
namespace HongcaiDeng\Wxpay\lib;
use Illuminate\Exception;
trait UnifiedOrder
{
private $unifiedOrderURL = 'https://api.mch.weixin.qq.com/pay/unifiedorder';
/**
* 生成接口参数Xml.
*
* @throws \Exception
*
* @return mixed
*/
public function createUnifiedOrderXml()
{
... | true |
63d1d6707d12c69f128e746b8c2bbecbfe43e964 | PHP | valdyrizki/CariLawanLaravel | /database/migrations/2020_01_07_064050_create_mst_sports_table.php | UTF-8 | 654 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMstSportsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mst_sports', ... | true |
b765c0042330ca7380a987d40e148772dbf9c026 | PHP | agungsugiarto/lumen-api-wilayah-indonesia | /app/Entities/DistrictEntity.php | UTF-8 | 1,054 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Entities;
use App\Models\Districts;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\QueryBuilder;
class DistrictEntity
{
/**
* Get all resource.
*
* @return \Spatie\QueryBuilder\QueryBuilder
*/
public function getDistricts()
{
return QueryBui... | true |
e9bc6f4b41aad4ca1bbf6dafab5284086c736fc9 | PHP | devLexSoftware/SolHip | /core/login/actions/loginS.php | UTF-8 | 3,131 | 2.53125 | 3 | [] | no_license | <?php
include("../../config/conexion.php");
session_start();
$message="";
$captcha = true;
$usuario = $_POST[user1];
$password = $_POST[pass1];
$_SESSION['valida'] = 'false';
error_reporting(E_ALL);
ini_set('display_errors', '1');
if(count($_POST)>0 && isset($_POST["captcha_code"]) && $_POST["ca... | true |
c8c5e1a73933751a042a1f188018a9a7b3cb24be | PHP | nicknick-io/digitalocean | /src/Requests/Request.php | UTF-8 | 1,190 | 2.921875 | 3 | [] | no_license | <?php
namespace NickNickIO\Digitalocean\Requests;
use NickNickIO\Digitalocean\Connection;
class Request
{
/**
* @var string
*/
protected $resource;
/**
* @var Connection
*/
protected $connection;
/**
* DropletInterface constructor.
* @param Connection $connection
... | true |
54c4e2e38a5f2323b7e1ea9ff442fef9ef21ee38 | PHP | tryptamine81/liquid | /src/Responses/FileDownloadResponse.php | UTF-8 | 1,186 | 2.75 | 3 | [] | no_license | <?php
/**
* @since 0.0.1
* @author Sam Jones <jonesy at citvinyl.co.uk>
*/
namespace Trypta\Liquid\Responses;
/**
* Sends a file to the browser as a download
*
* @package Fashion Interiors
* @subpackage Core
* @category Response
*/
class FileDownloadResponse extends HttpResponse
{
protected $name = null;... | true |
cf0bd6f0a3ba0e8652e7f1ad0d50ced1b9c81700 | PHP | bytesfield/http-notifier | /app/Listeners/NotifySubscribersListener.php | UTF-8 | 828 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Listeners;
use App\Classes\ProcessPublish;
use App\Events\PublishTopicEvent;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
class NotifySubscribersListener implements ShouldQueue
{
/**
* The number of times the queued listener may be attempted.
... | true |
e9c3429e48a2ab485e72816cc9a14ce4bbff4d53 | PHP | mooncactusmoon/php_basic | /calendar/teacher/teacher.php | UTF-8 | 3,247 | 3.03125 | 3 | [] | no_license | <!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.0">
<title>線上月曆</title>
<style>
.dayoff{
background-color:pink;
}
.special-date{... | true |
a39f5705e6a819e58d0fc515c5df258dc332ed4a | PHP | mthdht/blog | /src/Routing/Route.php | UTF-8 | 2,584 | 3.0625 | 3 | [] | no_license | <?php
namespace Blog\Routing;
use Blog\Http\Request;
class Route
{
private $path;
private $handler;
private $matches = [];
private $name;
private $restrictions = [];
public function __construct($path, $handler)
{
// validation des paramètres
if (! is_string($path)) {
... | true |
85c6443797806480cc3717d51225aa6b6b59b078 | PHP | ddoherty97/FLEX | /php/CreateMentalData.php | UTF-8 | 2,533 | 2.953125 | 3 | [] | no_license | <?php
/**
* CreateMentalData.php
* This file, written in procedural language (not object-oriented), is used to add
* a mental health data to the FLEX application. It will process the form fields on
* the tracking/mentaltracking.php page. Note: This is intended to be an action script
* Author:... | true |
3bf8fcc4136fb098e632e35197c72f9315258ca5 | PHP | jamierumbelow/pigeon | /tests/pigeon_test.php | UTF-8 | 9,866 | 2.8125 | 3 | [] | no_license | <?php
/**
* Intelligent, elegant routing for CodeIgniter
*
* @link http://github.com/jamierumbelow/pigeon
* @copyright Copyright (c) 2012, Jamie Rumbelow <http://jamierumbelow.net>
*/
require_once 'libraries/pigeon.php';
class Pigeon_test extends PHPUnit_Framework_TestCase
{
/* --------------------------------... | true |
2beb7e3e607206f73294165bcc89a902ff5f7e4b | PHP | giggsey/Locale | /tests/DataBuilderTest.php | UTF-8 | 3,518 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
namespace Giggsey\Locale\Tests;
use Giggsey\Locale\Build\DataBuilder;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Filesystem\Filesystem;
class DataBuilderTest extends TestCase
{
protected static $outputDir;
public static function setUpBeforeCl... | true |
28dc6a128312a6617db76819f7b54c93ec5a1c4f | PHP | KennedyTedesco/swoole-coroutines | /src/co7.php | UTF-8 | 327 | 2.6875 | 3 | [] | no_license | <?php
use Swoole\Coroutine\System;
go(static function () { //T1
echo "[init]\n";
go(static function () { //T2
System::sleep(3);
go(static function () { //T3
System::sleep(2);
echo "co3\n";
});
echo "co2\n";
});
System::sleep(1);
echo "co1\n... | true |
f237d273f58009b184247017c47a67054ff5d7d9 | PHP | frankmicro/my-app | /server/blog/app/Exceptions/Handler.php | UTF-8 | 2,428 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Exceptions;
use Exception;
use Illuminate\Validation\ValidationException;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\HttpException;
... | true |
694fde7af6a938b69b58754a09c556c014574f8f | PHP | ianarundale/sociable | /sociable/classes/widgets/widget.php | UTF-8 | 535 | 3 | 3 | [] | no_license | <?php
class Widgets_Widget
{
function __construct($id)
{
$this->id = $id;
$this->classNames = array();
}
public function render()
{
throw Exception ("Widget::render called - the subclass for widget '" +
$this->id + "' must have not overridden the ren... | true |
42f35ccc257a43373a0ef0ca591a7dc9188333d6 | PHP | evgen7171/algorithm | /дом задание/FindClass.php | UTF-8 | 2,072 | 3.53125 | 4 | [] | no_license | <?php
class FindClass
{
public function binarySearch($arr, $elem)
{
$left = 0;
$right = count($arr) - 1;
while ($left <= $right) {
$middle = floor(($left + $right) / 2);
if ($arr[$middle] == $elem) {
return $middle;
} e... | true |
cfeab700a0feb59efa9c527f384d23624026ad9c | PHP | js-aw/sitemap | /src/Xml/Sitemap/Index.php | UTF-8 | 1,988 | 2.828125 | 3 | [] | no_license | <?php
namespace Sitemap\Xml\Sitemap;
/**
*
* @version 1.0
* @copyright Copyright (c) 09.08.2017, werbeagentur aufwind GmbH
* @author Andy Weichler <andy.weichler@aufwind-group.de>
*/
class Index {
/**
*
* @var \Sitemap\Xml\Node\Sitemapindex
*/
protected $_sitemap_index;
protected $_f... | true |
1ce706d944bf8e56c6f8aaa82382b0608a1ec704 | PHP | Pierrot62/Pierre-DWWM | /Caisse enregistreuse/php/Controller/testObj.php | UTF-8 | 760 | 3.109375 | 3 | [] | no_license | <?php
function autoload($classe)
{
require $classe . ".Class.php";
}
spl_autoload_register("autoload");
function afficheTableau($tab)
{
echo "\n";
foreach ($tab as $elt) // le tableau est parcouru de la 1ere à la dernière case, les cases sont mises tour à tous dans $elt
{
echo $elt->toString... | true |
0b6f3767df7e88164780659ded9c5ffd6ad81d4c | PHP | WebChemistry/social-share | /src/Provider/WhatsAppProvider.php | UTF-8 | 625 | 2.65625 | 3 | [] | no_license | <?php declare(strict_types = 1);
namespace WebChemistry\SocialShare\Provider;
use Nette\Http\Url;
use WebChemistry\SocialShare\LinkShareResult;
use WebChemistry\SocialShare\SocialShareProviderInterface;
use WebChemistry\SocialShare\UrlToShare;
final class WhatsAppProvider implements SocialShareProviderInterface
{
... | true |
12ca00b0b7e8eea655777195c79b2d423a7136c7 | PHP | mpenna/mixedfeed | /src/InstagramUserFeed.php | UTF-8 | 3,352 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Copyright © 2015, Ambroise Maupate
*
* 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 without limitation the rights
* to use, copy, modify, mer... | true |
8a80ee720071b2c0cd612931f62e6a0c7692042c | PHP | kurt6783/iron_man | /backend/laravel/app/Console/Commands/sayHello.php | UTF-8 | 819 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\Message;
class sayHello extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'message:sayHello';
/**
* The console command description... | true |
855059089749923db66ebca69e041f22a3c262be | PHP | sd593/api01 | /api6/app/User.php | UTF-8 | 682 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
//specify which could make visible only
protected $fillable = [
'name', 'email', 'password',
]... | true |
9517513d394a4a3dad5ffed2e80380267d63d687 | PHP | diniazzahra/opac | /database/migrations/2014_10_12_000000_create_users_table.php | UTF-8 | 1,051 | 2.578125 | 3 | [] | no_license | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... | true |
5e049871f5127bcdb73b1d791d3dbc8d4b129091 | PHP | LukeM7/SCU | /COEN10/Lab4/lab4second.php | UTF-8 | 1,236 | 3.6875 | 4 | [] | no_license | <html>
<body>
<H1> How'd You Fare? </H1>
<?php
$num1 = $_POST["num1"];
$num2 = $_POST["num2"];
$num3 = $_POST["num3"];
$num4 = $_POST["num4"];
$num5 = $_POST["num5"];
$counter = 0;
$num=array ($num1, $num2, $num3, $num4, $num5);
$rand=array (0,0,0,0,0);
for ($i=0;$i<5;$i++)
... | true |
ccb05e9a0e3989fa1bd0ee96dce909c3f4fac0a0 | PHP | darektoa/PHP-Projects | /belajarClassDanFunction.php | UTF-8 | 819 | 3.96875 | 4 | [] | no_license | <?php
class Person
{
const AUTHOR = "Muhammad Arief";
var string $name;
var ?string $address = null; //nullable
var string $country = "Indonesia";
public function __construct(string $name, ?string $address)
{
$this->name = $name;
$this->address = $address;
}
function s... | true |
6db593476b1f92c6950b2b20437ad89286ed58ec | PHP | tpheiska/TiSoHa | /libs/models/kurssikyselyt.php | ISO-8859-1 | 4,618 | 2.828125 | 3 | [] | no_license | <?php
require_once 'libs/functions.php';
class Kurssikyselyt {
private $kurssiId;
private $kurssinNimi;
private $opettajaNro;
private $aktiivinen;
/**
*Etsitn aktiiviset kurssikyselyt.
*/
public static function etsiAktiivisetKurssikyselyt() {
$sql = "SELECT Kysely.Kurss... | true |
379161304a3ff8049439ccb7a327d1ae5449def1 | PHP | MaDinStaNt/project | /includes/php/classes/base/template.php | UTF-8 | 32,811 | 2.703125 | 3 | [] | no_license | <?
/**
* @package LLA.Base
*/
/**
*/
require_once(BASE_CLASSES_PATH.'classfactory.php');
require_once(BASE_CLASSES_PATH.'utils.php');
if (!isset($pt_template_factory) || !is_object($pt_template_factory)) $pt_template_factory = new CClassFactory(); // Create template factory if not created
/*
------------------------... | true |
5ae874f2e3c962fe5410d2bf83601f7bf36c1b31 | PHP | RamanujK/rpinventory | /insertRepairRecord.php | UTF-8 | 4,085 | 2.65625 | 3 | [] | no_license | <?php
/*
Copyright (C) 2010, All Rights Reserved.
This file is part of RPInventory.
RPInventory 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 y... | true |
c43cc287c622cb74246226cd30c148ba599fdccf | PHP | ketuker/oil-palm-cultivation-thesis | /models/Landpeat.php | UTF-8 | 1,845 | 2.59375 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
use dektrium\user\models\User;
/**
* This is the model class for table "landpeat".
*
* @property integer $id
* @property double $slope_thick
* @property double $slope_ripe
* @property double $thick_ripe
* @property double $bobot_slope
* @property double $bobot_thick
* @... | true |
756389239d06ff80d85b444c4997a20a40ed13e1 | PHP | LavaToaster/aws-pricing-tool | /src/AWS/Resources/Product.php | UTF-8 | 728 | 2.953125 | 3 | [] | no_license | <?php
namespace Lavoaster\AWSClientPricing\AWS\Resources;
class Product
{
/**
* @var string
*/
protected $sku;
/**
* @var string
*/
protected $productFamily;
/**
* @var array
*/
protected $attributes;
public function __construct(array $data)
{
... | true |
d89d3af51c3fd2e56002e6b0611d79fdb0e419e4 | PHP | MaxLacasseG/eva | /gabarits/gabarit.class.php | UTF-8 | 551 | 3.015625 | 3 | [] | no_license | <?php
class Gabarit {
protected $variables = array();
protected $controleur;
protected $action;
function __construct($controleur, $action) {
$this -> controleur = $controleur;
$this -> action = $action;
}
public function affecter($nom, $valeur) {
$this -> variables[$nom] = $valeur;
}
... | true |
ba38409a95ea2763201ef5942b46f1361865f517 | PHP | ensi-platform/laravel-openapi-server-generator | /src/Generators/TestsGenerator.php | UTF-8 | 4,558 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace Ensi\LaravelOpenApiServerGenerator\Generators;
use cebe\openapi\SpecObjectInterface;
use InvalidArgumentException;
use RuntimeException;
use stdClass;
abstract class TestsGenerator extends BaseGenerator implements GeneratorInterface
{
abstract protected function convertRoutesToTestsString(array $... | true |
d5f0c0d8e2a3accdc6bd8f2ad3c48b7544273162 | PHP | iprbooks/iprbooks-ebs-sdk | /src/Client.php | UTF-8 | 1,099 | 2.90625 | 3 | [] | no_license | <?php
namespace Iprbooks\Ebs\Sdk;
use Exception;
use Firebase\JWT\JWT;
use Iprbooks\Ebs\Sdk\Core\Curl;
final class Client
{
/*
* id пользователя
*/
private $clientId;
/*
* Секретный ключ
*/
private $secretKey;
/**
* Конструктор Client
* @param $clientId
* @pa... | true |
cd36ebf2f44d65808a510d68679a84d099c42c84 | PHP | smithjessk/statistics | /GLAs/pageRank.h.php | UTF-8 | 8,635 | 2.859375 | 3 | [] | no_license | <?
function Page_Rank_Constant_State(array $t_args)
{
// Grabbing variables from $t_args
$className = $t_args['className'];
?>
using namespace arma;
using namespace std;
class <?=$className?>ConstantState {
private:
// The current iteration.
int iteration;
// The number of distinct nodes in th... | true |
b793b7e7a7caa5ea68509d8533edacf3c67b94ed | PHP | gdbots/pbjx-php | /src/EventSearch/EventSearch.php | UTF-8 | 2,538 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | <?php
declare(strict_types=1);
namespace Gdbots\Pbjx\EventSearch;
use Gdbots\Pbj\Message;
use Gdbots\Pbj\SchemaCurie;
use Gdbots\Pbj\WellKnown\Identifier;
use Gdbots\Pbjx\Exception\GdbotsPbjxException;
use Gdbots\QueryParser\ParsedQuery;
interface EventSearch
{
/**
* Creates the storage for the EventSearch.... | true |
61e2adaa86b3c91b1565752b046ab0ef1463a61f | PHP | chongwu/tickets | /app/Specialist.php | UTF-8 | 670 | 2.53125 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* App\Specialist
*
* @property integer $user_id
* @property integer $specialist_group_id
* @property-read \App\User $user
* @property-read \App\SpecialistGroup $group
* @method static \Illuminate\Database\Query\Builder|\App\Specialist whereUserI... | true |
3ab83e61014c9f74704f24614096cfab213bfeaf | PHP | janicheg/visio-crud-zf2 | /src/VisioCrudModeler/Generator/ParamsInterface.php | UTF-8 | 982 | 2.71875 | 3 | [] | no_license | <?php
namespace VisioCrudModeler\Generator;
/**
* representation of generator params
*
* @author Bartlomiej Wereszczynski <bartlomiej.wereszczynski@isobar.com>
* @link https://github.com/HyPhers/hyphers-visio-crud-zf2
* @copyright Copyright (c) 2014 HyPHPers Isobar Poland (Piotr Duda , Przemysław Wlodkowski... | true |
50c1f91362b98aebefb79aa0fa0f8205f38f0bfe | PHP | fatihavci06/kurumsal | /database/seeders/teamseeder.php | UTF-8 | 448 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class teamseeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('teams')->insert([
'name'=>'Fatih',
'job'... | true |
38546e351f13d7a924db3da4f69c0a0bd25c8a30 | PHP | matercero/prudaferapp | /controllers/estadosavisos_controller.php | UTF-8 | 1,849 | 2.515625 | 3 | [] | no_license | <?php
class EstadosavisosController extends AppController {
var $name = 'Estadosavisos';
function index() {
$this->Estadosaviso->recursive = 0;
$this->set('estadosavisos', $this->paginate());
}
function view($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid estadosaviso', true));
$this->... | true |
8dad432dbf3f6fc081e716dd41c6a5eb89e29349 | PHP | Jerem33320/instafrep | /src/Controller/AgeController.php | UTF-8 | 713 | 2.828125 | 3 | [] | no_license | <?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
class AgeController extends AbstractController
{
public function guessYear($age): ?int {
return is_numeric($age... | true |
8aeeec1d0cc0aa68f67962f45463f66f8f86ad45 | PHP | ciumchen/lk_admin | /app/Models/Setting.php | UTF-8 | 1,749 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\Setting
*
* @property int $id
* @property string $key
* @property string $value
* @property string $msg 参数说明
* @property \Illuminate\Support\Carbon|null $created_at
* @property \I... | true |
d6df1a05cd0043b76c24ff356e262f5ca13be2d6 | PHP | zerohc83/ClanSystem-Beta | /src/Wassi/Main.php | UTF-8 | 6,268 | 2.734375 | 3 | [] | no_license | <?php
namespace Wassi;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\TextFormat;
use pocketmine\plugin\PluginDescription;
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
use pocketmine\event\Listener;
use pocketmine\level\Level;
use pocketmine\Player;
use pocketmine\Server;
use pocketmi... | true |
4535d46e6e5e8b54c0eabe35afe2c1872784c5d9 | PHP | PhyrusFramework/framework | /http/CRUD.php | UTF-8 | 5,221 | 3.15625 | 3 | [] | no_license | <?php
class CRUD {
private $route;
public function getRoute() {
return $this->route;
}
private $_middleware = null;
private $_list = null;
private $_get = null;
private $_create = null;
private $_edit = null;
private $_delete = null;
private $_customs = [];
publ... | true |
b02202b4e1cc13526cf5d2eaafb702ca0877c5e9 | PHP | eLFuvo/yii2-date-compare | /src/helpers/DateConvertHelper.php | UTF-8 | 1,589 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm
* User: elfuvo
* Date: 2021-02-14
* Time: 19:42
*/
namespace elfuvo\dateCompare\helpers;
use DateTime;
use DateTimeZone;
use Yii;
/**
* Class DateCompareHelper
* @package elfuvo\dateCompare\helpers
*/
class DateConvertHelper
{
/**
* convert date from application time ... | true |
d98c815b79b90ecc39b2df48b0fa89179c4a8e09 | PHP | oreganrob/GeoDataPointCleanup-php | /lib/Location.php | UTF-8 | 399 | 2.703125 | 3 | [] | no_license | <?
/**
* Interface for the 'Location' type.
* This interface is used for type hinting in method signatures
* and also for instanceof comparison
*/
interface Location
{
/**
* Return the latitude.
*
* @return latitude The latitude
*/
public function getLatitude();
/**
* Return the longitude.
*
... | true |
3c51eed2783ac0f4b6cffa52df9656a1dfb147f0 | PHP | kameiy/laravel_sample | /app/Http/Controllers/ProjectController.php | UTF-8 | 2,327 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Project;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class ProjectController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
... | true |
0ee2c3f0f7ac8ef36953735dfcdd0479b00d9d88 | PHP | 450461/carProject | /application/models/model_azs.php | UTF-8 | 3,494 | 2.859375 | 3 | [] | no_license | <?php
use core\Model;
use helpers\App;
use helpers\Help;
class Model_Azs extends Model
{
public $id;
public $name;
public $adress;
public $city;
const TABLE_NAME = 'azs';
function __construct()
{
//проверка существования таблицы в бд
if ( App::$db1->checkTable(self::TABLE_NAME) )
{... | true |
c8502df2f1328e18e16d7e993e0ec6340f8a1a1d | PHP | marekpo/tourdb | /config/migrations/036_add_menu_entry_for_list_tours_without_report.php | UTF-8 | 1,643 | 2.515625 | 3 | [] | no_license | <?php
class M4fd4e0f6e33448a29a0b18d81b2c2a9b extends CakeMigration {
/**
* Migration description
*
* @var string
* @access public
*/
public $description = '';
/**
* Actions to be performed
*
* @var array $migration
* @access public
*/
public $migration = array(
'up' => array(
),
'down' => array(
... | true |
3aff1660183e94a11c9eca8fe0b17e2aba322d0c | PHP | ArtARTs36/ULoginLaravel | /src/Support/UserOnULogin.php | UTF-8 | 944 | 2.546875 | 3 | [] | no_license | <?php
namespace ArtARTs36\ULoginLaravel\Support;
use ArtARTs36\ULoginApi\Entities\User as ExternalUser;
use ArtARTs36\ULoginLaravel\Contracts\User;
use ArtARTs36\ULoginLaravel\Models\Profile;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Str;
trait UserOnULogin
{
/**
* @return i... | true |
57758bc49d1652a13d3b63ee1311a7dc9b23ba05 | PHP | allemas/php-cqs-fleet-management | /back/src/Infra/Repository/FleetRepository.php | UTF-8 | 800 | 3.015625 | 3 | [] | no_license | <?php
namespace App\Infra\Repository;
use App\Domain\Entity\Fleet;
use App\Domain\Entity\FleetRepositoryInterface;
use App\Domain\Entity\Owner;
use App\Domain\Entity\Vehicule;
class FleetRepository implements FleetRepositoryInterface
{
private $fleet;
public function __construct($fleet = array())
{
$thi... | true |
069d2ad9680738fcb5cefa8c2eea0528a8d72af0 | PHP | wakeless/php-annotations | /test/AnnotationParsingTest.php | UTF-8 | 14,573 | 2.640625 | 3 | [] | no_license | <?php
/**
* =============================================================================
* Copyright (c) 2010, Philip Graham
* All rights reserved.
*
* This file is part of Reed and is licensed by the Copyright holder under the
* 3-clause BSD License. The full text of the license can be found in the
* LICENSE.... | true |
df25be62fa54b893d8d1b2b9ee76d752901c5391 | PHP | Emile-Filteau/CloudTeamManager | /server/action/CommonAction.php | UTF-8 | 1,591 | 2.953125 | 3 | [] | no_license | <?php
session_start();
abstract class CommonAction {
public static $VISIBILITY_PUBLIC = 0;
public static $VISIBILITY_MEMBER = 1;
public static $VISIBILITY_ADMIN = 2;
public $pageVisibility;
public function __construct($pageVisibility) {
$this->pageVisibility = $pageVisibility;
}
public function execute(... | true |
453e0b2785fdda849bb851f113d9a9f9fe29affc | PHP | naucon/Form | /src/Form.php | UTF-8 | 1,784 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
/*
* Copyright 2008 Sven Sanzenbacher
*
* This file is part of the naucon package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Naucon\Form;
use Naucon\Form\Exception\InvalidArgumentException;
use Naucon\Form\Ma... | true |
fecfeab73a8a861662e0fedb87b8e2bcdddbcff2 | PHP | kumamidori/FormalBears | /src/Framework/AppMeta/AppMeta.php | UTF-8 | 2,151 | 2.53125 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
/*
* Copyright (c) Atsuhiro Kubo <kubo@iteman.jp>,
* All rights reserved.
*
* This file is part of FormalBears Framework.
*
* This program and the accompanying materials are made available under
* the terms of the BSD 2-Clause License which accompanies this
* distribution, and is available at http://opens... | true |
d04d3b6c847c870f6189b40e81ea70cfbfa85d95 | PHP | thyagopacher/lwarquitetos | /painel/Fabricante.php | UTF-8 | 5,114 | 2.609375 | 3 | [] | no_license | <?php
$painel = TRUE;
include("includes/validaLogin.php");
if(isset($_REQUEST["codfabricante"])){
include("../controlador/ControleFabricante.php");
if(isset($retorno)){
$fabricante = mysql_fetch_array($retorno);
}else{
$fabricante = NULL;
}
}
i... | true |
3b242445535db416492b9441dc5ac8e996a95785 | PHP | IgnasiBosch/HexagonalArchitecture_Laravel | /src/Task/Adapter/TaskValitronValidator.php | UTF-8 | 869 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace Hexagonal\Task\Adapter;
use Hexagonal\Common\Validator;
use Valitron\Validator as V;
class TaskValitronValidator implements Validator
{
private static $rules = [
'description' => ['required', ['lengthMin', 5]]
];
/**
* @var Validator
*/
private $validator;
/*... | true |
bc50cba1fb850faa5235fe4c8dc43777cba28161 | PHP | itedev/FormBundle | /Form/DataTransformer/RangeToStringTransformer.php | UTF-8 | 2,755 | 2.6875 | 3 | [] | no_license | <?php
namespace ITE\FormBundle\Form\DataTransformer;
use ITE\FormBundle\Form\Data\Range;
use ITE\FormBundle\Form\Data\RangeInterface;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
/**
* Class RangeToStringTransformer
*
* @author c1tru55 <m... | true |
84b9a39bb9c8cb187bde87b8444b4975b0f22a17 | PHP | osei95/P2016-E15-PHP | /app/Controllers/Oauth_controller.php | UTF-8 | 3,563 | 2.515625 | 3 | [] | no_license | <?php
class Oauth_controller{
function __construct(){}
function oauth_1_0_auth($f3,$vars){
$query = parse_url($f3->get('PARAMS')[0],PHP_URL_QUERY);
$params = array();
parse_str($query, $params);
$oauth = new OAuth($vars['conskey'], $vars['conssec'], OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_AUTHO... | true |
8efe9a2250f691044dcb7224c3d63a57b1cebe45 | PHP | luyucia/CatPHP | /catphp/core/core.php | UTF-8 | 2,816 | 2.671875 | 3 | [] | no_license | <?php
/**
* CatPHP
*
* An open source php development framework for PHP
*
* @package CatPHP
* @author luyucia@gmail.com
* @license http://codeigniter.com/user_guide/license.html
* @link http://catphp.org
* @since Version 1.0
* @filesource
*/
/*
* ----------------------------------... | true |
36c6cf5784b3fbe8dda5c4871b981f12ce696628 | PHP | azizmasr93/telkom | /jalan.php | UTF-8 | 1,222 | 2.609375 | 3 | [] | no_license | <?php
include "excel_reader2.php";
$username = "root";
$password = "";
$database = "telkom";
mysql_connect("localhost", $username, $password);
mysql_select_db($database);
// file yang tadinya di upload, di simpan di temporary file PHP, file tersebut yang kita ambil
// dan baca dengan PHP Excel Class
$data = new Sprea... | true |
d84bebf3574e894dc0d11c93ba86cb76afe7842a | PHP | vmuruganandam/Enterprise | /assets/www/index.php | UTF-8 | 1,662 | 2.65625 | 3 | [] | no_license |
<html>
<form action="uploader.php">
<input type="submit" value="Back">
</form>
<?php
$today = getdate();
echo $today['month'] . " " . $today['wday'] . " " . $today['year'];
echo "<br>";
?>
<?php
echo $_POST['appname'];
echo "<br>";
echo $_POST['appversion'];
echo "<br>";
if ($_FILES["file"]["error"] > 0)
{
... | true |
36b5b2cb567765dc4e31b78f5de97399a762cb62 | PHP | yuriyur/simvc | /classes/Router.php | UTF-8 | 3,251 | 2.515625 | 3 | [] | no_license | <?php
class Router {
private $registry;
private $path;
private $args = array();
function __construct($registry) {
$this->registry = $registry;
}
function setPath($path) {
$path = trim($path, '/\\');
$path .= DIRSEP;
$path = "/".$path;
if (is_dir($path) =... | true |
681006882bd5b389f7edd8e188d5fbb730d0978f | PHP | yamaza520/dev_hjobs | /application/core/MY_Model.php | UTF-8 | 6,563 | 2.5625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Model extends CI_Model
{
protected $table = '';
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$this->load->database();
}
/**
* Insert record
* @... | true |
40c06d948641710d020aa3e29d08f10b93837e09 | PHP | Chad-Krause/Team-Manager | /lib/Manager/Models/Injuries.php | UTF-8 | 4,105 | 2.9375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: ckrause
* Date: 7/10/2018
* Time: 3:11 PM
*/
namespace Manager\Models;
use Manager\Config;
use Manager\Models\Injury;
class Injuries extends Table
{
public function __construct(Config $config)
{
parent::__construct($config, "injury");
}
/**
... | true |
b1b7ae55bb03eecf4dfda1ec7e0eb616c02dfdfa | PHP | dandingaxing/axmvc | /common/lib/page.php | UTF-8 | 8,083 | 2.640625 | 3 | [] | no_license | <?php
namespace common\lib;
use common\base;
// 自制PHP分页类
// 灵活返回
class page {
public $total; //总记录数
public $size = 8; //一页显示的记录数
public $nowpage = 1; //当前页
public $pagecount; //总页数
public $limit = 15; ... | true |
1b53f260d57f79ff69af1874ded5c790a569405c | PHP | guttamc7/textchange | /TextChange/Parsing.php | UTF-8 | 552 | 2.578125 | 3 | [] | no_license | <?php
include_once ("database.php");
$mycourses = simplexml_load_file('thefinale.xml');
$i=0;
foreach($mycourses as $course)
{
$CourseNumber= $mycourses->course[$i] ['number'];
$CourseTitle = $mycourses->course[$i] ['title'];
$CourseM = explode(" " ,$CourseNumber);
$CourseMajor=$CourseM[0];
echo $CourseNumber;
... | true |
074c43d212b18de30df7acade855fc3ec05674a6 | PHP | Nguyendinhhuyit/WADP---PHP | /d05/Lab5_array.php | UTF-8 | 470 | 3.328125 | 3 | [] | no_license | <!DOCTYPE html>
<!--
tao mang index
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<h2>Array Demo</h2>
<hr>
<p>Tao mang bang cach dung ham Array</p>
<?php
$a = array("Dung", "Thu", "Kim", "An", "Huyen", "Bao", "Tan", "Trung", "... | true |
bbd72e579fbff55175fa74692269ebef9be80009 | PHP | Guiboii/tizik.1.0 | /src/Controller/StudentController.php | UTF-8 | 1,370 | 2.515625 | 3 | [] | no_license | <?php
namespace App\Controller;
use App\Entity\Role;
use App\Entity\User;
use App\Form\StudentAddType;
use App\Repository\RoleRepository;
use App\Repository\UserRepository;
use Symfony\Component\HttpFoundation\Request;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\HttpFoundation\Response;
use S... | true |
4bd95eb86b3bd838e33bb199b4c38e7e0bbf0ee4 | PHP | worstinme/yii2-uikit | /ActiveForm.php | UTF-8 | 3,633 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the yii2-uikit project.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*
* @copyright yii2-uikit (c) 2018
* @author Eugene Zakirov (worstinme) <box@flyleaf.su>
*/
namespace worstinme\uikit;
use Yii... | true |
4b1ecd5c717e1af0006988792f37991a9e6a5d25 | PHP | Wiatrogon/php-allegro-rest-api | /tests/ApiTest.php | UTF-8 | 2,022 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
require_once dirname(__DIR__) . '/src/Resource.php';
require_once dirname(__DIR__) . '/src/Api.php';
use PHPUnit\Framework\TestCase;
class ApiTest extends TestCase
{
function testGetUri()
{
$api = new Allegro\REST\Api('eggs', 'spam', 'ham'... | true |
229b20c53fffb9b4a46190541e5439dd723bec36 | PHP | pkirkaas/PKMVC | /PKMVCFramework/MVCLib.php | UTF-8 | 3,969 | 3.03125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace PKMVC;
/**
* PKMVC Framework
*
* @author Paul Kirkaas
* @email p.kirkaas@gmail.com
* @link
* @copyright Copyright (c) 2012-2014 Paul Kirkaas. All rights Reserved
* @license http://opensource.org/licenses/BSD-3-Clause
*/
/**
* Description of PKMVCLib
*
* @author ... | true |
4042e4cd585dcddd7e5eeed11cab0eeef54cb0d9 | PHP | winter0245/exercise | /login.php | UTF-8 | 787 | 2.671875 | 3 | [] | no_license | <!DOCTYPE html>
<?php
require 'dao.php';
?>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form action="uploadfile.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />... | true |
43f0cc1b4422adcb0f9456fbfb9c9b900a19fb2c | PHP | chatondearu/hanako-fwk | /common/system/core/generated.php | UTF-8 | 1,098 | 2.96875 | 3 | [] | no_license | <?php if ( ! defined('HANAKO_SYSTEM')) exit('Accès interdis');
$GeneratedTime;
function getGeneratedTime($type){
global $GeneratedTime;
if(is_string($type) && !($type != 'stop' && $type != 'start') ){
switch($type){
case 'start':
//Get current time
$mtime = micr... | true |
e66cc117005c00512f9d9f56f6db5f1fe5056ed8 | PHP | ascottp81/ScotlandFootballStats4.0 | /app/Models/History.php | UTF-8 | 1,734 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Classes\GettyImage;
class History extends Model
{
use SoftDeletes;
/**
* The database table used by the model.... | true |
975f417e5e6e5f50551f9cc6dfc8c56e203ead46 | PHP | shadowdestiny/dockenizacion | /src/apps/web/services/card_payment_providers/shared/CardPaymentProviderConfigFilter.php | UTF-8 | 892 | 2.75 | 3 | [] | no_license | <?php
namespace EuroMillions\web\services\card_payment_providers\shared;
use EuroMillions\web\vo\PaymentCountry;
use EuroMillions\web\vo\PaymentWeight;
class CardPaymentProviderConfigFilter
{
protected $countries;
protected $weight;
use CountriesCollection;
public function __construct($weight = 1... | true |
2725a1dd09d3a38b66667f123b04aa27eb19f8f8 | PHP | silasstoffel/curso-ddd-php | /src/Shared/Dominio/Evento/PublicadorEvento.php | UTF-8 | 405 | 2.65625 | 3 | [] | no_license | <?php
namespace Alura\Arquitetura\Shared\Dominio\Evento;
class PublicadorEvento
{
private $ouvintes = [];
public function adicionarOuvinte(OuvinteEvento $ouvinte): void
{
$this->ouvintes[] = $ouvinte;
}
public function publicar(EventoInterface $evento): void
{
foreach ($this-... | true |
dc3a5444739815b240ca86788092b90fa09b2f9b | PHP | BadSantyago/PHP | /My task/Chapter/3/3.php | UTF-8 | 413 | 2.6875 | 3 | [] | no_license | <?php
/*$a = 10;
$myarray = array('one', '2', '4');
$array = ['1', '3', ];
$string = 'Hello world';
$count = 225;
$Count = 105;
$mycount = 105.5;*/
$count = 70; // переменная числа
$Count = 105; // чувствительность к регистру
$_string = 'Hello World'; // С подчёркивания
$array1 = ... | true |
3aee2ade3b47120fcf405d60885864543bf18c2e | PHP | iamevans/php_basic | /book3/3-02/array-09.php | UTF-8 | 124 | 2.84375 | 3 | [] | no_license | <?php
$input = array("a"=>"oranges", "b"=>"apples", "c"=>"pears");
$flipped = array_flip($input);
print_r($flipped);
?>
| true |
93d367a233f761e2f61066910d0ede5183d49bda | PHP | BGCX261/zoombi-svn-to-git | /branches/autoload/Main/httprouter.php | UTF-8 | 1,498 | 2.90625 | 3 | [] | no_license | <?php
class Zoombi_HttpRouter
{
public $router;
public function __construct()
{
$this->router = (object)array(
'get' => new Zoombi_StringRouter(),
'post' => new Zoombi_StringRouter(),
'put' => new Zoombi_StringRouter(),
'delete' => new Zoombi_StringRouter()
);
}
function route( $a_route = nul... | true |
ed31aa45065e509be8a53dd73dde7dcd750e8a50 | PHP | sirstudly/hostel-reservations | /wordpress/wp-content/plugins/hbo-reports/include/lil_hotelier_dbo.class.php | UTF-8 | 67,813 | 2.578125 | 3 | [] | no_license | <?php
/**
* Database object for little hotelier tables.
*/
class LilHotelierDBO {
private static $INSTANCE = null;
private $SHARED_DB = null;
const STATUS_COMPLETED = 'completed';
const STATUS_SUBMITTED = 'submitted';
const STATUS_PROCESSING = 'processing';
const STATUS_FAILED = 'failed';
... | true |
850ee9415027fcaf564646b6a3eb929b53582cc3 | PHP | juliettepxv/aiko | /project/php-classes/Startup/Site.php | UTF-8 | 2,370 | 2.6875 | 3 | [] | no_license | <?php
namespace Startup;
use Classiq\Models\Page;
use Pov\System\AbstractSingleton;
/**
* Cette classe contient des méthodes et des propriétés propre au projet
* @package Startup
*/
class Site extends AbstractSingleton
{
/**
* @var string clé publique à configurer pour les APIs Google ajavascript (googl... | true |
e142828a18d6c47f1d96d6454c00ec7bb5962f68 | PHP | apriliaaachi/ProjectPertamina | /application/views/home/tambah.php | UTF-8 | 5,369 | 2.515625 | 3 | [] | no_license | <?php
//Validasi input
echo validation_errors('<div class="alert alert-warning">','</div>');
//Buka Form
echo form_open(base_url('home/tambah'));
?>
<div class="col-md-6">
<div class="form-group form-group-lg">
<label>EQU</label>
<input type="text" name="no_equ" class="form-control" placeholder="Masukkan... | true |
661233bb1e4a091a6752cd4a6f05938b7f7608c0 | PHP | anton-pribora/phpclassgen | /classes/CbXsdClassGen.php | UTF-8 | 20,428 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
class CbXsdClassGen
{
/**
*
* @var CbClass
*/
protected $class = null;
protected $namespaces = [];
public function getNamespaces()
{
return $this->namespaces;
}
public function setNamespaces($namespaces)
{
$this->namespaces = $namespaces;
... | true |
6b10442ea860cf4ebb4239c61a51f0a95c6541c8 | PHP | bishwajit007/roy500420.github.io | /c001/hw3.php | UTF-8 | 300 | 3.1875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>This is HW 3</title>
</head>
<body>
<?php
$a = 'Dhaka ';
$b = 'Rajshahi ';
echo '<b>'.$a.'is the capital of BD</b>';
echo "<br>";
echo '<b>'.$b.'is the most beautiful city of BD</b>';
?>
</body>
</html> | true |
f56029f3816bdb9da5105b147ceadef4797ea585 | PHP | mdnbras/setran-projeto | /back-end/app/Middleware/UnloggedUserMiddleware.php | UTF-8 | 1,188 | 2.875 | 3 | [] | no_license | <?php
namespace App\Middleware;
class UnloggedUserMiddleware
{
/**
* Dependency container provided by Slim
* @var \Slim\Container
*/
protected $container;
/**
* Save dependency container
* @param \Slim\App $app slim application
*/
public function __construct($container)
... | true |