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
6266da750c81fde514cf4f33f16b804b377d9faf
PHP
vad1974/linemedia.auto
/classes/general/parts_helper.php
WINDOWS-1251
2,085
2.859375
3
[]
no_license
<?php /** * Linemedia Autoportal * Main module * Parts helper * * @author Linemedia * @since 22/01/2012 * * @link http://auto.linemedia.ru/ */ IncludeModuleLangFile(__FILE__); /** * , . */ class LinemediaAutoPartsHelper { /** * . * * @param string $art * @param...
true
f380bda859251377e316068d86bfedb4865f2d9a
PHP
gbelot2003/legal
/app/User.php
UTF-8
1,607
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Illuminate\Database\Eloquent\Model; use Zizaco\Entrust\Trai...
true
612abb02ed51802c8e63684297ff3a1c1b924ea0
PHP
chu121su12/framework
/cr/ext/nunomaduro/collision/src/Adapters/Phpunit/Printers/ReportablePrinter.php
UTF-8
985
2.703125
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php /*declare(strict_types=1);*/ namespace NunoMaduro\Collision\Adapters\Phpunit\Printers; use Throwable; /** * @internal * * @mixin DefaultPrinter */ final class ReportablePrinter { private /*readonly DefaultPrinter */$printer; /** * Creates a new Printer instance. */ public function _...
true
8249819d4fe79d7353ac8f6522bc80a9af76ff8b
PHP
simenbkr/intern3
/modell/FeilkategoriListe.php
UTF-8
342
2.734375
3
[]
no_license
<?php namespace intern3; class FeilkategoriListe { public static function alle() { $db = DB::getDB(); $liste = array(); $st = $db->prepare('SELECT id FROM feilkategori WHERE id != 0 ORDER BY navn ASC'); $st->execute(); while($fk = $st->fetch()) { $liste[] = Feilkategori::medId($fk['id']); } re...
true
ec090c605d1873a7e96dc9438089240bc2e8d8a0
PHP
kasackee/TaskManageApp
/database/seeds/ProjectsTableSeeder.php
UTF-8
460
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; class ProjectsTableSeeder extends Seeder { /** * テスト用シーダー * * @return void */ public function run() { for ($i = 0; $i <= 10; $i++) { DB::table('projects')->insert([ 'name' => Str::random(10), 'des...
true
6fe19aa0087da33353f37c9c17cd045caea6ec87
PHP
orsdev/guestbook
/update.php
UTF-8
833
2.625
3
[]
no_license
<?php session_start(); include "config/db.php"; if (isset($_SESSION['userEmail'])) { $userEmail = mysqli_escape_string($db, $_SESSION['userEmail']); $data = $_POST['data']; $id = $_POST['id']; $sql = "UPDATE users SET $id='$data' WHERE userEmail='$userEmail'"; $result = mysqli_query($db, $sql); $row = mys...
true
82451979ac8fcbe5fb66217d50ad5dd9837dadfd
PHP
LendMeYourEars/lmye.github.io
/twatch/user/db/ArdeDbUser.php
UTF-8
8,556
2.734375
3
[ "Apache-2.0" ]
permissive
<?php /********************************************************************/ /* */ /* Copyright (C) 2004 Arash Dejkam, All Rights Reserved. */ /* http://www.tracewatch.com */ /* ...
true
d8f3b50988925e787fea8e9aab83d722956636f7
PHP
Azeem-Ul-Rehman-SA/SolarNest
/app/Http/Controllers/Backend/EmailTemplatesController.php
UTF-8
1,283
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use App\Models\EmailTemplates; use Illuminate\Http\Request; class EmailTemplatesController extends Controller { public function __construct() { $this->middleware('role:admin'); } public function index() {...
true
cee0873c860480490ebad3c7722ef447b393783a
PHP
Boyman10/BackendSf4
/html/src/Responder/DefaultResponder.php
UTF-8
825
2.828125
3
[]
no_license
<?php namespace App\Responder; use Symfony\Component\HttpFoundation\Response; /** * Responder class returning data * User: bill * Date: 13/05/2018 * Time: 19:41 */ final class DefaultResponder implements DefaultResponderInterface { private $twig; public function __construct(\Twig_Environment $twig) ...
true
28383542662e73cf722cdbc5b4e271892252dd16
PHP
Michaelfestekjian/blog1
/view/form.php
UTF-8
728
2.703125
3
[]
no_license
<?php require_once(__DIR__ . "/../model/config.php"); ?> <center><h1>Create blog post</h1></center> <!--this is to create a link to the blog post--> <form method="post" action=" <?php echo $path . "controller/create-post.php"; ?>"> <center> <div> <label for="title">Title:</label> <i...
true
2ba3dac824b61a30d9296ce8f15a13f0a4f92c66
PHP
madurmanov/yii2-vk-api-driver
/Module.php
UTF-8
1,596
2.5625
3
[ "MIT" ]
permissive
<?php namespace madurmanov\VkApiDriver; use yii\base\Module as BaseModule; class Module extends BaseModule { const API_URL = 'https://api.vk.com/method'; const OAUTH_BLANK_URL = 'https://oauth.vk.com/blank.html'; const OAUTH_AUTHORIZE_URL = 'https://oauth.vk.com/authorize'; public $clientID = 0; public $o...
true
3615b8252a3bc4535e1c14bf3e996ee3e4c7dfac
PHP
sredorta/ApiCM06
/app/Attachment.php
UTF-8
4,169
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use App\kubiikslib\Helper; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Storage; use Illuminate\Http\UploadedFile; use Intervention\Image\ImageManager; use App\Thumb; use finfo; class Attachment extends...
true
78ed5cf5b6f4c6e8bd83891ba17096bc27ca27f3
PHP
mkotsovoulou/ITC4314Fall2020
/PHPdb/addBooks.php
UTF-8
1,441
2.6875
3
[]
no_license
<?php if($_POST['p_title']) { include ('db.php'); $title = $_POST['p_title']; $quantity = $_POST['p_quantity']; $description = $_POST['p_description']; $price = $_POST['p_price']; $imagename = $_FILES['p_image']['name']; $imagetemp = $_FILES['p_image']['tmp_name']; $imagesize = $_FIL...
true
a7e5cbbfcff13dd5efd9f30db0ac01fb7ddff826
PHP
ferggren/rocky
/cli/utils/help.php
UTF-8
2,653
3
3
[]
no_license
<?php /** * Show info about available controllers */ class UtilsHelp_CliController extends CliController { public function action_default($script, $method) { if ($script && $method) { return self::_show_script_method($script, $method); } if ($script) { return self::_show_script_methods($sc...
true
0f2cc615efd36bb711f4a2a98022b172846ee6ca
PHP
dweckerly/Nuz2
/_new/home/game/util/mons.util.php
UTF-8
1,613
3.140625
3
[]
no_license
<?php function hpCalc($hp, $lvl) { return floor((($hp * $lvl)/ 50) + $lvl + 10); } function statCalc($stat, $lvl) { return floor((($stat * $lvl)/ 50) + $lvl + 5); } function xpCalc($lvl) { return floor(4 * ($lvl ** 3) / 5); } function setMoves($moveArr, $lvl) { $moves = explode('_', $moveArr); ...
true
0ae99938e78fe752f0857bab25acb7ce547e6496
PHP
Dilip-Sarvaiya/Ajax_Country_State_City
/ajax_country/states.php
UTF-8
408
2.59375
3
[]
no_license
<?php include("db/connection.php"); $sql = ""; if(isset($_GET['country'])){ $sql = "select * from states where countryID='".$_GET['country']."'"; }else{ $sql = "select * from states"; } $result = $db->query($sql); if($result->num_rows){ while($row = $result->fetch_assoc()){ ?> <option value="<?php ...
true
aab5c247d074ff69d9aac9415f553781b8da2150
PHP
palemre/H2T3-portfolio
/contact-form-handler.php
UTF-8
1,682
2.921875
3
[]
no_license
<?php $msg = ''; $msgClass = ''; // CHECK SUBMIT FOR CONTACT FORM if(filter_has_var(INPUT_POST, 'submit')) { $firstName = htmlspecialchars($_POST['firstName']); $lastName = htmlspecialchars($_POST['lastName']); $email = htmlspecialchars($_POST['email']); $message = ht...
true
10510a33ebb8b7b52bee8e5aba7bed7153fee170
PHP
cha23nan18/CodeIgniter-Every8D-SMS-Message
/controllers/sms_example.php
UTF-8
1,287
2.5625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Sms_Example extends CI_Controller { public function __construct() { parent::__construct(); } /** * av8d * * @return void * @author ruru.chen@studybank.com.tw **/ public function inde...
true
42d1f22316c56de038abf01b22743a86a3aa3481
PHP
Zainabb20/Day_8
/StudentTable_WithoutTheme.php
UTF-8
3,621
2.828125
3
[]
no_license
<?php //Establish Connection with database $host="localhost"; $passwd=""; $username="root"; $dbname="task_int"; //Connection Function $connection= mysqli_connect($host, $username, $passwd, $dbname); if($_POST) { $name=$_POST['name']; $gender=$_POST['gender']; $occupation=$_POST['occ']; $email=$_POST['em...
true
6f8d52ec9860aca9619b29b9d430229a1a3e7d3e
PHP
click2tman/slmdinc.org
/docroot/modules/custom/ocms_linkchecker/src/OcmsLinkcheckerLoggingInterface.php
UTF-8
1,861
2.625
3
[]
no_license
<?php namespace Drupal\ocms_linkchecker; use Drupal\Core\Logger\RfcLogLevel; /** * Defines an interface for the Link logging services. */ interface PupLinkcheckerLoggingInterface { /** * Logs a system message based on configured security level. * * @param $type * The category to which this message...
true
68cbd66ef7cb366a513422251a0f607e0dccb724
PHP
genzzz/geolocator
/tests/src/Model.php
UTF-8
1,107
2.546875
3
[]
no_license
<?php namespace Genzzz\Geolocator\Tests; use Genzzz\Geolocator\Model as BaseModel; class Model extends BaseModel { public function __construct($db, $table) { $this->db = $db; $this->table = $table; } public function ip_lookup($ipNumber) { $results = [ [ ...
true
73ec93793ecb77cdc17994fd02d1f1463b0555ef
PHP
tywaynebuchanan/jplisting
/functions/functions.php
UTF-8
730
2.515625
3
[]
no_license
<?php include 'config/config.php'; function SearchDB(){ global $conn; if (isset($_GET['submit'])) { $conn = new mysqli('localhost', 'root', '', 'listing'); $q = $conn->real_escape_string($_GET['keyword']); $sql = $conn->query("SELECT * FROM tblstcatherine WHERE LastName LIKE '%$q%';"); ...
true
669c01e3c2609cfadabf92d2ea001b6cd16cff7e
PHP
akorchyn/PiscinePHP-UNIT-Factory
/day06/ex00/Color.class.php
UTF-8
1,716
3.375
3
[]
no_license
<?php class Color { public $red; public $green; public $blue; static $verbose = false; public function __construct($array) { if (isset($array['rgb'])) { $this->red = $array['rgb'] >> 16; $this->green = $array['rgb'] >> 8 & 0b11111111; $this->blue = $a...
true
9a57a60ac68f3ca357a664df8dd6885a7c26bcfa
PHP
DrFrankyLago/gemstracker
/classes/Gems/User/User.php
UTF-8
52,573
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * * @package Gems * @subpackage user * @author Matijs de Jong <mjong@magnafacta.nl> * @copyright Copyright (c) 2011 Erasmus MC * @license New BSD License */ /** * User object that mimicks the old $this->session behaviour * * @package Gems * @subpackage User * @copyright Copyright ...
true
375ff683141ab895b6705515c9e9bd8dccaeb64a
PHP
mlarbitre/cap
/lib/core/Controller.class.php
UTF-8
3,867
3.4375
3
[]
no_license
<?php namespace lib\core; /** * Classe décrivant un contrôleur, dans sa plus simple expression. * Tout contrôleur de l'application doit dériver de ce contrôleur * * @author M. l’Arbitre */ abstract class Controller extends ApplicationComponent { const BAD_MODULE = 1; const BAD_ACTION = 2; co...
true
3da682b8e347140bc3b507e2f59d976b8ce5529f
PHP
oroinc/OroApruveBundle
/Tests/Unit/Apruve/Builder/LineItem/ApruveLineItemBuilderFactoryTest.php
UTF-8
1,058
2.515625
3
[]
no_license
<?php namespace Oro\Bundle\ApruveBundle\Tests\Unit\Apruve\Builder\LineItem; use Oro\Bundle\ApruveBundle\Apruve\Builder\LineItem\ApruveLineItemBuilder; use Oro\Bundle\ApruveBundle\Apruve\Builder\LineItem\ApruveLineItemBuilderFactory; class ApruveLineItemBuilderFactoryTest extends \PHPUnit\Framework\TestCase { pri...
true
8d457495fdf928b98eb1b6f3c6485307b6b0b57a
PHP
liamtsoi/COP4331-ContactManager
/API/Register.php
UTF-8
1,405
2.75
3
[]
no_license
<?php // fetch JSON request $inData = getRequestInfo(); // new username $username = $inData['username']; // new password $password = $inData['password']; // connect to mysql database $conn = new mysqli('localhost', 'root', '8C@UnIoOwUK2k7gZl%N9Mi', 'cookiebook'); // check for connectivity i...
true
d9e0e5028e1630c5f9654405ca8fc137aa6f337e
PHP
dpeekstok/CAEWeb
/app/database/seeds/SemesterStartTableSeeder.php
UTF-8
4,090
2.671875
3
[]
no_license
<?php class SemesterStartTableSeeder extends Seeder { /** * Auto generated seed file * * @return void */ public function run() { $lastFallStart = Date('Y-m-d', strtotime('september ' . Date('Y', strtotime('last year')) . ' first monday')); $lastFallEnd = Date('Y-m-d', strtotime('december 25 ' . Dat...
true
8ce551e4abacd536061a93a2513464e3c978e24f
PHP
vmunich/arkx.io
/app/Services/CryptoCompare.php
UTF-8
1,082
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Services; use GrahamCampbell\GuzzleFactory\GuzzleFactory; class CryptoCompare { /** * The Guzzle client. * * @var \GuzzleHttp\Client */ private $client; /** * Create a new Client instance. */ public function __construct() { $this->client ...
true
ec0a8f64eded5aebece49cf7e61216762f03fcc3
PHP
SwedbankPay/swedbank-pay-sdk-php
/src/SwedbankPay/Api/Service/Invoice/Transaction/Resource/Request/Data/CancellationInterface.php
UTF-8
561
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace SwedbankPay\Api\Service\Invoice\Transaction\Resource\Request\Data; use SwedbankPay\Api\Service\Payment\Transaction\Resource\Request\Data\CancellationInterface as CancellationTransInterface; /** * Transaction Cancellation Interface * * @api */ interface CancellationInterface extends Cancellati...
true
ab9ccf676434c21fee2f60ed9385337bcd99c5d2
PHP
RyumaD/loueMonAppart
/model/ImageRepository.php
UTF-8
1,350
2.75
3
[ "MIT" ]
permissive
<?php class ImageRepository{ private $connexion; public function __construct($connexion){ $this->connexion = $connexion; } public function bddAddImages($file,$id2){ $query = "INSERT INTO imagelocation SET user_id=:user_id, image=:image, location_id=:location_id"; $pdo = $t...
true
115c9cad18301979220d06c42e0f835861ad7502
PHP
nishapsarala/test1
/classFile.php
UTF-8
1,326
2.578125
3
[]
no_license
<?php require_once 'DatabaseClass.php'; require_once 'DBConnection.php'; require_once 'TextfileClass.php'; require_once 'SearchClass.php'; $txtFile = new TextfileClass(); $searchFile = new SearchClass(); $rows= $db->Select('folder_path','folder_path','id',1); foreach ($rows as...
true
3ca5da8f3a013bb0c0273e077df6e02a86f5b8e2
PHP
JLukassen/phpExamples
/display_discount-1.php
UTF-8
1,011
3.015625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Product Discount Calculator</title> <link rel="stylesheet" type="text/css" href="main.css"> </head> <body> <main> <h1>Product Discount Calculator</h1> <label>Product Description:</label> <span><?php $product = filter_input(INPUT_POST, ...
true
b55f31c7a9c4f548a24dacfa63bea75090202877
PHP
chitpot27/mining-pools
/src/CryptoPoolsDGC.php
UTF-8
634
2.53125
3
[]
no_license
<?php namespace Account\MiningPool; use \Monolog\Logger; use \Openclerk\Currencies\CurrencyFactory; /** * Represents the CryptoPools DGC mining pool. */ class CryptoPoolsDGC extends AbstractMPOSAccount { public function getName() { return "CryptoPools DGC"; } public function getCode() { return "cry...
true
c88c63923b798c20db2a219ae154dbbc733af99d
PHP
li15t/project334
/project/html/book_order.php
UTF-8
2,227
2.875
3
[]
no_license
<?php $username=$_REQUEST["username"]; $pwd=$_REQUEST["pwd"]; // connect to database require_once 'login.php'; $conn = new mysqli($hn, $un, $pw, $db); if ($conn->connect_error) die($conn->connect_error); //read user info and check if the username and password are legal to avoid illegal access. $query = "SELECT * F...
true
448dd4f8c86c5c3bfc4d81bbe9e688c4b3e94c02
PHP
Kaleydoskop72/store
/models/Color.php
UTF-8
2,447
2.546875
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "color". * * @property integer $id * @property string $name * @property integer $code */ class Color extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'color'...
true
7f01d9f5d202a2978f03c1db1008c74086d7098c
PHP
RobertoPiccinato/DaisyBundle
/Entity/Repository/Document/Id.php
UTF-8
574
2.890625
3
[]
no_license
<?php namespace Casagrande\DaisyBundle\Entity\Repository\Document; class Id { protected $documentId; // string protected $branchId; // string protected $languageId; // string public function __construct($documentId, $branchId, $languageId) { $this->documentId = $documentId; $this->branchId =...
true
c938a180b4d7837f973e9bcead7a55b834913d22
PHP
tianyirenjian/pysso-broker
/src/Broker.php
UTF-8
4,120
2.65625
3
[]
no_license
<?php namespace Goenitz\PySso; use GuzzleHttp\Client; use GuzzleHttp\Cookie\CookieJar; class Broker { protected $server_host; protected $server_port; protected $server_ssl; private $attributes = []; private $sid = null; public function __construct($server_host, $server_ssl = false, $server_p...
true
27b90285e24958d732eb83a41aa0de062b0f1e23
PHP
prbht890/Annex-Management-System
/final project/mylogin.php
UTF-8
799
2.546875
3
[]
no_license
<?php $username = $_POST['username']; $password = $_POST['password']; if($username && $password) { $connect = mysql_connect("localhost","root","") or die("Couldn't connect!"); mysql_select_db("annex") or die("Couldn't find data in db"); $query= mysql_query("SELECT * From adminuser WHERE username='$username'"); $numro...
true
ab844f0f14df1d3e7c406b9c0b8831d056d183db
PHP
alitain/design-pattern
/src/Structural/Flyweight/FlyweightFactory.php
UTF-8
714
3.046875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Ailain-T * Date: 2018/4/29 * Time: 下午10:26 */ namespace Alitain\DesignPattern\Structural\Flyweight; class FlyweightFactory implements \Countable { /** * @var FlyweightInterface[] $pool */ private $pool; /** * get flyweight * @param string...
true
4a620949076bbcc5a16d0f403eef2076e91591d4
PHP
lilydove/stuinfo
/index.php
GB18030
1,502
2.65625
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>ѧϵͳ</title> <script> function doDel(id){ if(confirm('ȷɾ')){ ...
true
c0c822cfe3c288ad6fab6da0e108b2002cbc7f4d
PHP
koara/koara-php
/src/Koara/Io/StringReader.php
UTF-8
648
3.234375
3
[ "Apache-2.0" ]
permissive
<?php namespace Koara\Io; class StringReader implements Reader { private $text; private $index; public function __construct($text) { $this->text = $text; } public function read(&$buffer, $offset, $length) { if ($this->text !== false && mb_strlen(mb_substr($this->text, $this->index)) > 0) { ...
true
5a9d17c6825a47181ab6da534b876286c1947bd0
PHP
fprochazka/doctrine-performance-pehapkari-2017-09
/vendor/consistence/consistence/src/Annotation/Annotation.php
UTF-8
1,981
2.8125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php declare(strict_types = 1); namespace Consistence\Annotation; use Consistence\Type\ArrayType\ArrayType; use Consistence\Type\Type; class Annotation extends \Consistence\ObjectPrototype { /** @var string */ private $name; /** @var \Consistence\Annotation\AnnotationField[] */ private $fields; /** @var mi...
true
74ce433b1f35bebdf8c32985638682a7ad08827e
PHP
jmendozacu/yytt
/app/Http/Controllers/Admin/LogoController.php
UTF-8
1,837
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Logo; class LogoController extends Controller { public function __construct( Logo $logo ) { $this->logo = $logo; } /** * Display a listing of the resource. ...
true
990f39a9e0fae1168b98c82f75ffc18ea19950e7
PHP
EquipeK/MVC_Intranet
/app/Table/VilleTable.php
UTF-8
431
2.75
3
[]
no_license
<?php namespace App\Table; use Core\Table\Table; class VilleTable extends Table{ protected $table = 'villes'; /** * Récupère la ville correspondante à la saisie utilisateur * @params $cp int * @return \App\Entity\VilleEntity **/ public function findWithCp($cp){ return $this->q...
true
4f8472bcc62f8a66e020f2fab2e52c220b118c9b
PHP
Vicible2/the-dream
/index.php
UTF-8
1,679
3.265625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php //Exchange rates: //1 EUR = 10.3821 NOK //1 NOK = 0.0963198 EUR //1 EUR = 1.23212 USD //1 USD = 0.8...
true
e3d32010618d25b2fe26b14b2a6a1240730f8ac7
PHP
cedrickeumaleu/projet_login
/css/register.php
UTF-8
9,985
2.9375
3
[]
no_license
<?php // Include config file require_once "config.php"; // Define variables and initialize with empty values $username = $email = $password = $confirm_password = ""; $username_err = $email_err = $password_err = $confirm_password_err = ""; // Processing form data when form is submitted if($_SERVER["REQUEST_METHOD"] ...
true
6d9ba23287c00971a764b7f14baef94f306ed5f9
PHP
ktamashun/MyRecord
/library/MR/Query/SelectPart.php
UTF-8
1,512
2.90625
3
[]
no_license
<?php namespace MR\Query; /** * Created by JetBrains PhpStorm. * User: Tamás * Date: 2013.02.24. * Time: 23:50 * To change this template use File | Settings | File Templates. */ class SelectPart extends QueryPart { protected $_select = null; public function __construct($select) { ...
true
3f82d80fd0b7ceb82c2cff26e26355ae540130f6
PHP
daneast915/p4.calendarte.biz
/libraries/Venue.php
UTF-8
9,300
2.9375
3
[]
no_license
<?php //ini_set('display_errors', 'On'); //error_reporting(E_ALL | E_STRICT); require_once 'includes/dateformats.php'; require_once 'includes/findinxml.php'; //----------------------------------------------------------------------------- // Venue, location, building //------------------------------------------------...
true
134028877318149546cafa801763045285bee407
PHP
anttiranta/feed-reader-php
/src/Antti/FeedsAppCoreBundle/Http/GraphQLClient/SymfonyWebTestGraphQLClient.php
UTF-8
930
2.53125
3
[]
no_license
<?php namespace App\Antti\FeedsAppCoreBundle\Http\GraphQLClient; use Symfony\Bundle\FrameworkBundle\KernelBrowser as SymfonyClient; use GraphQLClient\Client; use GraphQLClient\GraphQLException; class SymfonyWebTestGraphQLClient extends Client { /** * @var SymfonyClient */ private $symfonyClient; ...
true
889edb1140ac17b5f5dcdcec583ec19e4cafa230
PHP
jonathanweb/KomerciAPI
/Pedido.php
UTF-8
3,083
3.203125
3
[]
no_license
<?php class Pedido { const A_VISTA = '04'; const PARCELADO_EMISSOR = '06'; const PARCELADO_ESTABELECIMENTO = '08'; const IATA_A_VISTA = '39'; const IATA_PARCELADO = '40'; const PRE_AUTHORIZATION = '73'; /** * Número do pedido * @var string $numPedido */ protected $numP...
true
5831e24844a9ee70caba8bec7fc0cbbb3939ce57
PHP
leilacey/HelloCS
/quiz.php
UTF-8
927
2.734375
3
[]
no_license
<?php error_reporting(E_ALL); $mode = $_GET["mode"]; session_start(); if ($mode == "questions") { getQuestions(); } else if ($mode == "interest") { $interest = $_GET["interest"]; showInterest($interest); } else if ($mode == "quiz") { $_SESSION["quizMode"...
true
3d4a85a7f3ef38f857caf99b6b2f9c8703f78a81
PHP
krshubham/cse3002
/shubham/lab8/02.php
UTF-8
1,226
2.921875
3
[ "MIT" ]
permissive
<?php $amount =0; //global variable to define amount as 0; if(isset($_POST['submit'])) { $value = $_POST['data']; if($value>=0 && $value<=240){ $amount = 35; } else if($value>=241 && $value<=1000){ if($value>300){ $amount = 140 + 0.30*($value - 300); } else{ $amount = 140; } } else if($...
true
f7d03090f7ac924809a594457a12141c75ba0ed3
PHP
JimChenWYU/volcengine-kernel-php
/src/Kernel/Traits/ApiCastable.php
UTF-8
1,946
2.53125
3
[ "MIT" ]
permissive
<?php namespace Volcengine\Kernel\Traits; use JsonSerializable; use Traversable; use Volcengine\Kernel\Contracts\Arrayable; use Volcengine\Kernel\DataStructs\BaseResponse; use Volcengine\Kernel\DataStructs\ErrorInfo; use Volcengine\Kernel\DataStructs\ResponseMetadata; use Volcengine\Kernel\Support\Collection; trait ...
true
ede705d307569d6d5a6cadacd988f978abced795
PHP
barrasme/Mentorz-WP-Plugin
/classes/Pages.php
UTF-8
8,823
2.5625
3
[]
no_license
<?php class mz_Pages{ /** * Displays the main page for the plugin */ public static function main_page() { mz_Func::user_has_access(); echo '<div class="wrap">'; echo '<div id="icon-edit-comments" class="icon32"></div>'; echo '<h2>Mentorz</h2>'; echo '<h3>Welcome to the Mentorz plugin</h3>'; ec...
true
ed3c178b84a25bfcc3df0956ffb2abd8298b42b3
PHP
dala00/cheetan-web
/models/ch_project_update.php
UTF-8
1,276
2.578125
3
[ "MIT" ]
permissive
<?php class CCh_project_update extends CModel { var $validatefunc = array( "name" => "notempty", "body" => "notempty", ); var $validatemsg = array( 'name' => 'タイトルが入力されていません。<br>', 'body' => '内容が入力されていません。<br>', ); function CCh_project() { if( ...
true
b7d450da410b11ac35c39f93d64cbefba1b6022e
PHP
HiroyukiMakita/laravel-mariadb
/app/Enums/BaseEnum.php
UTF-8
680
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Enums; use BenSampo\Enum\Enum; class BaseEnum extends Enum { protected static $labels; public static function getLabels(): array { return static::$labels; } public static function getLabel($value): string { $labels = static::getLabels(); return $l...
true
29fd47288507c0ac58d95e7354073a519eac8562
PHP
MapleJson/maple_cms
/app/common/Common.php
UTF-8
1,296
2.8125
3
[ "Apache-2.0" ]
permissive
<?php declare (strict_types = 1); namespace app\common; class Common { /** * 获取在线人数 * * @param string $siteId * * @return int */ public static function getOnlineUserCountBySite(string $siteId) { $onlineUsers = Redis::hGetAll(getRedis('frontUserInfo')); if (em...
true
e14efd9b2fd7797a05628c68085213b663a410b7
PHP
lmelomoura/code-commerce
/app/Http/Requests/ProductRequest.php
UTF-8
843
2.65625
3
[ "MIT" ]
permissive
<?php namespace CodeCommerce\Http\Requests; use CodeCommerce\Http\Requests\Request; class ProductRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to ...
true
897de5616b06ab84eaf4d684f2289729e8ef7610
PHP
Napp/fenerum-api-client
/src/API/InvoiceLine.php
UTF-8
543
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Fenerum\API; class InvoiceLine extends Base { /** * @return array|null * @throws \Fenerum\API\Exceptions\FenerumApiException */ public function listInvoice(): ?array { return $this->client->get('invoicelines/'); } /** * @param ...
true
83a398b09d3b28caa9295d667b3ca5c03d0f1be7
PHP
rikiwidiantoro/PHP_Dasar
/pertemuan3-function/function.php
UTF-8
1,217
3.125
3
[]
no_license
<!-- FUNCTION --> <!-- adalah potongan program atau baris-baris code yang kita buat untuk mempermudah kita pada saat membuat program, kode program tadi bisa dikasih nama lalu bisa kita panggil berulang-ulang --> <?php // <!-- 1. build-in function >> function yang dimiliki php ada sangat banyak --> // <!--...
true
ec3406c1eae6ed365ccf01e05eea5e3fb105b37b
PHP
helsinque/cpf_cnpj
/src/Validators/Bipbop/ValidateBipbop.php
UTF-8
2,527
2.796875
3
[ "MIT" ]
permissive
<?php namespace Validators\Bipbop; use Validators\AbstractValidate; use Validators\ValidatorsInterface; use Validators\Cpf\ValidateCpf; use Validators\Cnpj\ValidateCnpj; use Exceptions\DocumentValidationException; use SebastianBergmann\ObjectEnumerator\InvalidArgumentException; /** * Class Abstract Validate. * * ...
true
d075b795c32e669e87edb13acf9fb34ba7cc917e
PHP
ousainoujaiteh/real-estate
/app/Http/Controllers/ProfileController.php
UTF-8
962
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; class ProfileController extends Controller { public function __construct() { $this->middleware('auth'); } public function index(){ return view('profile'); } public function update_profile(Re...
true
c9ea0ecd10751cb8bb05015d7a8e2d494e2ea056
PHP
MuzzammilRafiq/Voting_system-php-mysql-ajax.jquery-
/sql_queris/registration.php
UTF-8
1,026
2.75
3
[]
no_license
<?php $email = $_POST['email']; function randomPassword() { $alphabet = 'abcdefghijmnpqrstuABCDEFGHIJKLMNPQRSTUVWXYZ123456789'; $pass = array(); //remember to declare $pass as an array $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 6; $i++) { $n = rand(0, $alphaLength...
true
0a78a1e9940cb2e33ee471d462bf792400daad15
PHP
magary4/adex
/src/Adapter/Port/AdTagRepository.php
UTF-8
599
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace Adex\Api\Adapter\Port; use Adex\Api\Domain\Model\AdTag; use Adex\Api\Domain\Model\Customer; use Doctrine\ORM\EntityManager; class AdTagRepository { /** * @var EntityManager */ private $em; /** * CustomerRepository constructor. * @param EntityM...
true
914ed272ebd8c1b0e2425dd0621232ec8e45d4fc
PHP
yekscorp/web
/db_conn.php
UTF-8
430
2.6875
3
[]
no_license
<?php { $mystring = "Testing ability to connect to MYSQL and a specific DB using php"; echo($mystring); mysql_connect("localhost", "EEN3270_Student", "green2013") or die(mysql_error()); echo "<br />Connected to Mysql ..... "; mysql_select_db ("EEN3270_F13") or die(mysql_error()); echo "And also...
true
b097550b42a3988e4b4376770681d059502ddf97
PHP
zys-gd/commons-module
/src/DeviceDetectionBundle/Resources/lib/Examples/CarrierApi/ExampleWebApp/index.php
UTF-8
2,664
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * Copyright (c) 2008-2015 by Afilias Technologies Limited (dotMobi). All rights reserved. */ /** * DeviceAtlas CarrierApiWeb example app. */ require_once dirname(__FILE__).'/../../../Api/Carrier/CarrierApiWeb.php'; // CHANGE CARRIER DATA FILE PATH HERE > > > $dataFilePath = '/path/to/the/carrier.dat';...
true
6ac4f87ade7bb7d6f1a6fbfd35f9b2155ecb36dd
PHP
SANGNGUYEN24/wp-lab
/sort_array/sort_php.php
UTF-8
1,084
3.515625
4
[]
no_license
<!DOCTYPE html> <html> <head> <style> *{ margin-left: 48px; } </style> </head> <body> <?php $numbers = array(93, 82, 93, 92, 90, 84, 81, 83, 89, 76, 86, 86, 92, 93, 88, 88, 98, 89, 82, 80, 90, 80, 98, 77, 96); ?> <h2>Using PHP to sort a sequence of number...
true
7c12f1ad8665545a4cd0b1fca4f5b2f605ef3f74
PHP
tthlan/dbtc
/fuel/class/controller/sitecron.php
UTF-8
2,526
2.578125
3
[]
no_license
<?php class Controller_Sitecron extends Controller { /** * The basic Home index * * @access public * @return Response */ public function action_index() { \Package::load('email'); $mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : null; // getting...
true
a91f170c5fdc25a905776b6035aa6974cea4b176
PHP
CookieShop/core-checkout
/src/Validator.php
UTF-8
2,951
2.5625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace Adteam\Core\Checkout; use Adteam\Core\Checkout\Validator\Balance; use Adteam\Core\Checkout\Validator\Cartempty; use ...
true
25c1b110f0a50c0af2ed59534263309e9f61b963
PHP
jidadesarrollos/jida
/Modelos/User.php
UTF-8
10,663
2.890625
3
[]
no_license
<?PHP /** * Modelo de Usuario de la aplicacion * * @author Julio Rodriguez <jirc48@gmail.com> * @package Framework * * @category Model * @version 0.1 14-02-2014 */ namespace Jida\Modelos; use Exception; use Jida\BD as BD; use Jida\Helpers as Helpers; class User extends BD\DataModel { /** * @va...
true
102831bdb28947f3a2af8b9d5192d3c225866976
PHP
ArtARTs36/PushAllSender
/src/Interfaces/PushRecipientInterface.php
UTF-8
258
2.609375
3
[ "MIT" ]
permissive
<?php namespace ArtARTs36\PushAllSender\Interfaces; /** * Interface PushRecipientInterface * @package ArtARTs36\PushAllSender\Interfaces */ interface PushRecipientInterface { /** * @return int */ public function getPushAllId(): int; }
true
139e6b0f07a1dabd0026b70f27430b2eedb774b2
PHP
carono/yii2-1c-exchange
/models/InterfaceTest.php
UTF-8
1,081
2.578125
3
[]
no_license
<?php namespace carono\exchange1c\models; use yii\base\Model; use yii\db\ActiveRecord; /** * @property ActiveRecord model */ class InterfaceTest extends Model { public $class; public $id; public function rules() { return [ [['class', 'id'], 'safe'] ]; } public ...
true
295651a968e480342000a7888c4a380aa2094bcd
PHP
oodies/oc_blog
/src/user/Infrastructure/Service/UserService.php
UTF-8
1,790
2.921875
3
[ "MIT" ]
permissive
<?php /** * This file is part of oc_blog project * * @author: Sébastien CHOMY <sebastien.chomy@gmail.com> * @since 2017/12 */ namespace User\Infrastructure\Service; use User\Domain\Model\User; use User\Domain\ValueObject\UserID; use User\Infrastructure\Persistence\CQRS\ReadRepository; use User\Infrastructure\Per...
true
6a8b336720c4eac831a4a42d4ce5251b303b5f0e
PHP
PINF-IG2I/MDM_V1
/libs/maLibBootstrap.php
UTF-8
654
3.21875
3
[]
no_license
<?php /* Ce fichier définit diverses fonctions permettant de faciliter la production de mises en formes complexes Il est utilisé en conjonction avec le style de bootstrap et insère des classes bootstrap */ function mkHeadLink($label,$view,$currentView="",$class="") { // fabrique un lien pour l'entête en insèrant la...
true
287024d3dbd5a16e22fb5c613ffb34004ad43dcc
PHP
dekadans/aFile
/app/cli/Commands/KeyCommand.php
UTF-8
1,978
2.921875
3
[]
no_license
<?php namespace cli\Commands; use lib\DataTypes\User; use lib\Repositories\UserRepository; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\C...
true
1fe7a0da2be927c85dc8595064bcb90602ac7b19
PHP
HenrivantSant/henri
/Framework/Annotations/Annotations.php
UTF-8
3,643
2.5625
3
[]
no_license
<?php /** * Created by Buro26. * Author: Henri * Date: 13-12-2019 21:45 */ namespace Henri\Framework\Annotations; use Doctrine\Common\Annotations\AnnotationReader; use Doctrine\Common\Annotations\AnnotationRegistry; class Annotations { /** * @var ContainerService\ContainerService $containerService */ prot...
true
a1b2c77c5b796a2351528c136048d7e0c52c46cf
PHP
PM84/puma
/update/update.php
UTF-8
3,464
2.640625
3
[]
no_license
<?php include($_SERVER['DOCUMENT_ROOT'].$_SESSION['DOCUMENT_ROOT_DIR']."/config.php"); //ENTER THE RELEVANT INFO BELOW $mysqlUserName = $dbname; $mysqlPassword = $dbpass; $mysqlHostName = $dbhost; $DbName = $dbname; $backup_name = date("Y_m_d__H_i_s")."___db_backup.sql"; $tables ...
true
b731de848dc421d9538a356ed68e0f0801c6f399
PHP
amit502/SE
/attendance/includes/functions.php
UTF-8
14,214
3.015625
3
[]
no_license
<?php $conn = ""; try { if(isset($_SESSION['signup'])){ $conn = new PDO('mysql:host=localhost;dbname=sms;','root',''); } else{ if(isset($_SESSION['loggedin'])){ $conn = new PDO('mysql:host=localhost;dbname=sms;',$_SESSION['status'],$_SESSION['status']); } } if($conn){ ...
true
119f4a0a42ceeaaef82cd399f8f209accbdc73b2
PHP
i-resh/Veles
/Veles/Model/AbstractModel.php
UTF-8
5,454
3.046875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Класс модели * @file AbstractModel.php * * PHP version 5.3.9+ * * @author Yancharuk Alexander <alex@itvault.info> * @date Втр Апр 24 21:53:04 2012 * @copyright The BSD 2-Clause License. http://opensource.org/licenses/bsd-license.php */ namespace Veles\Model; use \Veles\DataBase\Db, \Ve...
true
7a91b417e860dd9e31550fc589faed30470d42d4
PHP
doanburak97/ikProject
/app/Repositories/CompanyRepository.php
UTF-8
1,981
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Http\Requests\CompanyStoreRequest; use App\Mail\Contact; use App\Models\Company; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Storage; class CompanyRepository { /** * @return mixed */ public function ind...
true
2ead6c11ce734d3e6a78327cad2b27e12512c6a4
PHP
ehsan-0801/learning-web-technology-spring-2021-section-G
/MID_LAB_TASK_PHP_07_Login_System_with_session/EditProfile.php
UTF-8
3,805
2.53125
3
[]
no_license
<?php session_start(); if (isset($_POST['submit'])) { if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['gender']) || empty($_POST['Day']) || empty($_POST['Month']) || empty($_POST['Year'])){ echo"field cannot be empty"; } els...
true
1ae029868918314fcf02047dd57dba6be4dc9a92
PHP
alpib/p4.mywebprojects.biz
/controllers/c_activities.php
UTF-8
5,477
2.578125
3
[]
no_license
<?php class activities_controller extends base_controller { public function __construct() { parent::__construct(); # Make sure user is logged in if they want to use anything in this controller if(!$this->user) { die("Members only. <a href='/users/login'>Login</a>"); } ...
true
77df8ec99ceb31fb9e36ba82d1194c0b0760b930
PHP
Bismuth-chatbot/chatbot
/src/Spotify/Client.php
UTF-8
1,322
2.734375
3
[]
no_license
<?php /* * This file is part of the Bizmuth Bot project * * (c) Antoine Bluchet <antoine@bluchet.fr> * (c) Lemay Marc <flugv1@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Spotify; use Psr\Log\LoggerI...
true
6d0b748987bee70b7814903c5c33720d5461a8a3
PHP
liangf/www
/cas/promotion-june-2014/getdata.php
UTF-8
1,443
2.515625
3
[]
no_license
<?php $username = "DBCOMPANDSAVE"; $password = "CAS123cas!"; $hostname = "DBCOMPANDSAVE.db.11475010.hostedresource.com"; $databasename = "DBCOMPANDSAVE"; $conn = mysql_connect($hostname, $username, $password) or die("DB Connnection Error !".mysql_error()); mysql_select_db($databasename, $conn); $file = f...
true
2ee1c05e5f9599c6039193ed8cca5cc783301a9b
PHP
KINGMJ/php-demo
/application/controllers/Observer_demo_c.php
UTF-8
2,959
2.640625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require_once 'observer-demo1/Student1.php'; require_once 'observer-demo1/Student2.php'; require_once 'observer-demo1/Student3.php'; require_once 'observer-demo1/Teacher.php'; require_once 'observer-demo2/Student1.php'; require_once 'observer-demo2/...
true
67f9727d2b8a3ab31fc3417defd98012d9d57f59
PHP
Winieski-K/PHP_Partie1
/p1Exercice5/index.php
UTF-8
326
3.359375
3
[]
no_license
<?php $myVar = NULL; settype($myVar, 'int'); ?> <!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="utf-8" /> <title>Exercice 5</title> </head> <body> <p>Valeur initiale : <?php echo $myVar; ?></p> <?php $myVar = 50 ?> <p>Valeur finale : <?php echo $myVar; ?></p> </body> </...
true
30a7a4a70eedf68a6bccdf53e3e9f54543d0ba26
PHP
SeanVowles/Rubric
/resources/library/class.user.php
UTF-8
5,993
3.1875
3
[]
no_license
<?php require_once 'class.schema.php'; class User { private $db; // constructor takes connection as parameter (this is probably true for all classes that access database) public function __construct($conn) { $this->db = $conn; } // function to register a new user // pass in required p...
true
b055f569f075f8f21c1b20855f9caadc9a91efd3
PHP
codememory1/dependency-injection
/Interfaces/ReflectorFunctionInterface.php
UTF-8
824
2.53125
3
[ "MIT" ]
permissive
<?php namespace Codememory\Container\DependencyInjection\Interfaces; /** * Interface ReflectorFunctionInterface * @package Codememory\Container\DependencyInjection\Interfaces * * @author Codememory */ interface ReflectorFunctionInterface { /** * =>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>...
true
2f9a6cbfa6ff9a7ad1b7a948d0054e0e14293998
PHP
Loligan/ta
/app/src/TestAutomation/All4BomBundle/Features/Context/PageObject/RevisionFromPDF.php
UTF-8
3,538
2.6875
3
[]
no_license
<?php namespace TestAutomation\All4BomBundle\Features\Context\PageObject; use Facebook\WebDriver\Remote\LocalFileDetector; use TestAutomation\All4BomBundle\Features\Context\Utils\FindElements; class RevisionFromPDF implements PageObject { static function openPage() { } /** * @pa...
true
f143de1b28ad96a94297690b2ee37a3b148c240b
PHP
welnn/hipsupport
/src/Estey/HipSupport/HipSupportServiceProvider.php
UTF-8
2,493
2.53125
3
[]
no_license
<?php namespace Estey\HipSupport; use Illuminate\Support\ServiceProvider; use HipChat\HipChat; class HipSupportServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap the application even...
true
8cc526a843744a40385cdac1c08eeed3a4aa28b7
PHP
Marius-Muis/UCLL_Aquaponics_2020
/backend/aquaponics/Models/latest.php
UTF-8
549
2.90625
3
[ "MIT" ]
permissive
<?php include_once 'AquaponicsDB.php'; $db = new AquaponicsDB(); $arrReadings = $db->get_values(); // from AquaponicsDB.php if ($arrReadings > 0) { $lastEl = array_values(array_slice($arrReadings, -1))[0]; echo json_encode($lastEl, JSON_UNESCAPED_UNICODE); } else { echo json_encode("Fail"); } //THIS O...
true
e8b4e13c3b1506a6da3173ea1b35bea87198632b
PHP
khmahfuzhasan/bookify
/classes/chat.php
UTF-8
1,992
2.765625
3
[]
no_license
<?php if (isset($_POST['chat'])){if($_POST['chat']){ $sender = $_POST['sender']; $receiver = $_POST['receiver']; $message = $_POST['message']; $storeddata = $_POST['storeddata']; if(empty($sender) || empty($receiver) || empty($message)){ echo json_encode(["status"=>false, "message"=> "Empty Message"])...
true
938f0021cfcb24fcf2edc9281638ea12b8e429eb
PHP
studiocaro/HorseStories
/app/Models/Pedigrees/Pedigree.php
UTF-8
1,059
2.828125
3
[]
no_license
<?php namespace HorseStories\Models\Pedigrees; use HorseStories\Models\Horses\Horse; use Illuminate\Database\Eloquent\Model; class Pedigree extends Model { const FATHER = 1; const MOTHER = 2; const SON = 3; const DAUGHTER = 4; /** * @var array */ protected $fillable = ['horse_id', '...
true
fe63bf3ccf05a4cc93c60ba0fbaafa52c308f6d7
PHP
DSNS-LAB/Dmail
/trean/lib/View/BookmarkList.php
UTF-8
6,336
2.59375
3
[]
no_license
<?php /** * Tag browsing * * Copyright 2011-2014 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (BSD). If you did not * did not receive this file, see http://www.horde.org/licenses/bsdl.php. * * @author Michael J Rubinsky <mrubinsk@horde.org> * @package Trean */ c...
true
f344eb98bf8b8664194c8c2675bfb93503d5b7d5
PHP
adrienbrault/rector
/packages/PhpParser/src/Rector/SetLineRector.php
UTF-8
1,924
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rector\PhpParser\Rector; use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; use Rector\Builder\IdentifierRenamer; use Rector\Node\NodeFactory; use Rector\NodeAnalyzer\MethodCallAnalyzer; use Rector\Rector\AbstractRector; use Rector\RectorDefinition\CodeSample; use Rector\...
true
9d170547fa99eec1af818d27ee1968738ea8febd
PHP
MontealegreLuis/attendance
/applications/setup/src/Console/Command/ResetDatabaseCommand.php
UTF-8
1,945
2.546875
3
[ "MIT" ]
permissive
<?php /** * PHP version 5.6 * * This source file is subject to the license that is bundled with this package in the file LICENSE. */ namespace Codeup\Console\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputInterface; u...
true
aa0a543bf9b57528105d68936bbb6b17699b6166
PHP
mounitbhandari/bhagya_shakti
/bhagya_shakti_api/database/migrations/2021_06_19_225658_create_next_game_draws_table.php
UTF-8
726
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateNextGameDrawsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('next_game...
true
53ab5f890d852dd255dc673e5a6d61ad70495095
PHP
anoop-pathak/git-demo
/app/Services/AmericanFoundation/Commands/AddDocumentFilesExtentionsCommand.php
UTF-8
2,381
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Services\AmericanFoundation\Commands; use Carbon\Carbon; use Illuminate\Console\Command; use Excel; use Illuminate\Support\Facades\File; class AddDocumentFilesExtentionsCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'command:af_add_documen...
true
547b75419da299f0a942dc3893afb25c7a69cec6
PHP
hollodotme/MilestonES
/dist/Interfaces/CollectsAggregateRoots.php
UTF-8
966
2.71875
3
[]
no_license
<?php /** * * @author h.woltersdorf */ namespace hollodotme\MilestonES\Interfaces; /** * Interface CollectsAggregateRoots * * @package hollodotme\MilestonES\Interfaces */ interface CollectsAggregateRoots extends \Iterator, \Countable { /** * @param AggregatesObjects $aggregateRoot */ public function atta...
true