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
3118a1ad89a656eddf7e9ef093ac3c85b0fbc487
PHP
e2simplon/immobourse
/controllers/DetailsOffersController.php
UTF-8
415
2.53125
3
[]
no_license
<?php class DetailsOffersController extends Controller { public function detailsOffer($offerId) { global $offersModel; // envoi des variables à la vue $this->set('detailOffer', $offersModel->getOne($offerId)); // chargement de la vue $this->displayView('detailAnnonce');...
true
a075862d55ed077e771dfd116f126af9765feb4b
PHP
IFPB-PRPIPG/periodicos-ifpb
/lib/pkp/classes/payment/QueuedPayment.inc.php
UTF-8
1,120
2.53125
3
[]
no_license
<?php /** * @file classes/payment/QueuedPayment.inc.php * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2000-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class QueuedPayment * @ingroup payment * @see QueuedPaymentDAO * * @...
true
5298a2fff4d892fc9eb5cb25d823fb9e0aac1b11
PHP
vishwakarma09/jexcel-php-socket
/src/Chat.php
UTF-8
2,831
2.546875
3
[]
no_license
<?php namespace MyApp; use Ratchet\MessageComponentInterface; use Ratchet\ConnectionInterface; use Evolution\CodeIgniterDB as CI; class Chat implements MessageComponentInterface { protected $clients; protected $router; protected $db; public function __construct() { $this->clients = new \SplObj...
true
feda7305325c1f069bd5fed4592a591ce3dbe0c0
PHP
miguelsimoes/jwt-authentication-service
/src/Security/Core/Authentication/Provider/JWTAuthenticationProvider.php
UTF-8
3,531
2.640625
3
[ "MIT" ]
permissive
<?php /* * This file is part of Miguel Simões API Gateway package. * * (c) Miguel Simões <msimoes@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Application\Security\Core\Authentication\Provider; use Applic...
true
6229d21248d5aedf65102bbfa724924db4c4b6c4
PHP
TruthfulTiger/YADVT-MVC
/Controller.php
UTF-8
2,177
2.9375
3
[]
no_license
<?php namespace Main\Control; use \Main\Misc\Request; use Main\Misc\Response; use \Main\Command\CommandResolver; use \Main\Control\ApplicationController; use \Main\View\View; require_once 'CommandResolver.php'; require_once 'Request.php'; require_once 'Response.php'; require_once 'ApplicationController.php'...
true
1c03b12149fcba7c15e1da7b39922788d2840693
PHP
sattip/upload_form
/plaincart/admin/config/main.php
UTF-8
3,270
2.578125
3
[]
no_license
<?php if (!defined('WEB_ROOT')) { exit; } // get current configuration $sql = "SELECT sc_name, sc_address, sc_phone, sc_email, sc_shipping_cost, sc_currency, sc_order_email FROM tbl_shop_config"; $result = dbQuery($sql); // extract the shop config fetched from database // make sure we query return a row if (...
true
59e3d582baf51fe9d2a99e1e5b68cbb137426e1b
PHP
fligthlich/dossierAfpa
/exos_pdo/connexion.php
UTF-8
336
2.5625
3
[]
no_license
<?php // Connection à la base de donnée $bdd = new PDO('mysql:host=localhost;dbname=record','root','root'); $bdd->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $bdd->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ); // foreach ($result as $key => $value) { // echo $key .' '. $value->disc_tit...
true
292b8bf0baed333bcbd789b1d74c84a942b7acf8
PHP
ercsctt/quizzer
/App/Controllers/GET/Login.php
UTF-8
421
2.5625
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Controllers\GET; use Core\Utilities; use Core\View; use Core\Controller; use App\Models\User; use App\Flash; class Login extends Controller { /** * Show the Login page * * @return void */ public function runAction() { $user = new User(); if($user->isLo...
true
e6c0e2832890c39a615f6ddbc0433e86dde0e981
PHP
jiahetian/hyperf-douyin
/src/Kernel/Contracts/StreamResponseInterface.php
UTF-8
392
2.53125
3
[ "MIT" ]
permissive
<?php namespace Jiahetian\HyperfDouyin\Kernel\Contracts; use Psr\Http\Message\StreamInterface; interface StreamResponseInterface { public function save(string $directory, string $filename = '', bool $appendSuffix = true): string; public function saveAs(string $directory, string $filename, bool $appendSuff...
true
2ed035bac1318127407f9d1615786e572b71e075
PHP
reenz/card-game
/src/Game.php
UTF-8
1,044
3.53125
4
[]
no_license
<?php require_once './src/Deck.php'; require_once './src/Player.php'; require_once './src/Card.php'; class Game { private $deck; private $playerArray = array(); private $playerCount; public function __construct($playerCount = 4) { $this->playerCount = $playerCount; $this->addPlaye...
true
431cb2f1f22e7e578353a1833db80eeecb3d559d
PHP
corycollier/mvc-lite
/tests/ViewTest.php
UTF-8
9,235
2.765625
3
[]
no_license
<?php /** * Unit tests for the \MvcLite\View class * * @category PHP * @package MVCLite * @subpackage Tests * @since File available since release 1.0.6 * @author Cory Collier <corycollier@corycollier.com> */ namespace MvcLite; /** * Unit tests for the \MvcLite\View class * * @category ...
true
3b0ee03608dc9c7aeedfc9ee3ba6e7cb40137eef
PHP
delr3ves/SymfonyRestApiBundle
/Docs/ApiObjectPopulator.php
UTF-8
2,246
2.828125
3
[ "MIT" ]
permissive
<?php /** * In charge to generate some example data for ApiObjects. * * * @author Sergio Arroyo <@delr3ves> */ namespace Delr3ves\RestApiBundle\Docs; use Delr3ves\RestApiBundle\ApiObject\BaseApiObject; use Delr3ves\RestApiBundle\Annotations\ApiAnnotationReader; class ApiObjectPopulator { /** * @var \Del...
true
de9e4dafe8f2c9dffba777c690d33bc63bd37124
PHP
diegovalenzueladuque/farmacia
/class/marcaModel.php
UTF-8
1,880
2.984375
3
[]
no_license
<?php require_once('modelo.php'); class marcaModel extends Modelo { public function __construct(){ //disponemos de lo declarado en el constructor de la clase modelo parent::__construct(); } //traemos todos los roles de la tabla roles public function getMarcas(){ //consulta a la tabla roles usando el objeto ...
true
7bcc67ddf13ce8bc6ba656fc3a39ee0877db8ef4
PHP
Inggo/BndoBot
/src/Trivia/Trivia.php
UTF-8
5,202
2.75
3
[]
no_license
<?php namespace Inggo\BndoBot\Trivia; use Inggo\BndoBot\Commands\BaseCommand; use Inggo\BndoBot\Trivia\Question; use Inggo\BndoBot\Shuffle\Scores; class Trivia extends BaseCommand { use Scores; const SLEEP_TIME = 15; private $round = 0; private $trivia; public function __con...
true
2960a0f60a02d9074f9759f710a254e1b53f349c
PHP
zkrat/basic-power
/src/Abstracts/DataRow.php
UTF-8
447
2.921875
3
[]
no_license
<?php namespace zkrat\BasicPower\Abstracts; use zkrat\BasicPower\Helper\HelperString; abstract class DataRow { protected $parent; public function __construct(array $array =[],$parent=null){ foreach ($array as $key =>$val ){ $var=HelperString::underscoreToCamelCase($key); ...
true
30a558a5844184a8f9d0b10da3308c17bd47fb9c
PHP
rafaelp/brapi-php
/tests/BrapiTest.php
UTF-8
1,319
2.5625
3
[ "MIT" ]
permissive
<?php require_once 'src/Brapi/Client.php'; class BrapiTest extends PHPUnit_Framework_TestCase { private $client; public function setUp() { $access_token = getenv('BRAPI_ACCESS_TOKEN'); $this->client = new \Brapi\Client($access_token, 'BrapiPHP'); } public function tearDown() { unset($this->clien...
true
ff47c32ed796005430be562bb281f57eeb62a511
PHP
ProgPassion/SmallTime
/include/class_absenz.php
UTF-8
2,879
3.046875
3
[]
no_license
<?php /******************************************************************************* * Absenzen - Klasse /******************************************************************************* * Version 0.9 * Author: IT-Master GmbH * www.it-master.ch / info@it-master.ch * Copyright (c), IT-Master GmbH, All rights reserved ...
true
89a35064e625187e68ddec7613a4ab8af51e5238
PHP
piotzkhider/IDDD_Samples_PHP
/src/IdentityAccess/Domain/Model/Identity/ContactInformation.php
UTF-8
5,390
2.875
3
[]
no_license
<?php namespace SaasOvation\IdentityAccess\Domain\Model\Identity; use SaasOvation\Common\AssertionConcern; final class ContactInformation extends AssertionConcern { /** * @var EmailAddress */ private $emailAddress; /** * @var string */ private $postalAddressCity; /** * ...
true
eb79a40c99ccc4334ffbbd256bd64a4bf1badc51
PHP
atoroc/chatbot-voxibot
/mailer/mail3.php
UTF-8
4,134
2.609375
3
[]
no_license
<?php require("../config.php"); require("include/class.phpmailer.php"); $json_response = file_get_contents("php://input"); if ($json_response) { $json = json_decode($json_response, true); if (isset($json['key'])) { $key = $json['key']; if ($key != "moreno") { echo "BAD KEY"; exit(); ...
true
0be4dca10b55460303674ef68320120f1e2d1112
PHP
lldakila/DocTrak
/DOCTRAk/procedures/home/document/common/previewfile.php
UTF-8
3,394
2.546875
3
[]
no_license
<?php if (session_status() == PHP_SESSION_NONE) { session_start(); } if(!isset($_SESSION['usr']) || !isset($_SESSION['pswd'])){ $_SESSION['in'] ="start"; header('Location:../../../../index.php'); } require_once("encrypt.php"); $id=decryptText(base64_decode($_GET['download_file'])); require_once("../../....
true
2389a47e285b8f5380641531551cec2eeaff3b61
PHP
Edivald0/PROYECTOS-PHP
/codejobs/v1/index.php
UTF-8
6,450
2.859375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"; > <!-- Para la codificacion usada--> <meta name="description" content="Ejemplo de CSS3 y HTML5" > <meta name="keywords" content="html5, css3" > <meta name="author" content="Edivaldo Martínez Moreno" > <link rel="stylesheet" type="text/css" href="css/stylev11...
true
2944352255acda481d41457ca277a1baf39e0e81
PHP
projectEmotion/eMotion
/src/FrontBundle/Controller/OrderController.php
UTF-8
2,186
2.578125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Christian */ namespace FrontBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; /** * This controller is used to simulate an order from a cu...
true
9865a5540d283db6b0d887e6c0721cd78ee846e3
PHP
PeeHaa/asgard
/Core/Commands/Generator.php
UTF-8
832
2.578125
3
[ "MIT" ]
permissive
<?php namespace Asgard\Core\Commands; class Generator { use \Asgard\Container\ContainerAware; protected $overrideFiles = false; public function __construct($container) { $this->container = $container; } public function setOverrideFiles($overrideFiles) { $this->overrideFiles = $overrideFiles; } public f...
true
fd71212cb55b1967c90fc6559608be5ab6d6cf04
PHP
tapirs/lunisolar
/tests/commonTest.php
UTF-8
5,042
2.75
3
[]
no_license
<?php declare(strict_types=1); require_once('common.php'); use PHPUnit\Framework\TestCase; class commonTest extends TestCase { public function setUp(){ } public function tearDown(){ } public function testInputCanBeProcessed(): void { $this->assertEquals(processInput("hello...
true
6c61fdd1c704853fb23f100126ccfca59dc89af4
PHP
paulocorazza/curso-php
/funcoes/recursividade.php
UTF-8
871
3.765625
4
[]
no_license
<div class="titulo"> Recursividade </div> <?php echo '<h3>Decrementando</h3>'; function somaUmAte($numero){ $soma = 0; for(; $numero >= 1; $numero--){ $soma += $numero; } return $soma; } echo somaUmAte(5) . '<br>'; echo '<h3>Incrementando</h3>'; function somaUmAte2($numero){ $soma...
true
896fb87657113bba0d242f8cedf627ff9a5b0dd2
PHP
othercodes/rest
/examples/post_json_request.php
UTF-8
559
2.59375
3
[ "MIT" ]
permissive
<?php require_once '../vendor/autoload.php'; try { $api = new \OtherCode\Rest\Rest(); $api->configuration->url = "http://jsonplaceholder.typicode.com/"; $api->configuration->addHeader('some_header', 'some_value'); $api->setEncoder("json"); $api->setDecoder("json"); $payload = new stdClass()...
true
aeacc7d0c7b07acf9bec82fb5639abb44a6cf8f5
PHP
PixelPoncho/SENG401
/ATM_Project/database/migrations/2019_04_07_214359_create_accounts_table.php
UTF-8
987
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAccountsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('accounts', fun...
true
f4dddb97cf9fb3a44ba6894cfbdcae43c61e4333
PHP
chief1983/SquadWar-v2
/inc/squad/record/league/detail.php
UTF-8
755
2.546875
3
[]
no_license
<?php class squad_record_league_detail extends base_recorddetail { protected $SWSquad_SquadID; protected $Leagues; protected $League_PW; public function __construct() { parent::__construct(); $this->datamodel_name = 'squad_data_league'; $this->required_fields = array( 'SWSquad_SquadID','Leagues' ); ...
true
1a1b587fde4afea0ced300e8a37ce3384893ee49
PHP
mbcraft/frozen
/src/framework/core/lib/controller/Result.class.php
UTF-8
1,019
2.96875
3
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php /* This software is released under the BSD license. Full text at project root -> license.txt */ class Result { static function is_result($data) { return is_array($data) && isset($data["result"]); } static function ok() { return array("result" => "ok"); } static fun...
true
a5438cb300493b8b0361c1bdab9a87382d4ea2f6
PHP
jrebs/easyship-php
/src/Modules/Products.php
UTF-8
1,958
2.890625
3
[ "MIT" ]
permissive
<?php namespace Easyship\Modules; use Easyship\Module; use Psr\Http\Message\ResponseInterface; class Products extends Module { /** * Returns a list of products that are available with your account. * * @link https://developers.easyship.com/reference/products_index * @param array $query *...
true
7663026c01465aa5dd9204db37a08327e5aa9325
PHP
jigar586/frinza
/application/libraries/adminlib/Banners.php
UTF-8
1,120
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Banners { function __construct() { $this->tableName='banner_mst'; $this->CI =& get_instance(); $this->CI->load->model('AdminModel'); } function insertBanner($data) { return $this->CI->AdminModel->insertData($data,$this->tableName); } function getBanner($cond) { $select = 'banner_id, ...
true
8ce3b048514a598bd08836bc338725b753fbf349
PHP
smurf100/p2
/Q2/a3-b2.php
UTF-8
335
2.625
3
[]
no_license
<html> <body> <table border ="1" align="center"> <tr><th>File name </th><tr> <?php $dir=$_GET["dir"]; $extn=$_GET["ext"]; echo $dir; echo $extn; $hndl=opendir($dir); while(($file=readdir($hndl))!==false) { if(strstr($file,$extn)) echo"<tr><td>$file</td></tr>"; } closedir($hndl); ?> </table> <...
true
526a3cb45a0b054c78cc56d840077a409376758c
PHP
Nikuusi/dfc2api-platform
/src/Entity/Categorie.php
UTF-8
5,193
2.578125
3
[]
no_license
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping\JoinColumn; use Doctrine\ORM\Mapping\ManyToOne; use Doctrine\ORM\Mapping\OneToMany; use Gedmo\...
true
8a6e9516a08d89b276b785ae8e45edf33b6d6ebb
PHP
renatocosta/Domain-driven-Design
/CrossCutting/DataManagement/Collection/Items.php
UTF-8
337
2.765625
3
[]
no_license
<?php namespace CrossCutting\DataManagement\Collection; interface Items extends \Countable { /** * @return \Iterator */ public function getItems(): \Iterator; /** * @param mixed $item */ public function add($item): void; /** * @return bool */ public function is...
true
51fa50bd6b647b1fbe554f8672809b8711cb8ffd
PHP
XephorNova/CSI
/admin/view_problems.php
UTF-8
1,605
2.578125
3
[]
no_license
<?php include('../layout/header.php')?> <div class="container mt-4 ml-auto mr-auto"> <h3 class="text-center">All Question</h3> <p class="text-center lead">Below are the Questions created.</p> <div class="wrap-blog"></div> </div> <?php include('../configuration/database.php'); $one="option_1"...
true
3c299916ebcea4b00988e30170be440219c8d1c6
PHP
ArifKh29/DumbWays
/2.php
UTF-8
560
2.9375
3
[]
no_license
<?php $kata = ['D','U','M','B','W','A','I','S','I','D']; function cetakGambar($kata){ echo "<table>"; $pjg = count($kata); for($i=0;$i<$pjg;$i++){ echo "<tr>"; for($x=0,$y=$pjg-1;$x<$pjg;$x++,$y--){ if($x==$i||$y==$i){ echo "<td>".$kata[$i]."</td>"; }...
true
6018ead73502747b92166efa35fe291182afe7ef
PHP
peterlafferty/silex-request-validation
/index.php
UTF-8
1,911
2.65625
3
[]
no_license
<?php require_once __DIR__.'/vendor/autoload.php'; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; $app = new Silex\Application(); $app['emoji'] = json_decode('[ { "id": 1, "code": "U+1F600", "value": "😀", "description": "grinning...
true
0a2f0b0bc659b1f54969f12b67948d4b773971b9
PHP
hugomastromauro/Cataya-PHP
/lib/FMW/Utilities/String/String.php
UTF-8
3,287
2.8125
3
[]
no_license
<?php namespace FMW\Utilities\String; /** * * Classe String * * @author Hugo Mastromauro <hugomastromauro@gmail.com> * @version 2.0 * @copyright GPL © 2014, catayaphp.com. * @access public * @package String * @subpackage Utilities * */ class String extends \FMW\Object { /** * * @param s...
true
d922e07cd6eeac9c1de1725a4b09cfddb2971876
PHP
unl/sitemaster_plugin_unl
/scripts/framework_audit.php
UTF-8
5,461
2.53125
3
[]
no_license
<?php use SiteMaster\Plugins\Unl\VersionHistory; ini_set('display_errors', true); //Initialize all settings and autoloaders require_once(__DIR__ . '/../../../init.php'); $sites = new \SiteMaster\Core\Registry\Sites\WithGroup(['group_name'=>'unl']); $found_versions = array(); $date_of_scan = date("Y-m-d", strtotime(...
true
35c1ceb874c135517535f5e07fe40cadaa3465cf
PHP
atlance/jwt-auth
/Token/UseCase/Decode/Handler.php
UTF-8
1,316
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Atlance\JwtAuth\Token\UseCase\Decode; use Atlance\JwtAuth\Token\Contracts\Claimset\ClaimsetInterface; use Atlance\JwtAuth\Token\Contracts\DecodeInterface; use Atlance\JwtAuth\Token\Factory\ClaimsetFactory; use Atlance\JwtAuth\Token\Validation\Validator; use Lcobucci\JWT; fin...
true
8f330344c03e25527ac65bd0559d84f2094c1b49
PHP
iptomar/codematch_11-12
/Programadores/Scripts/scriptsInsert/yahoo_sourceforge.php
WINDOWS-1252
2,557
2.859375
3
[]
no_license
<?php include "APIS/sourceforge.php"; //include da api sourceforge include "db_insert.php"; //o ciclo while e para ir mudando de pagina $i=0; while ($i <= 1000) { $yahoo_array = get_yahoo_sourceforge(50, $i); foreach($yahoo_array as $arg) { list ($name_project, $title, $source, $owner, $language, $created_date, $l...
true
6e67b1d409aa20fd2178f583b3f960449b9111a6
PHP
siddhichechani22/Learn-on-the-Go---Smart-Learning-Management-System
/oopm1.php
UTF-8
1,998
2.828125
3
[]
no_license
<?php //OOPM1 no of students appeared $sql="SELECT count(*) as count FROM student.stud_termtest WHERE oopm1 >=0 AND oopm1 <=20"; $result = mysql_query($sql,$conn); if (mysql_num_rows($result) > 0) { // output data of each row if($row = mysql_fetch_assoc($result)) $oopm1_A= $row['count...
true
bf2d2bb8f96d31cfa9a3acddd6ed9f727452b477
PHP
neitanod/dotfiles
/bin/template
UTF-8
934
2.890625
3
[]
no_license
#! env php <?php $optind = null; $opts = getopt('h', [], $optind); $pos_args = array_slice($argv, $optind); // var_dump($opts); // options are here // var_dump($pos_args); // postional arguments are here if( isset($opts['h']) ) { echo <<<HERE template: Transform input lines using a template string. U...
true
d8add21a0141a65b05b8ba46b9dd2518ad75ce88
PHP
CTA-K12/RuleBundle
/Entity/ConditionEntity.php
UTF-8
2,487
2.640625
3
[ "MIT" ]
permissive
<?php namespace Mesd\RuleBundle\Entity; /** * ConditionEntity. */ class ConditionEntity { /** * @var integer */ private $id; /** * @var string */ private $operator_value; /** * @var string */ private $raw_input_value; /** * @var \Mesd\RuleBundle\Ent...
true
6e775181820e725ef96d9d9039645f05fcf78d86
PHP
Kaapiii/concrete5_storage_locations
/src/Concrete/File/StorageLocation/Configuration/AwsS3Configuration.php
UTF-8
6,461
2.609375
3
[]
no_license
<?php namespace Concrete\Package\Concrete5StorageLocations\File\StorageLocation\Configuration; use Aws\S3\S3Client; use Concrete\Core\File\StorageLocation\Configuration\ConfigurationInterface; use Concrete\Core\File\StorageLocation\Configuration\Configuration; use Concrete\Core\Error\ErrorList\ErrorList; use Concrete...
true
7934ed3feacc0f2cd0cb80d46642b39cb422dfef
PHP
FriendsOfFlarum/prevent-necrobumping
/src/Util.php
UTF-8
1,177
2.53125
3
[ "MIT" ]
permissive
<?php /* * This file is part of fof/prevent-necrobumping. * * Copyright (c) FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FoF\PreventNecrobumping; use Flarum\Discussion\Discussion; use Flarum\Setting...
true
30500dbbb8e64a25d89b482700f67b9037af4b89
PHP
hu19891110/cms-2
/upload/CMS/Core/Validator/LinkedinProfile.php
UTF-8
2,246
2.953125
3
[]
no_license
<?php namespace Core\Validator; /** * @category Modo * @package Validator * @copyright Copyright (c) 2010 Modo Design Group (http://mododesigngroup.com) * @version $Id: LinkedinProfile.php 528 2010-03-30 13:43:19Z court $ */ class LinkedinProfile extends \Zend_Validate_Abstract { const INVALID_URL ...
true
3bc22c383592081764591da30e603fe103ddb9c0
PHP
GreyInori/sup
/application/user/model/UserModel.php
UTF-8
4,413
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: admin * Date: 2019/11/11 * Time: 13:42 */ namespace app\user\model; use think\Db; /** * 用户相关model类 * @package app\user\model */ class UserModel extends Db { /** * 用户登录查询方法 * @param $field * @param $where * @return false|\PDOStatement|string|\th...
true
e8325a6e5024b0a74bbe1c1f7d4270a1f64d8e49
PHP
MauricioBuzata/Vaga-Trabalho
/adm/Salas.php
UTF-8
1,549
2.6875
3
[]
no_license
<?php if((!isset ($_SESSION['Nome']) == true) and (!isset ($_SESSION['Senha']) == true)) { unset($_SESSION['Nome']); unset($_SESSION['Senha']); header('location:login.php'); } ?> <?php if(isset($_GET['msg'])){ $msg = $_GET['msg']; if($msg==0) { ?> <h4 id="cor">Sala excluida com sucesso!</h4> ...
true
966ae7c90af2bcc84a937283b33a82044a78ef52
PHP
Sywooch/golodniy-lev
/frontend/widgets/MainPageReceipts.php
UTF-8
821
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace frontend\widgets; use frontend\repositories\ReceiptsRepository; use yii\base\Widget; /** * Main page receipts widget. * * @author Pak Sergey */ class MainPageReceipts extends Widget { /** @var ReceiptsRepository */ protected $repository; /** * @inherit...
true
f4d488a48a3c5e925f5a64df8c32d70ea1282f0a
PHP
jackyliang/Schedulizer
/database/migrations/2015_07_13_143604_create_classes_table.php
UTF-8
1,724
2.671875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateClassesTable extends Migration { /** * Run the migrations. * This adds in the `classes` table that saves the scraped information * from TMS (Drexel Term Master Schedule) * * @return void */ p...
true
4555e8508f26ea1e3a8998c6e92379e8f1556bf3
PHP
robert-the-bruce/movies
/src/show_movie.php
UTF-8
1,009
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: regin * Date: 02.01.2018 * Time: 15:08 */ ?> <div class="row"> <div class="four columns"> <h4>Aktuelle Filmliste</h4> </div> <div class="seven columns"> <div class="movielist"> <?php try { $query = 'selec...
true
b185ec49fa3e94bae0ca669916bcec21b5dcc058
PHP
kitdelivery/sdk-kit-api
/src/Model/Request/Order/GetListOrderRequest.php
UTF-8
1,512
2.734375
3
[]
no_license
<?php namespace service\KitAPI\Model\Request\Order; use service\KitAPI\Interfaces\RequestInterface; use service\KitAPI\Component\FormData\Mapping as Form; class GetListOrderRequest implements RequestInterface { /** * @var string * * @Form\SerializedName("date_start") * @Form\Type("string") ...
true
463d13027fbe4f181415fc48f3045cd8282ff39b
PHP
joy2323/iot-RealTime-Network-Monitoring-
/database/migrations/2020_02_19_011741_create_powers_table.php
UTF-8
1,756
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePowersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('powers', functio...
true
6044a15354fca59c65d31d320c5e10f9521056bb
PHP
minhliem86/lawyer
/app/myLib/TachchuoiImg.php
UTF-8
167
2.546875
3
[ "MIT" ]
permissive
<?php class TachchuoiImg { public static function make($chuoi,$kytu,$vitricanlay){ $mang = explode($kytu,$chuoi); $str = $mang[$vitricanlay]; return $str; } }
true
9c0455f05c4f8adad1e6192637d70cdc0d2bd866
PHP
Jasmine-Alamassi/socail
/app/Http/Controllers/Api/UserController.php
UTF-8
6,059
2.53125
3
[ "MIT" ]
permissive
<?php /* namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; class UserController extends Controller { public function login(Request $request) { $proxy = Request::create( 'oauth/t...
true
a9ba4796aad39eaecb301c341960733e4d9334ed
PHP
andrewroth/c4c_intranet
/modules/app_Rad/objects_bl/page_ViewModule.php
UTF-8
6,938
2.6875
3
[]
no_license
<?php /** * @package RAD */ /** * class page_ViewModule * <pre> * This page displays the details of the selected Module. * </pre> * @author Johnny Hausman * Date: 17 Jan 2005 */ class page_ViewModule { //CONSTANTS: /** The Querystring Field for which entry is currently being edited ... */ ...
true
e26892ab48037672c2b7f30607fb1fc8c2e90cfe
PHP
luketlancaster/searcher
/tests/Criteria/Collection/NamedCriteriaCollectionTest.php
UTF-8
1,761
2.53125
3
[ "MIT" ]
permissive
<?php namespace KGzocha\Searcher\Test\Criteria\Collection; use KGzocha\Searcher\Criteria\Collection\NamedCriteriaCollection; class NamedCriteriaCollectionTest extends CriteriaCollectionTest { public function testMagicMethods() { $criteria = $this->getCriteria(); $collection = new NamedCriteri...
true
db118e079ddb3fa0e52e9577f8e842153cbf9c54
PHP
tautvydascoding/2019-01
/uzduotys/diena_18/DESTYTOJAS/1-php-rekursija/index.php
UTF-8
227
2.671875
3
[]
no_license
<?php // paleisti f-ja 10 kartu ir atspausdinti, kuris jau kartas function rekursija() { static $k = 0; if ($k < 10) { echo " $k -as kartas <br />"; $k++; rekursija(); } } rekursija();
true
db825ee60a600081d2330edee06106277d244ef5
PHP
fajrika/api_php_android
/index.php
UTF-8
6,687
2.5625
3
[]
no_license
<?php class prepare { public $response; public $data; public $put; public function __construct() { require_once('achievement.php'); require_once('input.php'); $this->input = new input; $this->data = (object)[]; $this->response = (object)[]; $this->re...
true
e482e06bda66fdf02d1fd7a96e5a4ec327ca5574
PHP
sinri/sadame
/test/common.php
UTF-8
685
2.875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Sinri * Date: 2017/4/12 * Time: 22:09 */ require_once __DIR__ . '/../autoload.php'; echo __FILE__ . PHP_EOL; echo "STACK" . PHP_EOL; $stack = new \sinri\sadame\bin\ArrayStack(); $stack->push(1); $stack->push(2); echo $stack->pop(); echo $stack->isEmpty() ? 'E' : 'F'; ech...
true
24b37f17fd06208cfef97c70ad9652fbcbd8d03a
PHP
krakphp/config
/src/ConfigItemFactory/StdConfigItemFactory.php
UTF-8
909
2.640625
3
[ "MIT" ]
permissive
<?php namespace Krak\Config\ConfigItemFactory; use Krak\Config; class StdConfigItemFactory implements Config\ConfigItemFactory { private $load_file; public function __construct(Config\LoadFile $load_file = null) { $this->load_file = $load_file ?: new Config\LoadFile\AggregateLoadFile(); } p...
true
99572d9dfebc6a8d2bc335603d72bcff1370d995
PHP
ares0310/projet-MVC
/portfolio/classes/model/ModelRef.php
UTF-8
3,019
3.015625
3
[]
no_license
<?php require_once "connexion.php"; class ModelRef { public static function ajoutRef($user_id, $lien, $type_ref_id, $nom, $techno, $contributeurs) { $idcon = connexion(); $requete = $idcon->prepare("INSERT INTO reference VALUES (null, :type_ref_id, :nom, :techno, :contributeurs)"); $re...
true
e9db78c6231a763686e49a21f111cfe564351d58
PHP
orangesource/pizzatoday
/classes/databaseclass.php
UTF-8
1,507
2.921875
3
[]
no_license
<?php class database extends PDO{ private $host, $dbname, $username, $pass; protected $row_count, $dbb; public $db; public function __construct() { } public function startConnect($host, $dbname, $username, $pass) { $this->host = $host; $this->dbname = $dbname; $this->pass = $pass; $this->username = ...
true
ae92711afd9115b300011599c0fe4b10b24d428c
PHP
buzzingpixel/corbomite-user
/src/interfaces/UserRecordToModelTransformerInterface.php
UTF-8
539
2.796875
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace corbomite\user\interfaces; interface UserRecordToModelTransformerInterface { /** * Transforms a user record into a user model * * @param mixed[] $record Array of record values from PDO fetch */ public function __invoke(array $record) : UserModelInt...
true
46b1ad26f7c8f91265b432f0993855fd7943c332
PHP
NoTrueAcc/Test_Shop_PHP
/library/manageClass.php
UTF-8
5,423
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Alex * Date: 07.06.2017 * Time: 6:41 */ require_once $_SERVER['DOCUMENT_ROOT'] . "/library/config/configClass.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/library/helper/formatClass.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/library/dataBase/tableClasses/product...
true
7bae44948a015876688be040cb7f1fbc9b217b36
PHP
ertprs/pluton
/apps/backend/controllers/PostController.php
UTF-8
11,262
2.765625
3
[]
no_license
<?php /** * Class and Function List: * Function list: * - indexAction() * - verifyPermissionEditPost() * - listPostsAction() * - newPostAction() * - editPostAction() * - insertPostCategories() * - updatePostCategories() * - newCategorieAction() * - getCategoriesByPost() * Classes list: * - PostController e...
true
aa3961c627592eec4f78e9ea3474e8afcd8912ef
PHP
henryfw/algo
/morgan/php/ch7-combination-permutation.php
UTF-8
612
3.4375
3
[]
no_license
<?php function combination($inputs, $size) { $ans = []; foreach($inputs AS $v) { $ans[] = [ $v ]; } return doCombination($inputs, $size - 1, $ans); } function doCombination($inputs, $size, $ans) { if ($size == 0) return $ans; $newAns = []; foreach ($ans AS $item) { for...
true
b632045809cf253098a99ec434931db9bf8338de
PHP
glinskiwieslaw/PhP_Zadania
/Zadanie14.php
UTF-8
842
3.328125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wg * Date: 2015-11-26 * Time: 02:47 */ /*Zadanie 14. Napisz funkcje o nazwie FooBar, przyjmującą jedną zmienną. Funkcja ta ma wypisywać kolejne liczby, ale:  W miejsce liczb podzielnych przez 3 wypisywać Foo  W miejsce liczb podzielnych przez 5 wypisywać Bar  W miejsce l...
true
5f894b238c2c6d8736b12b37d1042a20e49e7a5e
PHP
ravivegda/www.schups.local
/APIs/Data/userInfo.class.php
UTF-8
1,608
2.875
3
[]
no_license
<?php /* * User Info */ require_once "config.php"; class userInfo{ public function __construct() {} /* * list all users info */ public function listUsers() { global $db; $user_db_data = array(); $cache = Cache::getInstance(); // $cache->flush(); ...
true
f2da3457aa004b676db471f79080fff9fd8f8d03
PHP
systemowiec/dockerized-api-starter-kit
/src/Starter/Product/VirtualProduct.php
UTF-8
1,318
3.21875
3
[]
no_license
<?php namespace Starter\Product; use Money\Money; use Ramsey\Uuid\UuidInterface; /** * @author Jarosław Stańczyk <jaroslaw@stanczyk.co.uk> * @copyright 2017 Jarosław Stańczyk. All rights reserved. */ class VirtualProduct implements Product { /** * @var UuidInterface */ private $uuid; /**...
true
fde1432a28c437bada62dadc1e75ddc3fc265c68
PHP
alex-kalanis/remote-request
/php-src/Protocols/Fsp/Traits/TChecksum.php
UTF-8
1,766
3.046875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace kalanis\RemoteRequest\Protocols\Fsp\Traits; /** * Trait TChecksum * @package kalanis\RemoteRequest\Protocols\Fsp\Traits * Process checksums /-* assume that we have already zeroed checksum in packet - that means set it to zero - chr(0) *-/ unsigned int sum,checksum; unsigned char *t; for(t = pac...
true
bbafbd1a470fbcf0cca1081dc2e81fca59109ea0
PHP
webimpress/coding-standard
/src/WebimpressCodingStandard/Sniffs/Classes/NoNullValuesSniff.php
UTF-8
2,285
2.90625
3
[ "BSD-2-Clause" ]
permissive
<?php declare(strict_types=1); namespace WebimpressCodingStandard\Sniffs\Classes; use PHP_CodeSniffer\Files\File; use PHP_CodeSniffer\Sniffs\AbstractVariableSniff; use PHP_CodeSniffer\Util\Tokens; use function in_array; use const T_EQUAL; use const T_NULL; use const T_WHITESPACE; class NoNullValuesSniff extends A...
true
a379e19a5ca5a2c8f4efd5834eb99de5aad283d4
PHP
Truczkin/test-laravel-4G
/Projekt/test-laravel-4G/app/Http/Requests/Contact/StoreRequest.php
UTF-8
598
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Contact; use Illuminate\Foundation\Http\FormRequest; class StoreRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'firstname' => [...
true
205cfd6feef6b914ac8a8319e5c7aaf1f636b355
PHP
christianperl/threesixfive-lumen
/database/migrations/2019_03_08_143609_create_user_day_table.php
UTF-8
984
2.53125
3
[ "Unlicense", "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserDayTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_days', fun...
true
5f80722c7dbe3f39ff7c38a331ccfd86f6bd3b55
PHP
zhaolei/stoneLearn
/src/shuse/ent.php
UTF-8
242
3.109375
3
[]
no_license
<?php $a = file('t1'); $arr=array(); foreach($a as $t) { $t = intval($t); $arr[$t]++; } $c = count($arr); $x = 0.0; foreach($arr as $k=>$v) { $w = $v/$c; $f1 = log($w, 2); $m = $w * $f1; $x += $m * -1; } echo $x;
true
61efd45b41dd405898ec05b779c746be9fd37af1
PHP
MouseHappy123/shop-BMS
/core/user.inc.php
UTF-8
5,310
2.515625
3
[]
no_license
<?php function reg() { require_once 'swiftmailer-master/lib/swift_required.php'; $emailPassword = ''; //密码 $arr = $_POST; $arr['password'] = md5($_POST['password']); $arr['regTime'] = time(); $arr['token'] = md5($arr['username'].$arr['password'].$arr['regTime']); $arr['token_exptime'] = $ar...
true
7c3da3a9a1dff1bb1430cb75355aed5f03d3aaf3
PHP
fllflee/calendar-fllflee
/hwc1.php
UTF-8
3,372
3.03125
3
[]
no_license
<?php // 某年 //$year=$_GET['y']?$_GET{'y'}:date('Y',time()); // 與以下相同 //加上@是為了避免不必要的錯誤訊息 if (@$_GET['y']){ $year=$_GET{'y'}; } else{ $year=date('Y',time()); } date_default_timezone_set('Asia/Taipei'); $datetimenow = date ("Y年 m月 d日 / H 點 i 分"); // 某月 $month=@$_GET['m']?$_GET['m']:date('n',time()); ...
true
78e13b1f50347e686ef366a965864bbdd9461621
PHP
phacility/phabricator
/src/applications/diffusion/ssh/DiffusionGitSSHWorkflow.php
UTF-8
7,337
2.546875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php abstract class DiffusionGitSSHWorkflow extends DiffusionSSHWorkflow implements DiffusionRepositoryClusterEngineLogInterface { private $engineLogProperties = array(); private $protocolLog; private $wireProtocol; private $ioBytesRead = 0; private $ioBytesWritten = 0; private $requestAttempts = 0;...
true
5a4c6761bc41bf51ecbd83160e74978d402f0449
PHP
Expendables3/FGameServer
/libs/BillingAPI.php
UTF-8
18,029
2.796875
3
[]
no_license
<?php define("BILLING_BALANCE_INQUIRY", 1); define("BILLING_PURCHASEID_INQUIRY", 2); define("BILLING_ITEM_PURCHASE", 3); define("BILLING_PAY_PACK_CASHID", 5); define("BILLING_PAY_PACK_PROMO", 4); /** * @author ToanTN GSN */ class Utilities { public static function packInt32($int32) { $data = ""; $data .= chr($in...
true
5ab32901bba526d0933d73fd3c6f3d7d1762e71e
PHP
Seafnox/CMS6
/CMS/protected/extensions/imgresizer/ImagePng.php
UTF-8
314
2.609375
3
[ "BSD-3-Clause" ]
permissive
<? class ImagePng extends ImageResizer { function createImg() { $this->img_res = imagecreatefrompng($this->source_path); $this->processBg($this->img_res); } function processBg($img) { imageAlphaBlending($img, false); imageSaveAlpha($img, true); } } ?>
true
b2cc4582e8ffa35fe28e2dbdb4cd72bc173bd10e
PHP
trailburning/tb-api
/src/AppBundle/Entity/RaceEventAttribute.php
UTF-8
3,327
2.515625
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use JMS\Serializer\Annotation as Serializer; use Swagger\Annotations as SWG; use Gedmo\Mapping\Annotation as Gedmo; /** * MediaAttribute. * * @ORM\Table(name="api_race_event_attribue") * @ORM\Entit...
true
01adf16f447e427c3aff2f7f3909c79617cc7068
PHP
epipav/subscription-management
/app/Http/Middleware/JwtAuth.php
UTF-8
971
2.78125
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use \Firebase\JWT\JWT; use \Firebase\JWT\ExpiredException; class JwtAuth { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ ...
true
f235e3f6a67a390f54a180083f6c3bc45db704af
PHP
vinicius-developer/manager-controll-go-back
/app/Http/Middleware/CompanySet.php
UTF-8
1,357
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Models\RelacaoUsuarioEmpresa; use App\Traits\ResponseMessage; use App\Traits\Authenticate; use Illuminate\Http\Request; use App\Models\Empresa; use Exception; use Closure; class CompanySet { use Authenticate, ResponseMessage; /** * Handle an incoming request...
true
4f1d93b2d0016a033a104fc085aa573e0b610b2c
PHP
GeorgeKariukiNgugi/MrInsuranceBackEnd
/app/Http/Controllers/Payments/IntentionToPayController.php
UTF-8
2,450
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Payments; use App\Payments\IntentionToPay; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class IntentionToPayController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public fun...
true
97cc9d8ec4441279d7c711174eb8abcddec22807
PHP
RebieKong/mp-tools
/src/Exception/HookException.php
UTF-8
1,107
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: rebie * Date: 17-1-30 * Time: 上午12:31 */ namespace RebieKong\MpTools\Exception; use RebieKong\MpTools\Entity\MessageBean; use RebieKong\MpTools\Hook\HookInterface; class HookException extends MpException { const HOOK_NOT_EXIST = 1; const HOOK_CALL_ERROR = 2; ...
true
9c1b61c453f445209c09f6db42173cbaf0bca7ec
PHP
epiecs/phpmiko
/src/Protocols/Telnet.php
UTF-8
3,053
3.34375
3
[ "MIT" ]
permissive
<?php namespace Epiecs\PhpMiko\Protocols; class Telnet implements ProtocolInterface { const DEFAULTPORT = 23; const DEFAULTTIMEOUT = 5; private $connection = false; private $readBytes = 128; public function __construct($hostname, $port = null, $timeout = null) { $port...
true
81cdc8ed1368d35083f84773d9a455cde83dcc10
PHP
lsv/uber-api
/src/Entity/User/History.php
UTF-8
6,294
2.890625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Lsv\UberApi package * * (c) Martin Aarhof <martin.aarhof@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Lsv\UberApi\Entity\User; use Lsv\UberApi\Entity\AbstractEntity; us...
true
4c8b7eb0ce34b89b912be4316dbda68bf32895d4
PHP
kauandotnet/catalogo-digital-whatsapp
/vendor/telegram-bot/api/src/Types/MessageEntity.php
UTF-8
3,732
2.90625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: iGusev * Date: 13/04/16 * Time: 04:10 */ namespace TelegramBot\Api\Types; use TelegramBot\Api\BaseType; use TelegramBot\Api\TypeInterface; class MessageEntity extends BaseType implements TypeInterface { const TYPE_MENTION = 'mention'; const TYPE_HASHTAG = 'hasht...
true
25e0246f0ffced5406584f6f9f5bc35aa42ccb5f
PHP
Qinjianbo/blog
/app/Http/Controllers/CaptchaController.php
UTF-8
697
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Collection; use Validator; class CaptchaController extends Controller { /** * check * * @param Illuminate\Http\Request $request * * @access public * * @return Illuminate\Support\Collection...
true
fee8fb3e097707f20a0ece87c4e064b4cf91c1f0
PHP
landasystems/akademik
/ams/models/SmsKeyword.php
UTF-8
47,843
2.5625
3
[]
no_license
<?php /** * This is the model class for table "{{sms_keyword}}". * * The followings are the available columns in table '{{sms_keyword}}': * @property integer $id * @property string $name * @property string $description * @property string $type * @property string $options * @property string $autoreplys */ cla...
true
4d9c27f38d8c6b34203d46ce10b5a6123f667002
PHP
milton2913/JobPortal
/app/Helpers/Skill.php
UTF-8
6,687
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Milton * Date: 1/8/2019 * Time: 11:00 AM */ namespace App\Helpers; use App\Models\Address; use App\Models\Employer; use App\Models\Experience; use App\Models\Profile; use App\Models\User; use Illuminate\Support\Facades\Auth; use Carbon\Carbon; use File; class Skill{ ...
true
919477b36029686eb08cec7b7bdc9e0fc0a52c7b
PHP
tamayoac/EventCalendar
/app/Service/BaseCommand.php
UTF-8
850
2.890625
3
[]
no_license
<?php namespace App\Service; class BaseCommand { public function doCommand($arr, $user) { return $this->createReturn(1, "unhandled command"); } public function createReturn($error_code, $message = "", $result = null) { $ret = new \stdClass(); $ret->error_code = $error_code;...
true
06439e1b7acae3b3d2dac9e3532a118a1405a0fc
PHP
mateomurphy/php-work
/micro/lib/micro/db.php
UTF-8
3,714
3.359375
3
[ "MIT" ]
permissive
<?php /** * Although a full blown ORM layer is out of the scope of Micro, using PDO directly can be a bit of a laborious process. This Db class wraps PDO * making it easier to execute common queries. * */ class Micro_Db { /** * PDO object * * @var PDO */ private $pdo; private $tables; public $result...
true
2f76568224d0f02d3e642dd494aae4bb7607d409
PHP
atpjulio/fundacion
/app/Phone.php
UTF-8
423
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Phone extends Model { protected $fillable = [ 'model_id', 'model_type', // 1 = Company, 2 = Eps, 3 = Patient 'phone', 'phone2', ]; public function getFullPhoneAttribute() { if (!$this->phone2) ...
true
1642f70b828e9547d7828f957c17de1d141f6fc1
PHP
dol-leodagan/phpbb-dol-extension
/controller/main.php
UTF-8
16,307
2.515625
3
[ "MIT" ]
permissive
<?php /** * * @package DOL Extension 0.0.1 * @copyright (c) 2016 Leodagan * @license MIT * */ namespace dol\status\controller; use phpbb\config\config; use phpbb\controller\helper; use phpbb\template\template; use phpbb\user; use phpbb\request\request; use Symfony\Component\HttpFoundation\Response; use Symfony\Compone...
true
1f07e576cd0b9dff6e7f5e3840448ead442285eb
PHP
fiasco/Archimedes-Client-Drupal
/archimedes.inc
UTF-8
9,788
2.53125
3
[]
no_license
<?php /** * @file Archimedes toolset. */ /** * Find and load the archimedes library. */ function archimedes_load_library() { if (class_exists('Archimedes')) { return; } // Use the libraries module if its enabled. if (module_exists('libraries')) { $file = libraries_get_path('archimedes') . '/archim...
true
352425bc04eda3d15a07ff77c5cd543ed6f4d317
PHP
john-needham/model-doc
/src/Database/Inspector.php
UTF-8
1,006
2.65625
3
[]
no_license
<?php namespace Needham\ModelDoc\Database; use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; use Needham\ModelDoc\Attribute; class Inspector { const SQL_TABLE_NAME = 'TABLE_NAME'; const SQL_COL_NAME = 'COLUMN_NAME'; const SQL_COL_TYPE = 'DATA_TYPE'; ...
true
640d9a1d42d16de8bb25636e84a555e471d57009
PHP
harshildarji/PHP-Examples
/Database/basic.php
UTF-8
966
2.609375
3
[]
no_license
<?php require('connect.php'); ?> <form action='basic.php' method='GET'> User name: <br> <input type='text' name='uname'> <br> <br> <input type='submit' value='Submit'> </form> <?php if(isset($_GET['uname'])){ $uname = strtolower($_GET['uname']); if(!empty($uname)){ $query ...
true
51dbe378b4b44d899a953041e3e211b21aba519c
PHP
Brandioo/PHPExercises
/InterfaceInsuranceExercise/index.php
UTF-8
1,702
3.5
4
[]
no_license
//Brandio <?php interface Insurance { public function getInsuranceName(); public function getYearsOfSponsorShip(); } interface InsuranceWithParameters { public function getInsuranceName(string $name); public function getYearsOfSponsorShip(int $years); } class Sigal implements InsuranceWithParamete...
true