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
08a14f56a9060c38f433a1fc36acdd878dbe93cb
PHP
DanielDolz/provahttp
/procesarpost.php
UTF-8
536
2.59375
3
[]
no_license
<?php var_dump($_SERVER[REQUEST_METHOD]); //echo "Hola" . $_POST['nom']; // //var_dump($_POST); //var_dump($_FILES); // //// $_POST['name'] // //// --Laravel-- //// Request -> input('name') //// Response //API REST // //Recurs: task // //CREATE -> POST miapi.com/task -> Dades:Formulari //RETRIEVE -> GET miapi.com/...
true
669ad9e9e76297b06a666d2c7163ba93dab1e1b4
PHP
prmacedo/calculadora-de-preco
/controller/CalculatorController.php
UTF-8
1,928
2.984375
3
[]
no_license
<?php require_once "model/Connection.php"; require_once "model/HighSeason/HighSeason.php"; require_once "model/HighSeason/HighSeasonDAO.php"; require_once "model/Room/Room.php"; require_once "model/Room/RoomDAO.php"; class CalculatorController { public static function calculate($post) { $single = $post["singl...
true
77af7658aebf9c50c3fb799026a439dab3d468d7
PHP
1csoft/dar-bx-admin
/src/TwigExtension.php
WINDOWS-1251
4,096
2.65625
3
[]
no_license
<?php /** * Created by OOO 1C-SOFT. * User: Dremin_S * Date: 26.09.2018 */ namespace Dar\Admin; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; use Twig\TwigFunction; class TwigExtension extends AbstractExtension { public function getName() { return 'dar.admin'; } public function getFunctions(...
true
cf151dab2a23bd6cba22da8fc53f0f2106084880
PHP
Sicavonline/api-platform-mongo-bridge
/src/Bridge/Doctrine/Odm/Extension/Filter/NumericFilter.php
UTF-8
4,101
2.59375
3
[ "MIT" ]
permissive
<?php namespace Sol\ApiPlatform\MongoBridge\Bridge\Doctrine\Odm\Extension\Filter; use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; use ApiPlatform\Core\Exception\InvalidArgumentException; use Doctrine\ODM\MongoDB\Query\Builder; use Doctrine\ODM\MongoDB\Types\Type; /** * Class NumericFilter...
true
63cb7fea55c5ee81ac2c8d4553c4b7bb03d306cb
PHP
cuonglinkhousemientrung/facebookapi
/index.php
UTF-8
1,931
2.71875
3
[ "MIT" ]
permissive
<?php date_default_timezone_set("Asia/Ho_Chi_Minh"); define('ENDPOINT', 'https://graph.facebook.com/'); define('ACCESS_TOKEN', 'EAAId3SaFKNYBAHa8Om9oueSKhAZCwjDnyvZAUs8ZCTH8nu9igCtjtpZB448f0abyhD9VnxencakhRuyAE1gZCwhyfLWS90v28Mr0GROByLXWWdh41hR7ZC64xjdknNe8DU7KLRo60Cfy5TPvyzbSAkrkCEoWgktWxSiZALl1mGkr3pFQrZBGbm9TnZCdlQ...
true
02729018d020e6e04fa0b127ac4a36bfafd964bd
PHP
theWhiteFox/sonar-php
/php-checks/src/test/resources/checks/UnusedFunctionParametersCheck.php
UTF-8
693
3.25
3
[]
no_license
<?php function f($p1, $p2, $p3) { // NOK - $p1 $p2 = 1; call($p3); } $a = function($p1, $p2) { return $p1; }; // NOK - $p2 function f($p1, $p2) { // NOK - $p1 function nestedF($p1, $p2) { // NOK - $p2 $p1 = 1; } return $p2; } abstract class C { ...
true
ca829742b0d0fd4ea9627ed096be6e0793bdebe6
PHP
ezeveritta/FAI-2172FiDrive
/app/controladores/CompartidosControl.php
UTF-8
9,601
3.0625
3
[]
no_license
<?php /** * Alumno: Ezequiel Vera * Legajo: FAI-2172 * Fecha: 19/11/2020 */ class CompartidosControl { private $error; public function __construct() { $this->error = ''; } /** * Esta función obtiene todo el contenido de la base de datos que tiene estado "compartido" * @para...
true
e1b6973b39faa2f01f7db4fc9c5c237e59f0f0aa
PHP
kontenta/kontour-support
/src/AdminWidgetManager.php
UTF-8
1,595
2.65625
3
[]
no_license
<?php namespace Kontenta\KontourSupport; use Illuminate\Contracts\Auth\Guard; use Illuminate\Support\Collection; use Kontenta\Kontour\Contracts\AdminWidget; use Kontenta\Kontour\Contracts\AdminViewManager; use Kontenta\Kontour\Contracts\AdminWidgetManager as WidgetManagerContract; class AdminWidgetManager implements...
true
1133c0aff68dfd53ace27690eb2756563ff9bcd6
PHP
vinocrzy/librarymanagement-php
/Admin/passup.php
UTF-8
770
2.65625
3
[]
no_license
<!DOCTYPE html> <html> <head> </head> <body> <?php include('session.php'); $oldpass = $_GET['oldpass']; $newpass = $_GET['newpass']; $sql = "select id from admin where username='$user_check' and pwd='$oldpass'"; $result = mysqli_query($db,$sql); $count = mysqli_num_rows($result); if(...
true
134c1a77485183ac5ffec1670c0f6e73a51ca16e
PHP
song-yuan/wymenujp
/protected/modules/thinterface/models/Ilifebox.php
UTF-8
7,155
2.671875
3
[]
no_license
<?php /** * 注:外部调用,必须包含Ilifebox.php文件和getmac.js文件 * 方法一:获取mac地址 * 如果返回为0,则调用js getmac()方法,并再次调用方法一,如果还为0说明不再网络环境中 * * 方法二:校正方法,2个参数 * $momac:用户校正终端的mac地址,可通过方法一获取 * $apmac:ilifebox的mac地址 * 返回值:如果返回'rpbench:'这个字符串说明校正成功, * 如果返回false或空则说明校正失败,或参数错误 * * 方法三:获取校正点列表,1个参数 * $momac:为手持终端的mac地址,可以通过方法一获取 * 返回...
true
74f0ee70b9da187ebf6fff88637922e4ff2ca314
PHP
GuanxiongWu/BitDiv
/BitDiv/html/friendDB.php
UTF-8
1,155
2.65625
3
[]
no_license
<?php include_once 'data/config.php'; if(true) { try { $db = new PDO ( "mysql:host=$host;dbname=$dbname;charset=utf8", $user, $dbPassword ); $db->setAttribute ( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); $db->setAttribute ( PDO::ATTR_EMULATE_PREPARES, false ); if(true) { ...
true
c15a0e026e00a1a75b6e41684a5a0362c78fa7c4
PHP
JoolsMcFly/tictactoe
/app/Events/GameRefusedEvent.php
UTF-8
998
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Events; use App\User; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; clas...
true
7736491ac9ddb656f8005d1d84865ef5d3acd637
PHP
RoyHabbort/hello
/App/Services/MessageOutput/FileOutput.php
UTF-8
1,027
3.078125
3
[]
no_license
<?php namespace App\Services\MessageOutput; class FileOutput implements MessageOutputInterface, FileOutputInterface { /** @var string */ protected $outputFilePath; /** * @return string */ public function getOutputFilePath(): string { return $this->outputFilePath; } /**...
true
2d431b5b93b563a04a90ed07bda569b02c0ed5de
PHP
BaoBaoTang/mysql-version
/xmlgen.php
UTF-8
3,085
2.703125
3
[]
no_license
<?php printf("<argtrust>"); /** @page dotgen_hw_impl Implementation Details: dotgen_hw.php * dotgen_hw.php: * File that generates dot file containing the "Scenario Overview" with all * arguments (outcomes). * * Generates dot file containing the "Scenario Overview" starting from agent * posing question with all r...
true
d6d33ba1d2f5911eca0d97148f3db5db731bfeda
PHP
lohyenjeong/AutoBrainAnalysis
/mod_viewinstitutions/helper.php
UTF-8
866
2.5625
3
[]
no_license
<?php class ModViewInstitutions { public static function showRecords() { $db = JFactory::getDbo(); $region = "profile.region"; $query = $db->getQuery(true) ->select("DISTINCT profile_value") ->from($db->quoteName('r17ie_user_profiles')) ->where($db->quoteName('profile_key')."=".$db->quot...
true
be9c5b99242a3462d7a11657d1f52ffd9491fc64
PHP
TimofeevVadim/home-work-4
/app/models/FirstModel.php
UTF-8
580
2.59375
3
[]
no_license
<?php namespace Models; use Core\Model; class FirstModel extends Model { public static function getData() { $pdo = self::getInstance(); $data = $pdo->query("SELECT catalog.entity_id, catalog.sku, catalog.created_at, eav.attribute_code, catalogText.value FROM catalog_product_entity_text AS cat...
true
489c3360a2821f2ae8bc79eaea34607f26fa6c30
PHP
leirad8/wptri
/wp-content/plugins/fusion-core/shortcodes/class-woo-featured-products-slider.php
UTF-8
6,561
2.703125
3
[]
no_license
<?php class FusionSC_WooFeaturedProductsSlider { public static $args; /** * Initiate the shortcode */ public function __construct() { add_filter( 'fusion_attr_woo-featured-products-slider-shortcode', array( $this, 'attr' ) ); add_filter( 'fusion_attr_woo-featured-products-slider-shortcode-carousel', array...
true
92978168dab00d65f6d23d1735a5ff2e016fa0aa
PHP
DrNotThatEvil/SmileScreen
/src/Template/TemplateSystem.php
UTF-8
2,362
2.859375
3
[ "MIT" ]
permissive
<?php namespace SmileScreen\Template; use SmileScreen\Base\Singleton as Singleton; use SmileScreen\Config\ConfigFileSystem as ConfigFileSystem; use SmileScreen\Config\ConfigSystem as ConfigSystem; use SmileScreen\Exceptions\GenericSmileScreenException as GenericSmileScreenException; class TemplateSystem extends S...
true
42b33f9d89e2c6918e978feb5b2e0378a35f6ecb
PHP
JovanZDR/wu14oop2.
/start_challenge.php
UTF-8
1,585
2.59375
3
[]
no_license
<?php include_once("nodebite-swiss-army-oop.php"); $ds = New DBObjectSaver(array( "host" => "127.0.0.1", "dbname" => "wu14oop2", "username" => "root", "password" => "mysql", "prefix" => "wu14oop2", )); $companion_index = isset($_REQUEST["companionIndex"]) ? $_REQUEST["companionIndex"] : false; if (co...
true
e949dbf4baee3641781a96709df2289deb1b2ef0
PHP
Unikom-TDoni/uts-basis-data
/app/Database/Migrations/2021-05-08-082933_Jadwal.php
UTF-8
805
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Database\Migrations; use CodeIgniter\Database\Migration; class Jadwal extends Migration { public function up() { $this->forge->addField([ 'id_jadwal' => [ 'type' => 'INT', 'constraint' => 11, 'auto_increment' => true ], 'id_rute' => [ 'type' ...
true
57d7ee8b473061b0e62d13d2043a17e214531cd5
PHP
joelel99/proyectos_de_ejemplos
/for.php
UTF-8
353
3.421875
3
[]
no_license
<?php for ($i=1; $i <= 10; $i++) { echo $i; } echo"<br><br>la suma de un bucle pero de 2 en dos"; for ($a=0; $a < 14 ; $a+=2) { echo "<br>".$a; if ($a >= 10) { echo "codigo interumpido<br>"; break; } } for ($tabla=0; $tabla <= 10 ; $tabla++) { echo "2 x $tabla =". 2...
true
21fa0fa0e99b4348212b96a210dd2281c8d55793
PHP
lucianoismperez/tpe-w
/Controller/TiendaController.php
UTF-8
3,744
2.65625
3
[]
no_license
<?php require_once "./Model/ProductoModel.php"; require_once "./View/TiendaView.php"; require_once "./Model/CategoriaModel.php"; require_once "./Helpers/AuthHelper.php"; class TiendaController{ private $model; private $categoriaModel; private $view; function __construct(){ $this->model = new ...
true
d32f747cc247822915bbe26910dd67beb47fdd95
PHP
Ajharul-Islam-Miraj/Justice-For-Managing-Cases
/views/admin/validation/new_lawyer_validation.php
UTF-8
6,098
2.59375
3
[ "MIT" ]
permissive
<?php $reg_pp=""; $err_reg_pp=""; $reg_fullname=""; $err_reg_fullname=""; $reg_username=""; $err_reg_username=""; $reg_email=""; $err_reg_email=""; $reg_phone=""; $err_reg_phone=""; $reg_pass=""; $err_reg_pass=""; $reg_cpass=""; $err_reg_cpass=""; $reg_pass=""...
true
6274a51ec113800dd233c6fd6b5918c35303a2c0
PHP
slender97/spotyfoe
/Spotifoe/reproductorListas.php
UTF-8
2,132
2.578125
3
[]
no_license
<html> <head> <style> .mainContent { float:left; width:100%; height:25%; } </style> </head> <body> <iframe class="mainContent" id = "myid" src='' frameBorder="0"></iframe> <script type="text/javascript"> <?php /*include ("connection.php"); $conn = connect();*/ //$query = "SELECT Cod...
true
4821ed568a32e3cd7304574e93ab7b47ca4537e3
PHP
igorcomputer/elisdn.ru_php_oop
/lesson07/07/01/09.php
UTF-8
1,963
3.3125
3
[]
no_license
<?php namespace other\example07\demo01\step10; class Status { public function isActive() { } } class Phone { public function isMobile() { } public function isEqualsTo(self $phone) { } } class Phones { /** * @var Phone[] */ private $phones = []; public function __construct(array $p...
true
c1b4015fe10310d31fbf2b092411392d1000a3fa
PHP
tonyu2019/hello_laravel_bbs
/database/factories/PostFactory.php
UTF-8
776
2.625
3
[]
no_license
<?php use Faker\Generator as Faker; $factory->define(\App\Models\Post::class, function (Faker $faker) { $user_ids=\App\Models\User::all()->pluck('id')->toArray(); $categroy_ids=\App\Models\Category::all()->pluck('id')->toArray(); // 随机取一个月以内的时间 $updated_at = $faker->dateTimeThisMonth(); // 传参为生成最大...
true
8d92d256114ecc860ed32a017c8714f2731fc87f
PHP
aglavas/tweetProxy
/src/AppBundle/Validator/BothFieldsNullValidator.php
UTF-8
1,470
2.796875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Validator; use Doctrine\ORM\EntityManager; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; const TWEET_CONST = 'tweet'; const TEXT_CONST = 'text'; const USER_ID_CONST = 'userId'; /** * Val...
true
bc821910e2ac4250665f5edacd4019d56249bc85
PHP
vinzartema123/song-project
/app/Controllers/Lyrics.php
UTF-8
1,434
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\LyricsModel; use App\Models\UserModel; class Lyrics extends BaseController { public function index() { $data = []; $model = new LyricsModel(); $data ['lyrics'] = $model->findAll(); echo view('templates/header', $data); e...
true
d1ed45ffddcd6421565ced7db34fb6dedc52377e
PHP
MoB-Dos/ProjetHopitalPhP
/Class/ClassManager/RDVManager.php
UTF-8
4,353
2.890625
3
[]
no_license
<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/ProjethopitalPhP/Class/ClassManager/PdoManager.php"); class RDVManager extends PdoManager { public function AjoutRDV(SetUpRDV $ajout) { $bdd = parent::connexionBDD(); //déclaration des variables $horaire = $ajout->getHoraire(); ...
true
a7bff2eb1010a8643784b6c9047063d6cbe830cc
PHP
edu0037/entrega-
/fizzbuzz/fizzbuzz34.php
UTF-8
675
3.421875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Fizzbuzz</title> </head> <body> <form method="POST"> <input type="POST" name="n1"> <input type="POST" name="n2"> <input type="submit" name="Enviar" value="Enviar"> </form> <br> </body> </html> <?php //here is our m...
true
9c7a11d7892a05889f2bfaa23b43b5ace471ac0e
PHP
ammarfaizi2/afx
/src/helpers.php
UTF-8
1,915
2.953125
3
[]
no_license
<?php if (! function_exists("sh")) { /** * @param string $cmd * @return string */ function shf($cmd) { $cmd = shell_exec($cmd); return trim(is_string($cmd) ? $cmd : ""); } } if (! function_exists("mxit")) { /** * @param string $msg * @param int $code * @return void */ function mxit($msg, $...
true
f33c47be33aaabea342760465cc8f83440024a55
PHP
IgmarH/PHP
/loops2.php
UTF-8
861
2.578125
3
[]
no_license
<?php ?> <!DOCTYPE html> <head> <title>loops2</title> <style> body { text-align: center; font-family: "arial", sans-serif; font-size: 25px; } .black { border:black solid 5px; ...
true
64372431a9baa8909b4377c8350191bd21bf1e37
PHP
alfrekjv/culiacan
/modules/ContactModule/Classes/ContactHelper.php
UTF-8
1,324
2.765625
3
[]
no_license
<?php namespace ContactModule\Classes; class ContactHelper { protected $emailHelper; protected $config; public function __construct() {} public function setEmailHelper($helper) { $this->emailHelper = $helper; } public function setConfig($config) { $this->co...
true
aca0d7362704749d6860564163b2790d07e50c38
PHP
fdenoel/Projet-web-CakePHP
/src/Model/Table/UsersTable.php
UTF-8
395
2.59375
3
[]
no_license
<?php // src/Model/Table/UsersTable.php namespace App\Model\Table; use Cake\ORM\Table; use Cake\Validation\Validator; class UsersTable extends Table { public function validationDefault(Validator $validator) { return $validator ->notEmpty('username', "Un nom d'utilisateur est nécessaire") ...
true
7236f8bf3077f919cfd05c5b0be45c37b990514d
PHP
agupta92/anantdevcon
/php/mail.php
UTF-8
1,890
2.546875
3
[]
no_license
<?php include 'functions.php'; $response = $_POST["g-recaptcha-response"]; $url = 'https://www.google.com/recaptcha/api/siteverify'; $requestData = array( 'secret' => 'YOUR_SECRET', 'response' => $_POST["g-recaptcha-response"] ); $options = array( 'http' => array ( 'method' => 'POST', ...
true
339a617806a5da89c52e306b4d06e5ab8b3dec96
PHP
Hevelop/magescan
/src/MageScan/Request.php
UTF-8
4,109
2.90625
3
[ "CC-BY-4.0" ]
permissive
<?php /** * Mage Scan * * PHP version 5 * * @category MageScan * @package MageScan * @author Steve Robbins <steve@steverobbins.com> * @copyright 2015 Steve Robbins * @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 * @link https://github.com/steverobbins/magescan */ namespace Mage...
true
e590ca2488822081a58bc0738638c11b495b55aa
PHP
josenava/spotahome_test
/src/DTO/FilterParametersDTO.php
UTF-8
1,008
3.125
3
[]
no_license
<?php declare(strict_types=1); namespace App\DTO; final class FilterParametersDTO { /** * @var null|string */ private $orderBy; /** * @var int|null */ private $pageNumber; /** * @var int|null */ private $pageSize; /** * FilterParametersDTO constructor. ...
true
eb4f8650f78fb09c9c68c4e4cab764ddd9ec647c
PHP
zus1/xml_processor
/crons/process.php
UTF-8
426
2.53125
3
[]
no_license
<?php use XmlProcessor\FileSystem\FileSystem; use XmlProcessor\ValueObjects\FetchUrls; use XmlProcessor\XmlProcessor\XmlProcessor; include_once(dirname(dirname(__FILE__)) . "/autoload.php"); try { $xmlProcessor = new XmlProcessor(new FileSystem(), new FetchUrls()); $xmlProcessor->process(); } catch(Exception...
true
32de47170ddf634ffb3b3284d619899c73d22f54
PHP
aimeiyan/PHP
/scripts/basic/array.php
UTF-8
1,206
3.796875
4
[]
no_license
<html> <head> <meta charset="utf-8"> <title>PHP测试</title> </head> <body> <?php echo "PHP 数值数组"; echo "<br>"; $arr = array("BMW", "Volvo", "Toyota"); echo "I like " . $arr[0] . "," . $arr[1] . "," . $arr[2] . "."; echo "<br>"; $arr1 = array(); $arr1[0] = "Toyato"; $arr1[1] = "BMW"; $arr1[2] ...
true
b81c8aaa42ccd32d618573df885b14bb6f3a67b0
PHP
sumonst21/learn-object-oriented-php-by-building-a-complete-website
/Advanced-OOP/Abstract-Classes-Methods.php
UTF-8
1,303
4.375
4
[]
no_license
<?php /* * Abstract Classes & Methods */ // abstract class abstract class Animal{ // properties public $name; public $color; // methods public function describe(){ return $this->name. ' is ' .$this->color; } abstract public function makeSound(); } // child class using extends class Duck extends Animal{ p...
true
d67b8d63c5296c62e138d01fb5d447755b2988e8
PHP
stanley-cheung/Protobuf-PHP
/library/DrSlump/Protobuf/Codec/JsonTagMap.php
UTF-8
532
2.609375
3
[ "MIT" ]
permissive
<?php namespace DrSlump\Protobuf\Codec; use DrSlump\Protobuf; /** * This codec serializes and unserializes from/to Json strings * where the keys represent the field's tag numbers. * * It makes use of the PhpArray codec to do the heavy work to just * take care of converting the array to/from Json strings. */ cl...
true
74c908c167309768954d1c7c360cc4f9aa017be0
PHP
incapption/SimpleApi
/src/Models/ErrorResult.php
UTF-8
714
2.96875
3
[]
no_license
<?php namespace Incapption\SimpleApi\Models; use Incapption\SimpleApi\Enums\HttpStatusCode; use Incapption\SimpleApi\Interfaces\iMethodResult; class ErrorResult extends MethodResult implements iMethodResult { /** * @var array|string */ private $errors; /** * ErrorResult constructor. ...
true
c40e177eafe1f616adc0d9346c2adbed87bfe862
PHP
phenomkw/MultiHoster
/banadmin.php
UTF-8
1,946
2.515625
3
[]
no_license
<?php // ======================================== \ // Package: MultiHoster // Version: 6.0.0 // Copyright (c) 2007-2013 Mihalism Technologies // Copyright (c) 2011-2013 MultiHosterScript.com // License: http://www.gnu.org/licenses/gpl.txt GNU Public License // LTE: 1253515339 - Monday, September 21, 2009, 02:42...
true
bd8142428575b9f064d310a6e4e3697dc6260a7a
PHP
SMART-Tech-Solutions-e-G/immoinc-website
/services/app/src/Endpoints/HandleCreateRealEstateAnnouncementEndpoint.php
UTF-8
2,738
2.8125
3
[]
no_license
<?php require_once("Endpoint.php"); class HandleCreateRealEstateAnnouncementEndpoint extends Endpoint { public function render() { if (!isset($_SESSION["userId"])) throw new Exception("Not logged in"); $ownershipLevel = isset($_POST["ownershipLevel"]) ? (intval($_POST["ownershipLevel"]) === 1...
true
b750f587daeabdf571e999ec65ff04950fdde527
PHP
omar5hady/cumbres
/app/PensionFondo.php
UTF-8
1,241
2.796875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use App\PensionFondoPago; class PensionFondo extends Model { /* A list of fields that can be filled by the user. */ protected $fillable = [ 'user_id', 'saldo' ]; /** * It returns a paginated list o...
true
ce0d964e2873fa7d988f21bee61c8ea4d0672e4d
PHP
kkiernan/php-code-katas
/Password Strength/src/Acme/Validate.php
UTF-8
1,634
3.453125
3
[]
no_license
<?php namespace Acme; class Validate { /** * Check that a password has at least six characters, at least one capital letter, * at least one number, at least one accepted symbol and no whitespace. * * @param string $string * @return string */ public function password($password) { if ( ! $this->ha...
true
e9e79026eb0c79b2c9383c7b9772f8d798f4e548
PHP
CynthiaAlwenge/akirachix
/php-mvc/application/lib/application.php
UTF-8
369
2.796875
3
[]
no_license
<?php /** * Application */ class Application { function __construct() { $this->db = new Database(DATABASE, DB_PASSWORD, DB_USER, DB_SERVER); } public function index() { // Database Call to friends table $obj = new Friend($this->db); $friends = $obj->all_friends(); // Load View File ...
true
3627d3bbfe7c62e3b1cacb176990a1e2832848be
PHP
williamsbs/Piscine-PHP
/day04/ex02/create.php
UTF-8
960
2.640625
3
[]
no_license
<?php if ($_POST["login"] != "" && $_POST["passwd"] != "" && $_POST["submit"] == "OK") { $passwd = hash(sha512,$_POST["passwd"]); if (file_exists("../private") == FALSE) { mkdir ("../private", 0777, TRUE); } if (file_exists("../private/passwd") == FALSE) { $tab = array(array("login" => $_POST["login"], "passw...
true
3d79cfe2f0483b94ed7fc98a653c160760afb971
PHP
alex-kalanis/kw_groups
/php-src/Interfaces/IProcessor.php
UTF-8
515
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace kalanis\kw_groups\Interfaces; use kalanis\kw_groups\GroupsException; /** * Interface IProcessor * @package kalanis\kw_groups\Interfaces * Interface which say if that group member can access that content */ interface IProcessor { /** * Can my group access things with wanted group? ...
true
32529febd331d3a1fea6d9d414685deab1b97e92
PHP
amarniahmed/Exerccie-kwo-amarni
/app/kwo/lib/core/back/date.picker.inc
UTF-8
1,738
2.546875
3
[]
no_license
<?php try { //$req->debug(); $is_date = false; if ($req->year > 1000) { $ts = mktime(0, 0, 0, $req->month, 1, $req->year); $date = date('Y-m-d', $ts); } elseif ($req->hasAttribute('date', true) && !DH::isNull($req->date)) { $date = $req->date; $is_date = true; } else { $date = DH...
true
df992a281a0c09a3ce3e630a4e12ce42b31c23ea
PHP
RochelManatsoa/cartegrise
/src/Command/FactureJournalierCommand.php
UTF-8
3,156
2.953125
3
[]
no_license
<?php namespace App\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputOption; use App\Manager\{DemandeManager, UserManager, DailyFactureManager}; use App\Entity\Dail...
true
d10c4afa4f535d1c6e6f8c0db494053008fd0c75
PHP
Gudang-Source/ehealthsys-abepura
/protected/modules/pendaftaranPenjadwalan/models/PPMetodeGCSM.php
UTF-8
453
2.515625
3
[]
no_license
<?php class PPMetodeGCSM extends MetodegcsM { /** * Returns the static model of the specified AR class. * @param string $className active record class name. * @return MetodegcsM the static model class */ public static function model($className=__CLASS__) { return parent::model($className); } ...
true
74ebc67e7bfad151986cd5fefb926c405cec4baf
PHP
AppStateESS/tailgate
/class/Factory/Lot.php
UTF-8
2,964
2.796875
3
[]
no_license
<?php namespace tailgate\Factory; use tailgate\Resource\Lot as Resource; use tailgate\Resource\Spot; /** * @license http://opensource.org/licenses/lgpl-3.0.html * @author Matthew McNaney <mcnaney at gmail dot com> */ class Lot extends Base { protected $table = 'tg_lot'; public function postNew() { ...
true
af3e6e598570503933e678c3cca34d6914eb6a78
PHP
AVASoft/consul
/src/Entity/Check.php
UTF-8
5,527
2.625
3
[]
no_license
<?php namespace Avasoft\Component\Consul\Entity; class Check { /** * Specifies the name of the check. * @example "AMS-1" * * @var string * @see https://www.consul.io/api/agent/check#name */ private string $name; /** * Specifies arbitrary information for humans. This i...
true
6f6a332264770bbad2690a27bc19c4f8ec235243
PHP
ivankozlovcodes/php_piscine
/d07/ex06/UnholyFactory.class.php
UTF-8
1,253
3.734375
4
[]
no_license
<?php class UnholyFactory { private $types = array(); public function absorb($type) { if ($type instanceof Fighter) { if (in_array($type, $this->types)) print("(Factory already absorbed a fighter of type "); else { print("(Factory absorbed a fighter of type "); $this->types[] =...
true
3665b1053fa85e3d901ec0d1794236da78429bb2
PHP
sudongyan/panpanchinese
/application/admin/model/PriceClass.php
UTF-8
1,045
2.671875
3
[]
no_license
<?php namespace app\admin\model; use think\Model; class PriceClass extends Model { //获取列表 public static function getList() { if (!isset($order)) { $order = 'asc'; } $list = PriceClass::order('period', $order) -> select(); return $list; } //增加新数据 public static function addData($period) { $data['per...
true
20aa21c39c7ef7552203617cde6fd86ac43a74e6
PHP
Pyrex-FWI/sf_cert
/src/Cpyree/DigitalDjPoolBundle/Service/CleanDir.php
UTF-8
2,295
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Angie * Date: 14/03/2015 * Time: 19:57 */ namespace Cpyree\DigitalDjPoolBundle\Service; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\SplFileInfo; /** ...
true
5b083e638681e6714dc223856e1ce4abdbf88e80
PHP
Wodya/Geekbrains.-PHP-2
/Lesson6/controllers/BasketController.php
UTF-8
1,342
2.640625
3
[]
no_license
<?php namespace app\controllers; use app\entities\Basket; use app\repositories\GoodRepository; class BasketController extends Controller { protected function getPageSize(): int { return 3; } public function allAction() { $basket = $this->request->getBasket(); return $thi...
true
26a03ed7ebf4b0172c8218820846ebd613a086c6
PHP
sellastica/monolog
/src/ILogger.php
UTF-8
2,627
3.078125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace Sellastica\Monolog; interface ILogger { /** * Adds a log record at the INFO level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return Boolean Whether the record has been proces...
true
cff3c552ff881ccfc391f2895183b794f83657da
PHP
pbl64k/HairPointener
/Data/Graphs/AcyclicDigraph.php
UTF-8
11,216
2.75
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Data\Graphs { require_once(dirname(__FILE__).'/../../Control/Monads/ArrayMonad.php'); require_once(dirname(__FILE__).'/IVertex.php'); require_once(dirname(__FILE__).'/IArc.php'); require_once(dirname(__FILE__).'/IGraph.php'); require_once(dirname(__FILE__).'/SimpleArc.php'); require_on...
true
8fcbbba2f4e66869025b7299273304950531829c
PHP
symfony/symfony
/src/Symfony/Component/Config/Definition/Processor.php
UTF-8
2,485
2.890625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Definition; /** * This class is the entry poi...
true
96a672037617be62409e082b3e820a7bcc6dd701
PHP
prusov/umi.framework-dev
/library/stemming/toolbox/StemmingTools.php
UTF-8
3,448
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * UMI.Framework (http://umi-framework.ru/) * * @link http://github.com/Umisoft/framework for the canonical source repository * @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/) * @license http://umi-framework.ru/license/bsd-3 BSD-3 License */ namespace umi\stemming\toolbox; u...
true
c9c572dab149a60876a0b3486234189cf4c47322
PHP
KoreanJuice/DAW2
/server/ejercicios/Tema03_Objetos/ej03.php
UTF-8
380
3.3125
3
[]
no_license
<?php class MiClase { const CONSTANTE = 'valor constante'; function mostrarConstante() { echo self::CONSTANTE."\n"; } } echo MiClase::CONSTANTE."\n"; $nombreclase = "MiClase"; echo $nombreclase::CONSTANTE."\n"; //a partir de php 5.3.0 $clase = new MiClase(); $clase->mostrarConstante()...
true
a4f5de4f2b401b6f85ba910f78273439c3936403
PHP
twobacs/COPS
/js/php/searchRue.php
UTF-8
439
2.515625
3
[ "MIT" ]
permissive
<?php include ('connect.php'); if (isset($_GET['nom'])) { $html=''; $nom=htmlentities($_GET['nom']); $sql = 'SELECT IdRue, NomRue, StraatNaam FROM z_rues WHERE NomRue LIKE "%'.$nom.'%" ORDER BY NomRue ASC'; $rep=$pdo->query($sql); while ($row=$rep->fetch()) { $html.=$row['NomRue'].' ('.$row['StraatNaam'].') -...
true
8062a58630a537c9c2bfafc78164ed5641ce6f19
PHP
till20052/volya
/libs/models/election/ElectionCandidatesOpponentsModel.php
UTF-8
456
2.53125
3
[]
no_license
<?php Loader::loadModel("ExtendedModel", Loader::SYSTEM); class ElectionCandidatesOpponentsModel extends ExtendedModel { protected $table = "election_candidates_opponents"; protected $_specificFields = [ "date" => ["created_at", "modified_at:force"] ]; /** * @param string $instance * @return ElectionCandida...
true
03dcf9cb7c3020957ef8ba13543a5b1043a2e8ab
PHP
jujudellago/cabinetsens
/web/app/plugins/qode-instagram-widget/lib/qode-instagram-api.php
UTF-8
16,678
2.734375
3
[ "MIT" ]
permissive
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } include 'qode-instagram-helper.php'; /** * Class QodeInstagramApi */ class QodeInstagramApi { private $instagramClientID; private $instagramSecret; private $instagramRedirectUri; private $instagramCode; private $instagramUserID; private $ins...
true
04c6f27ed7236a9c9ec1e1065b7bc3c62d059375
PHP
mastashake08/laravel-spark-archive
/app/Http/Controllers/API/TeamController.php
UTF-8
2,864
2.703125
3
[ "MIT" ]
permissive
<?php namespace Laravel\Spark\Http\Controllers\API; use Exception; use Laravel\Spark\Spark; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Auth; use Laravel\Spark\Contracts\Repositories\TeamRepository; class TeamController extends Controller { /** * The team d...
true
901d93c0acd62389f0e5f7baea0416e52e91c193
PHP
Q-Con/qcacher-autofill
/src/Models/SteamQueueItem.php
UTF-8
583
2.53125
3
[]
no_license
<?php namespace Zeropingheroes\LancacheAutofill\Models; use Illuminate\Database\Eloquent\Model; class SteamQueueItem extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'steam_queue'; /** * Indicates if the model should be timestamped...
true
d1689f6646ef1d2b0697f69ea6dad1da19a717cb
PHP
DavidCao626/server
/app/EofficeApp/Flow/Repositories/FlowFavoriteRepository.php
UTF-8
2,579
2.5625
3
[]
no_license
<?php namespace App\EofficeApp\Flow\Repositories; use App\EofficeApp\Flow\Entities\FlowFavoriteEntity; use App\EofficeApp\Base\BaseRepository; /** * 流程控件的“控件分组”表知识库 * * @author 丁鹏 * * @since 2015-10-16 创建 */ class FlowFavoriteRepository extends BaseRepository { public function __construct(FlowFavoriteEntit...
true
718930114b982b69956af13b60ba8afd65505328
PHP
travi/php-framework
/php/framework/src/travi/framework/email/SendGridSender.php
UTF-8
1,042
2.71875
3
[]
no_license
<?php namespace travi\framework\email; use travi\framework\exception\EmailNotAcceptedForDeliveryException; class SendGridSender implements EmailSender { /** @var SendGridMapper */ private $mapper; /** @var \SendGrid */ private $sendgrid; /** * @param $to * @param $from EmailAddress ...
true
be553311fe8690ccaad665495296a294970b3462
PHP
MussabTanveer/custom
/teacher/view_course_profile.php
UTF-8
3,026
2.671875
3
[]
no_license
<?php require_once('../../../config.php'); $context = context_system::instance(); $PAGE->set_context($context); $PAGE->set_pagelayout('standard'); $PAGE->set_title("View Course Profile"); $PAGE->set_heading("View Course Profile"); $PAGE->set_url($CFG->wwwroot.'/local/ned_obe/teacher/view_cou...
true
9b6edad88ab2b87b539229781f53d5747892863f
PHP
joegeneq/apc-softdev-it111-07
/application/ampaphil_advanced/backend/models/Client.php
UTF-8
1,943
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "client". * * @property integer $id * @property string $client_lname * @property string $client_fname * @property string $client_mname * @property string $client_company * @property string $client_companyblkno * @property string $c...
true
dccbeeced6ed17718d13860b1246ccbfe6633fc1
PHP
youhey/ConfigReader
/test/ConfigReaderTest.php
UTF-8
2,269
2.6875
3
[]
no_license
<?php /** * ConfigReader file * * PHP 5.2 * * ConfigReader is a rapid configuration loader for PHP like CakePHP\PhpReader. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /**...
true
26ce2661168315adb36bab8449af92f12ee2711f
PHP
loclamor/mondophoto
/class/Site.php
UTF-8
56,779
2.53125
3
[]
no_license
<?php class Site { private $title = array(); private $head = array(); private $menu = array(); private $filariane = array(); private $content = array(); private $foot = array(); private $microtimeStart = 0; private $microtimeEnd = 0; public $page = null; public $id = null; public $couleur; public f...
true
80def15836b373cd9988fcfd9ab58506d9452e25
PHP
pouano/pineapple
/app/Controller/GroupsController.php
UTF-8
1,959
2.75
3
[]
no_license
<?php class GroupsController extends AppController { function beforeFilter() { //parent::beforeFilter(); //$this->Auth->allow(); } public function index() { $groups = $this->Group->find('all'); $this->set(compact('groups')); } //カテゴリーの追加 public functi...
true
3bf3409ad7bad2d067e46a6b7b9434b6f679b9a7
PHP
MinifyJS/MinifyJS
/jsmin/nodes/comma_expression.php
UTF-8
3,683
3.046875
3
[]
no_license
<?php class CommaExpression extends Expression { public function __construct(array $entries) { $this->nodes = $entries; parent::__construct(); } public function visit(AST $ast, Node $parent = null) { $nodes = array(); $last = count($this->nodes) - 1; $prev = null; foreach($this->nodes as ...
true
b64a4d11b81803a2c24ed3de3e7056c49bbbcea6
PHP
may-tech/php_basic
/ch05/hereDocument.php
UTF-8
458
2.921875
3
[]
no_license
<?php $name="kanndahanako"; $height=154.6; $age=36; $age2=37; //ヒアドキュメント $output=<<<EOF {$name}さんの身長は{$height}cmです。<br> 年齢は{$age}歳です。<br> あと1ヶ月で{$age2}歳になります。 //↓スペース開けない! EOF; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> </head> <body> <?php ...
true
b182fc1dfe802c8c13c14a570273c8d3fa44b7df
PHP
LanternCode/RPG-Session-Hub
/application/models/SessionModel.php
UTF-8
3,617
2.53125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class sessionModel extends CI_Model { function __construct(){ parent::__construct(); } function Remove_user( $user_id, $sessionId ) { $sql = "DELETE FROM participants WHERE id = $user_id AND session_id = $sessi...
true
b93eb578594e58fad8854ebe63b5905ecb0cff84
PHP
solarphp/core
/Solar/Test/Suite.php
UTF-8
16,551
2.890625
3
[]
no_license
<?php /** * * Class for running suites of unit tests. * * Expects a directory structure like this ... * * Test/ * Solar.php -- Test_Solar * Solar/ * Base.php -- Test_Solar_Base * Uri.php -- Test_Solar_Uri * Uri/ * Action.php --...
true
f295e8558dcf5ec9e720cbbf9e257ca360dc8173
PHP
ervszz/WebTekCompletion
/links/finals/links/phpSample/Continue.php
UTF-8
672
2.671875
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <?php include 'includes/header.php' ?> <style> body { background-color: #bbdefb; } .button{ background-color:#ff8a80; text-decoration:none; border-radius: 3px; } </style> ...
true
65fb006f7541f84f7990c39b622ab7d89d21178f
PHP
akshaypjoshi/swoft-component
/src/websocket-server/test/testing/User2Middleware.php
UTF-8
865
2.609375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace SwoftTest\WebSocket\Server\Testing; use Swoft\Bean\Annotation\Mapping\Bean; use Swoft\WebSocket\Server\Contract\MessageHandlerInterface; use Swoft\WebSocket\Server\Contract\MiddlewareInterface; use Swoft\WebSocket\Server\Contract\RequestInterface; use Swoft\WebSocket\Server\Co...
true
92daba9d42ffbc038c0b4f12152ada3c704bf8c3
PHP
Mostafa20946/rent-a-car-restful-api
/app/Http/Controllers/RentController.php
UTF-8
1,426
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests\Rents\CreateRequest; use App\Http\Requests\Rents\ListRequest; use App\Repositories\Rents; use App\Traits\ApiUtils; use Illuminate\Http\JsonResponse; class RentController extends Controller { use ApiUtils; protected $rentsRepository; public fun...
true
518e2db04dd66fac2c40596862b4d25255c0b399
PHP
dimati9/php2
/2/product.php
UTF-8
403
3.734375
4
[]
no_license
<?php abstract class product { protected $name; public $price; protected static $income = 0; function __construct($name, $price = 0) { $this->name = $name; $this->price = $price; } abstract public function sell($quantity); public function print_income() { ...
true
a9f577dc0c98a148294e1c2f3dc697621c572314
PHP
winframework/winphp
/tests/www/app/Controllers/EmailController.php
UTF-8
516
2.625
3
[]
no_license
<?php namespace App\Controllers; use Win\Controllers\Controller; use Win\Services\Mailer; use Win\Services\Alert; use Win\Templates\Email; use Win\Templates\View; class EmailController extends Controller { public function index() { $mailer = Mailer::instance(); $data = ['name' => 'John', 'subject' => 'A', 'ph...
true
1eaf1c551d3338fc0aa16fae02a831e0fcf5b94c
PHP
islamcrouch1/LMS-App
/app/CourseOrder.php
UTF-8
1,222
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use App\Course; use App\User; use App\Country; use Illuminate\Database\Eloquent\Model; class CourseOrder extends Model { protected $fillable = [ 'user_id', 'course_id', 'total_price' , 'orderid' , 'status', 'user_name' , 'country_id' , 'wallet_balance', ]; public function...
true
03a62ec5b025fbd17410f2b0aeea8c9caecc4f7b
PHP
maxantipov/chessRRPairing
/funciones/torneo.php
UTF-8
1,451
2.90625
3
[]
no_license
<?php if(isset($_GET['datos'])) { include ("../db/db_config.php"); $aux_datos = $_GET['datos']; $aux_jugadores = $_GET['jugadores']; $jugadores = explode(",",$aux_jugadores);//array con los datos, [0]->nombre del torneo, [1..n]->jugadore $nombreTorneo = $jugadores[0]; $numPlayers = count($jugadores)-1; $numRounds = $...
true
764cdc915b29af119fd23fb49c1c18c3f6aba736
PHP
botilka/botilka
/src/Infrastructure/StoreInitializer.php
UTF-8
453
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Botilka\Infrastructure; interface StoreInitializer { const TYPE_EVENT_STORE = 'event'; const TYPE_SNAPSHOT_STORE = 'snapshot'; const TYPES = [ self::TYPE_EVENT_STORE, self::TYPE_SNAPSHOT_STORE, ]; /** * @throws \RuntimeException if t...
true
c55d9b861f16f6f9b3c31dad9e010a6fd1792da8
PHP
IsaacDanielReyna/seniorproject
/api/start.php
UTF-8
1,662
2.765625
3
[]
no_license
<? function InvalidRequest($request) { $data = new stdClass(); $data->result = false; $data->messages[] = "Invalid Request: option=". $request->option .", task=". $request->task; return json_encode($data); } if ($_POST) { $request = (object) $_POST; //if(isset($request->token)) require_once('jw...
true
c2dee5fb6435c787bb113311b418dc77c737c038
PHP
phonetworks/pho-compiler
/src/Pho/Compiler/Transcoders/TranscoderFactory.php
UTF-8
846
2.625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Pho package. * * (c) Emre Sokullu <emre@phonetworks.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Pho\Compiler\Transcoders; use Pho\Compiler\Prototypes\PrototypeInterface; use...
true
c6c1d624f39cc45606a4dad7ace67218ec6f57d4
PHP
arckhipov/PHD
/test_duty.php
UTF-8
3,962
2.8125
3
[ "MIT" ]
permissive
<?php require "db.php"; require "functions.php"; ?> <?php $month = array( 1 => 'January', 2 => 'February', 3 => 'March', 4 => 'April', 5 => 'May', 6 => 'June', 7 => 'July', 8 => 'August', 9 => 'September', 10 => 'October', 11 => 'November', 12 => 'December' ); $monthCnt ...
true
8e841bc2ab5abc2a3c3a9f7cf4104e71d1ccd59e
PHP
eborges78/BetsGame
/src/Responder/HomeResponder.php
UTF-8
933
2.640625
3
[]
no_license
<?php /** * Emmanuel BORGES * contact@eborges.fr */ namespace App\Responder; use App\Domain\Entity\CompetitionEntityInterface; use Symfony\Component\HttpFoundation\Response; use Twig\Environment; class HomeResponder implements HomeResponderInterface { /** * @var Environment */ private $engine; ...
true
d0fc7e8b7bff61285361551e6d5cb728981227dc
PHP
sudo-make-me-a-sandwich/Hack2012
/framework/Presenter/View/Xml.inc.php
UTF-8
2,343
2.65625
3
[]
no_license
<?php /** * This class is the View for the Xml Presenter and provides data storage and retreval for the presenter. * * @package LSF * @author Label Media Ltd * $Id: Smarty.inc.php 57 2010-04-08 11:34:17Z tom $ */ class LSF_Presenter_View_Xml { private $_document, $_element; public function __const...
true
e85f5a466ae2e52a77c8cac06fefdffa4510f6c2
PHP
d0kusounko/VRKohnan
/Server/VRKohnan/Action/GameAction.php
UTF-8
1,012
3.0625
3
[]
no_license
<?php namespace VRKohnan\Action; /** * ゲームクライアントからのリクエスト処理用Action基底. * * @author dO */ abstract class GameAction extends \VRKohnan\Action\Action { /** リクエストデータ */ private $request = array(); public function __construct($controller) { parent::__construct($controller); // リクエストデータをバイナリから連想配列に変換. if (...
true
1e09e3bb1b9bb0c10a43a8535748a6f8e3888ed7
PHP
Mohammad-Alavi/Samandoon-v2
/app/Containers/Authentication/Exceptions/UsersPhoneIsNotConfirmedException.php
UTF-8
451
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Containers\Authentication\Exceptions; use App\Ship\Parents\Exceptions\Exception; use Symfony\Component\HttpFoundation\Response; class UsersPhoneIsNotConfirmedException extends Exception { /** * @var int */ public $httpStatusCode = Response::HTTP_CONFLICT; /** * @var ...
true
c324be30b2363aa3e34baa19e845b9e84380b409
PHP
hexarchium/core-domain
/features/bootstrap/DomainFeatureContext.php
UTF-8
1,670
2.53125
3
[ "MIT" ]
permissive
<?php use Helpers\Repository\DomainRepository; use Hexarchium\CoreDomain\Model\Domain\Events\DomainCreated; use Hexarchium\CoreDomain\UseCase\CreateDomain\UseCase; use PHPUnit_Framework_Assert as Assert; /** * Copyright */ class DomainFeatureContext implements \Behat\Behat\Context\Context { /** @var UseCase */ ...
true
f648d976e5b1e2da58eef2fa41f648499c9aec32
PHP
BMNTeam/agroclimate_backend
/admin/actions/classes/Decades.php
UTF-8
7,451
2.90625
3
[]
no_license
<?php include('TP.php'); include_once('Helpers.php'); class Decades { private $table_name = "ClimateDataDecade_TP"; private $db; private $helpers; public function __construct($db) { $this->db = $db; $this->helpers = new Helpers(); //$this->migrate(); //$this->inse...
true
5d400923fa129eb7be66e3599172cef7a1a921b7
PHP
yavuzceliker/PHP
/proje/12c/silme1.php
UTF-8
840
2.6875
3
[]
no_license
<?php if($_POST["btn"]=="Sil") { $secilen=$_POST["secilen"]; $sql=mysql_query("delete from uyeler where kullaniciadi='$secilen'"); if($sql) echo "silindi"; else echo "silme hatası"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html ...
true
6cdf2f98e2cc7ee23dcbaae27ffaa31dd06f68f5
PHP
bradfeehan/rainmaker
/lib/BradFeehan/Rainmaker/Logging/SanitizationProcessor.php
UTF-8
2,934
2.984375
3
[ "MIT" ]
permissive
<?php namespace BradFeehan\Rainmaker\Logging; use Monolog\Logger; use RecursiveArrayIterator; use RecursiveIteratorIterator; use Zend\Stdlib\ArrayObject; /** * A Monolog Processor which hides sensitive information in log output * * This Processor uses a heuristic to identify data in the $context * array which mi...
true
ee3e4fd8ade7deda2423e1659fb3ee856d4ca557
PHP
rulin/databaseDriver
/classes/databaseDriver.php
UTF-8
1,078
2.953125
3
[]
no_license
<?php class databaseDriver { protected static $instances = array(); private function __construct() {} private function __clone() {} public static function getInstance($instanceKey = 0, $dbOptions = false) { if (isset(self::$instances[$instanceKey])) { return(self::$instances[$instanceKey]); } el...
true
73a275979d335f8b86945f00602f48619a506912
PHP
sanjeevpuspam/doctor-appointment-leo-test
/index.php
UTF-8
3,910
2.53125
3
[]
no_license
<?php /** * Plugin Name: Doctor's Appointment * Plugin URI: https://github.com/sanjeevpuspam/doctor-appointment-leo-test * Description: Leo Doctor's appointment booking sample code with the shortcode <strong>[bookappointment]</strong> * Version: 0.1 * Text Domain: * Author: Sanjeev Puspam * Author URI: https://...
true