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
4e1541ada957ec10c3f1fb28aa1407dc9b061134
PHP
narshon/etagsms
/protected/modules/auditTrail/models/.svn/text-base/AuditTrail.php.svn-base
UTF-8
4,366
2.625
3
[]
no_license
<?php /** * This is the model class for table "tbl_audit_trail". */ class AuditTrail extends MetaActiveRecord { /** * The followings are the available columns in table 'tbl_audit_trail': * @var integer $id * @var string $new_value * @var string $old_value * @var string $action * @var string $model * @...
true
20a2267dc41f03867e74c06bfc24ee5f5bba7d68
PHP
phn210/weba-demo
/app/models/Brand.php
UTF-8
839
3.1875
3
[]
no_license
<?php class Brand { private $db; public function __construct() { $this->db = new Database; } public function findById($brand_id) { // Prepare statement $this->db->query('SELECT * FROM brands WHERE brand_id = :brand_id'); // Bind parameters with variables $this-...
true
84f2c17d90cdbdf895c6aefc38f8f348b0567a99
PHP
Skai2104/boostorder-ecommerce-demo
/index.php
UTF-8
7,063
2.84375
3
[]
no_license
<?php include "includes/header.php"; // Define the username, password and URL to access the API define("API_USERNAME", "ck_2682b35c4d9a8b6b6effac126ac552e0bfb315a0"); define("API_PASSWORD", "cs_cab8c9a729dfb49c50ce801a9ea41b577c00ad71"); define("API_URL", "https://mangomart-autocount.myboostorder.com/wp-json/wc/v1/pro...
true
9426bed72f3955f26d4222f897233ec7a1598f0a
PHP
kirkbushell/eloquence
/src/Behaviours/Sluggable.php
UTF-8
4,817
3.125
3
[ "MIT" ]
permissive
<?php namespace Eloquence\Behaviours; use Eloquence\Behaviours\Slug; use Eloquence\Exceptions\UnableToCreateSlugException; use Illuminate\Support\Str; trait Sluggable { /** * When added to a model, the trait will bind to the creating and created * events, generating the appropriate slugs as necessary. ...
true
f66ad3f428a47ecbd4083eaae18733ee9c23d8db
PHP
davidra24/proyectopracticas
/app/Http/Controllers/PracticeController.php
UTF-8
2,499
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Practice; use Illuminate\Http\Request; use App\viewPractice; class PracticeController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ private $practice; public function __construct(Pra...
true
f4bc88531b6541130e7bc1ea27176885d127b9af
PHP
glavposhtamt/photo
/app/Models/Institution.php
UTF-8
666
2.65625
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. */ /** * Description of Iinstitution * * @author sergey */ class Institution extends ActiveRecord\Model{ public stati...
true
df84389b40e65664cd323e01e7a00be977d38f9d
PHP
krishna2nd/icehrm
/src/classes/RestApiManager.php
UTF-8
9,148
2.703125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php class RestApiManager{ private static $me = NULL; var $endPoints = array(); private function __construct(){ } public static function getInstance(){ if(empty(self::$me)){ self::$me = new RestApiManager(); } return self::$me; } public function generateUserAccessToken($user){ $da...
true
2cc3ee691917f0e7d61420938889ae1d6aa4192a
PHP
MaximePlancke/Objectifs
/ressources/widgets/auto_completion.php
UTF-8
839
2.8125
3
[]
no_license
<?php try { $bdd = new PDO('mysql:host=localhost;dbname=site_objectifs', 'root', 'root'); } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } if(isset($_GET['term'])) { $term = htmlentities($_GET['term']); // protection } $array = array(); $request = $bdd->prepare...
true
c69e80e5f79e45f1ad4a90f9fea812ddfcc5cacf
PHP
Webmasters-Europe/gebrauchtwagenhandel-template
/Persitable.php
UTF-8
284
2.96875
3
[]
no_license
<?php trait Persitable { /** * * @param string $path * @return void */ public function save($path = "data/entries.txt"): void { $cars = self::getCars($path); $cars[] = $this; file_put_contents($path, serialize($cars)); } }
true
c84a8bc0afcc29bbe0ffeba3770851c0145cf7c2
PHP
askovorodka/skins
/src/AppBundle/Utils/DateTimeFilterTrait.php
UTF-8
492
2.640625
3
[]
no_license
<?php namespace AppBundle\Utils; use Symfony\Component\HttpFoundation\Request; trait DateTimeFilterTrait { /** * @var \DateTime */ public $dateFrom; /** * @var \DateTime */ public $dateTo; public function getFilterFromRequest(Request $request) { $this->dateFrom ...
true
6fa98b35050b9a9bdebcc01bc660e0e52de7850d
PHP
RavinSG/Kinder-Smart
/classes/KinderParent.php
UTF-8
1,248
3.0625
3
[]
no_license
<?php require_once '../include/pdo.inc.php'; class KinderParent{ private $id; private $name; private $nicNo; private $email; private $address; private $telNo; private $mobileNo; private $children = array(); function __construct($id) { global $pdo; $stmt = $pdo->...
true
1eda234bb2b101439538a55a678001feb8acd970
PHP
TRowbotham/PHPDOM
/src/Parser/Parser.php
UTF-8
623
2.90625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rowbot\DOM\Parser; use Rowbot\DOM\Support\CodePointStream; abstract class Parser { /** * @var \Rowbot\DOM\Support\CodePointStream */ protected $inputStream; /** * Constructor. * * @return void */ public function __construct() ...
true
3ae965c83e0918ce923e246752403fca258fdd25
PHP
athula11wasala/techcs
/app/Equio/Exceptions/EquioException.php
UTF-8
366
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Equio\Exceptions; /** * Class EquioException * @package App\Equio\Exceptions */ class EquioException extends \Exception { /** * EquioException constructor. * @param string $message * @param int $code */ public function __construct($message, $code = 0) { ...
true
075fd5be00b73079b83c737bf194a83827d5be8a
PHP
sanrentan/sanrentan
/app/Console/Command/AutoExpectationShell.php
UTF-8
9,270
2.71875
3
[]
no_license
<?php App::import('Vendor', 'simple_html_dom'); //自動で予想するシェル class AutoExpectationShell extends AppShell { public $uses = array('Race','RaceCard','Expectation'); public function getOptionParser() { $parser = parent::getOptionParser(); $parser->addOption( 'race_id', array( ...
true
28c56fd67d300a26c96d7e9fa0133e1f25ad1ade
PHP
DavidOsp/Proyecto-Panther
/j4panther/rest/model/business/docente.php
UTF-8
2,958
2.90625
3
[ "Apache-2.0" ]
permissive
<?php /** * <b>Descripcion:</b> Clase que <br/>contiene la descripcion de los docentes * <b>Caso de Uso:</b> PANTHER-Seguridad <br/> * * @author Jesus David Ospina <a href = "mailto:j.davosp@gmail.com">j.davosp@gmail.com</a> */ class Docente { /** * Identificador de la clase * * @var number i...
true
f9e2828ba7754eda4f776d99b2dd09d14029d6e3
PHP
phpstan/phpstan-src
/tests/PHPStan/Rules/Comparison/data/docblock-assert-equality.php
UTF-8
734
2.96875
3
[ "MIT" ]
permissive
<?php namespace DocblockAssertEquality; use function PHPStan\Testing\assertType; /** @phpstan-assert-if-true =int $x */ function equalsRandomInteger($x) { return is_int($x) && $x === random_int(0, 10); } /** @phpstan-assert-if-true int $x */ function isAnInteger($x) { return is_int($x); } function foo($x): void ...
true
5b696a2e69f1fb5633715e7cd8379f2afd6e4f4f
PHP
thom855j/php-filesystem
/src/Cache.php
UTF-8
3,443
3.140625
3
[ "MIT" ]
permissive
<?php namespace PHP\Filesystem; /** * Cache * * http://github.com/inouet/file-cache/ * * A simple PHP class for caching data in the filesystem. * * License * This software is released under the MIT License, see LICENSE.txt. * * @package Cache * @author Taiji Inoue <inudog@gmail.com> */ class Cache { ...
true
bf3ea9b0feb29057b8c6255be253619cb2b4b0ed
PHP
maxwelloconnor/tach
/profile-create.php
UTF-8
14,192
2.828125
3
[]
no_license
<?php /* Group 22 - Miguel Macciocchi, Keith Mathur, Max O'Connor, Liam Stachiw Date: October 20, 2017 Course: WEBD3201 */ include "header.php"; if(isset($_SESSION['user'])) { isDisabled(trim($_SESSION['user']['profile_status'])); } //Output and error messages initialized as empty strings $profile_created = false...
true
5dc56e82d478d10fa0bfa8ad5d13542fe183a0cd
PHP
anmolnehru/CS564-final
/website/sellers.php
UTF-8
3,017
2.8125
3
[ "MIT" ]
permissive
<?php $name = $_GET["seller_name"]; ?> <html> <title> Sellers </title> <h3> Welcome Seller : <?php echo $name;?></h3> <body> <form action="list_page.php"> <fieldset> Type Search Query: <input type="text" name="search"> <select name="stype"> <option value="author">Author</option> <option value="book">Boo...
true
37962e12bac85f6c8076cdabe56acab5b58a59d0
PHP
HtunHtunHtet/php-oop
/recap/LaptopComputer.php
UTF-8
568
3.203125
3
[]
no_license
<?php require_once ('Computer.php'); require_once ('./Interfaces/LapComputerInterface.php'); class LaptopComputer extends Computer implements LapComputerInterface { use ComputerTrait; private bool $hasScreen; public function __construct(string $cpu, string $hardDisk, string $ram, bool $hasUSB, bool $ha...
true
e5fcda18c0c3d45e874f90b6fada43a23ef0e4fe
PHP
salmonella-code/sistem-perpustakaan
/controller/bukuController.php
UTF-8
1,608
2.734375
3
[]
no_license
<?php include('./controller/connection.php'); function query($query) { global $con; $result = mysqli_query($con, $query); $rows = []; while ($row = mysqli_fetch_assoc($result)) { $rows[] = $row; } return $rows; } function tambah($data) { global $con; $idBuku = htmlspecialchar...
true
80b2e0afb99c72ec95b422cf9103881b4b383612
PHP
IsaiahN/DigitalCollectionPlate
/classes/session/cc_session.php
UTF-8
9,833
2.5625
3
[]
no_license
<?php if (!defined('CC_INI_SET')) die("Access Denied"); class session { var $ccUserData; var $ccUserBlocked = false; var $config; var $db; var $glob; var $ini; function session() { global $config, $db, $glob, $ini; $this->config = $config; $this->db = $db; $this->glob = $glob; $this->ini ...
true
c8e1ea11c22af0c35d423675444f4f3e31ce8c8f
PHP
Ariwf3/blog-oop
/application/controllers/ChatController.php
UTF-8
2,434
2.859375
3
[]
no_license
<?php namespace Ariwf3\Blog_oop\Application\Controllers; use Ariwf3\Blog_oop\Application\Models\ChatModel; class ChatController { /** * renderChatView * * returns the view "chatView" : Page with the instant messaging with last messages * * @return void */ public function rende...
true
ce53a2233b28bea24a09988cd88e97073c242ace
PHP
jacksoncds/cotgchat
/data/api/faq.php
UTF-8
528
2.734375
3
[]
no_license
<?php class FAQ{ function get(){ require_once('dbconnect.php'); $SQLConnection = Database::Connect(); $query = "SELECT * FROM cotgchat.faq"; $stmt = $SQLConnection->prepare($query); $stmt->execute(); $stmtResult = $stmt->get_result(); $results =...
true
f3c943070727b25b1df36eda6b0c4f842443bb7f
PHP
gilesrussi/tcc
/app/Observers/AnotacaoObserver.php
UTF-8
1,142
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Anotacao; use App\Notificacao; /** * Observes the Users model */ class AnotacaoObserver { /** * Function will be triggerd when a user is updated * * @param Users $model */ public function created(Anotacao $model) { $notificacao = new No...
true
83852a52b61e701b201f81f7e77f8198e6b74e5a
PHP
sawakotaro/hpmanage
/app/service/TagRelationService.php
UTF-8
1,164
2.828125
3
[ "MIT" ]
permissive
<?php class TagRelationService { /** * TAG_RELATIONSテーブルの新規データ挿入 * @param Array $inputs */ public function add($input) { $tagRelation = new TagRelation(); $tagRelation->tag_id = $input["tag_id"]; $tagRelation->image_contents_id = empty($input[...
true
c137548d274f9eb25a7c2cc5fa2e8737d18e62c9
PHP
elle50/Gourmet
/classes/Search.php
UTF-8
2,353
2.546875
3
[]
no_license
<?php include 'Databases.php'; class Search extends Databases { public function restsearch($name, $address, $genre, $country) { $sql = "SELECT * FROM restaurants WHERE rest_name LIKE '%" . $name . "%' OR rest_address LIKE '%" . $address . "%' OR rest_genre LIKE '%" . $genre . "%' OR rest_country LIKE...
true
f0bdabf562115743d0e43d0192449ce5c046db32
PHP
konaka00/remotere
/public_html/counter.php
UTF-8
2,289
3.078125
3
[]
no_license
<?php //元URL https://rmrmrmarmrmrm.hatenablog.com/entry/458740948.html //下記のdocument.writeをjavascriptとして動作させるため header("Content-type: application/x-javascript"); //GETパラメータから動作モードを取得 $mode = $_GET['MODE']; $mode = 1; //総数、当日、前日ファイル指定 $base_path = '/counter/'; $date_all_file = $base_path . 'all.txt'; $date_today_file...
true
1665215ba5bba398d68d5715364d3b9560c1521a
PHP
kristina-trifunovic/airline-ticket-reservation
/add_jet_details_form_handler.php
UTF-8
1,530
2.6875
3
[]
no_license
<?php session_start(); ?> <html> <head> <title>Detalji o avionu</title> </head> <body> <?php if(isset($_POST['Submit'])) { $data_missing=array(); if(empty($_POST['jet_id'])) { $data_missing[]='ID aviona'; } else { $jet_id=trim($_POST['jet_id']); } if(empty($_POST...
true
322766396ba167d9ac3f6bd55894e4a3713556ba
PHP
NIT-Administrative-Systems/lodash-php
/src/Collection/find.php
UTF-8
1,722
3.09375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the SolidWorx Lodash-PHP project. * * @author Pierre du Plessis <open-source@solidworx.co> * @copyright Copyright (c) 2017 */ namespace _; use function _\internal\baseIteratee; /** * Iterates over elements of `collection`, returning the first elem...
true
c2bd9686a4db1ccc6f290fc80f76aea38ecf408c
PHP
Aiyuuu033119/count-divisible
/index.php
UTF-8
515
2.890625
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); $uri = $_SERVER['REQUEST_URI']; $uri = trim($uri, '/'); $index = new compute(); $index->index(intval($_GET['x']),intval($_GET['y']),intval($_GET['p'])); class compute{ public function index($x,$y,$p) { if ($x%$p...
true
4b7bc5041d7ca26e662a37458ac281a935b3a777
PHP
junnyboyqian/junlaravel
/admin/includes/models/cart.model.php
UTF-8
1,713
2.515625
3
[ "MIT" ]
permissive
<?php /* 购物车 cart */ class CartModel extends BaseModel { var $table = 'cart'; var $prikey = 'rec_id'; var $_name = 'cart'; var $_relation = array( 'belongs_to_store' => array( 'type' => BELONGS_TO, 'model' => 'store', 'reverse' => 'has_cart'...
true
031ad594d552901739ee161eba95ac4b7a50e7e6
PHP
geodesicsolutions-community/geocore-community
/src/classes/PEAR/PayPal/Type/DoDirectPaymentRequestDetailsType.php
UTF-8
4,185
2.625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @package PayPal */ /** * Make sure our parent class is defined. */ require_once 'PayPal/Type/XSDSimpleType.php'; /** * DoDirectPaymentRequestDetailsType * * @package PayPal */ class DoDirectPaymentRequestDetailsType extends XSDSimpleType { /** * How you want to obtain payment. */ ...
true
ee50479539a9bcb652ee29649742adbd471afa60
PHP
conorsmith/dublinbikes
/test/Domain/StationTest.php
UTF-8
6,430
2.921875
3
[]
no_license
<?php namespace ConorSmith\Dublinbikes\Test\Domain; use ConorSmith\Dublinbikes\Domain\Station; use ConorSmith\Dublinbikes\Domain\Location; class StationTest extends \PHPUnit_Framework_TestCase { private $station; public function setUp() { $this->id = 8123; $this->number =...
true
867ad5fd604425a8acf3feadb0ae6c7c992964e4
PHP
ap-craft/lovelife_job
/vendors/shells/installer.php
UTF-8
5,766
2.515625
3
[]
no_license
<?php class InstallerShell extends Shell { var $uses = array('Installer'); var $installed_plugins; var $tasks = array(); //レポジトリの場所 var $repository_url = 'http://www.manjuu.com/repository.ini'; function loadTasks() { Configure::write('debug', 0); //設置されているプラグインを取得 $this->installed_plugins =...
true
64e07ecc5a97661ab1a0b8fc3dc899ee45a602cc
PHP
unnibas/waste-management-api
/app/Transformers/DeviceTransformer.php
UTF-8
1,873
2.734375
3
[]
no_license
<?php namespace App\Transformers; use App\Models\Device; use League\Fractal\TransformerAbstract; class DeviceTransformer extends TransformerAbstract { /** * List of resources to automatically include * * @var array */ protected $defaultIncludes = [ // ]; /** * Li...
true
894deccc871502019b99e9c9ea4dd336081cb485
PHP
akhisoni/perth
/includes/classes/Category.class-bk20-2-14.php
UTF-8
7,539
2.59375
3
[]
no_license
<?php class Category { function __construct() { global $itfmysql; $this->dbcon=$itfmysql; } function Get_Category($id) { $sql="select * from itf_category where id='".$id."'"; return $this->dbcon->Query($sql); } function admin_addCategory($datas) { if(!empty($_FILES['image']['name'])){ ...
true
dbca1f4c7b38096d0a933efff671938bc2d5cc40
PHP
lballiot/backendCV
/get/getProjet.php
UTF-8
2,270
2.796875
3
[]
no_license
<?php // Pour tester à la fin de l'url mettre ?id=1 header("Access-Control-Allow-Origin: *"); require_once '../cnx.php'; require_once '../classes/class.Projet.php'; if (isset($_POST['id'])) $_GET['id'] = $_POST['id']; else { if (isset($_GET['id'])) $_POST['id'] = $_GET['id']; } if (isset($_PO...
true
201df4cbd750c13448f8b9d93dfe1c21a1439fde
PHP
bastienjacoud/projet_site
/Includes/ajout_joueuse_equipe.php
UTF-8
2,572
2.875
3
[]
no_license
<aside id="ajout_joueuse_equipe"> <h1 id="titre_ajout_joueuse_equipe"> Ajouter une joueuse à une équipe! </h1> <?php // marche ! if (isset($_POST['boutonSubmit'])) // si le bouton pour ajouter une joueuse à une équipe a été soumis { $nomE=mysqli_real_escape_string($connexion,$_POST['nom_equipe']); $pseudo=mysqli...
true
6d9352eb2e97f320adf233ba32cadf650afea02e
PHP
brianfreytag/ultipro-sdk-php
/src/RequestInterface.php
UTF-8
1,158
2.546875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Ultipro SDK for PHP (Unofficial) Package * * (c) Brian Freytag * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code */ namespace Ultipro; /** * @author Brian Freytag <me@brianfreytag.com> */ interfac...
true
d8f134dff85d4ed0bb68028624d7ae3532682c9d
PHP
initiativaromania/HBP-import
/src/Database/Entity/Tender.php
UTF-8
14,376
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace Hbp\Import\Database\Entity; use DateTimeInterface; use Hbp\Import\Database\Repository\NotFoundException; class Tender { /** @var int */ private $id; /** @var string */ private $procedure = ""; /** @var string */ private $closingType = ""; /** ...
true
5ff5ba1b0bdf054ad764aabcaf508392e050d338
PHP
eversonbittencourt/desafio-backend
/credpago/app/Jobs/CreateOrder.php
UTF-8
1,195
2.515625
3
[]
no_license
<?php namespace App\Jobs; // Models use App\Models\Order; use App\Models\Cart; // Jobs use App\Jobs\CreateCreditCard; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Support\Facades\Bus; class CreateOrder { use Dispatchable; /** * @var array */ private $data; /** * Creat...
true
de774be7e4dd6cff69124660a6bf4f3a427e7501
PHP
six-paths/ical
/src/Sixpaths/ICalendar/Interfaces/PropertyInterface.php
UTF-8
123
2.5625
3
[ "MIT" ]
permissive
<?php namespace Sixpaths\ICalendar\Interfaces; interface PropertyInterface { public function __toString(): string; }
true
408c16a6e62fea340f0ceb29a25383ee00ae0e5e
PHP
dlazerka/phpworktimer
/Trunk/classes/MysqlDB.php
UTF-8
742
2.75
3
[]
no_license
<?php class MysqlDB { var $dbh; function show_last_error() { v(mysql_error($this->dbh)); } function connect($server, $username, $password, $db_name) { $this->dbh = mysql_connect( $server, $username, $password ); // warning was shown return mysql_select_db($db_name); } function close() { mys...
true
c43c1dc8eb22be234ff1565a24807263d103936f
PHP
gspataro/Routing
/src/Routing/Router.php
UTF-8
3,659
2.859375
3
[ "MIT" ]
permissive
<?php namespace GSpataro\Routing; final class Router { /** * Initialize router * * @param RoutesCollection $routes * @param Request $request */ public function __construct( private RoutesCollection $routes, private Request $request ) { } /** * Remove...
true
093b0532ba2f02f0e0cba08aca77e83a13d49aa0
PHP
CleomilsonSales/Controle_Ponto_PHP_JavaScript_Faculdade
/ponto.com/class/registros.class.php
UTF-8
3,475
2.875
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. */ /** * Description of registros * * @author Nen */ include_once 'Conbanco.class.php'; class registros extends Conbanco{ pri...
true
629749b9cf3592030a60d8a29a030bdf21562b28
PHP
kusdiawan/tugas_5_php
/tugas_5_1.php
UTF-8
788
3.3125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Tugas 5 - 1</title> </head> <body> <h1>Operator String</h1> <table border=1> <tr> <th>Input 1</th> <th>Input 2</th> <th>AND</th> <th>OR</th> </tr> <tr> <td>false</td> <td>false</td> <td> <?php echo printf(false && false) ?> </td> <td> <?php echo printf(false...
true
6a8e97d90d46acdd074ee519de3c5890787006c8
PHP
vvvui/vvvui.github.com
/freeForm/php/pc/src/fileSys.php
UTF-8
599
3.015625
3
[]
no_license
<?php namespace fileSys { // readFile function sReadFile ($filename) { $content = ''; if (function_exists('file_get_contents')) { @$content = file_get_contents($filename); } else { if (@$fp = fopen($filename, 'r')) { @$content = fread($fp, filesize($filename)); @fclose($fp); } ...
true
26e959fdcbfd00c2e5cf0420c7ee1ca871368bca
PHP
phpxin/safeport
/src/Server.php
UTF-8
3,943
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lixin65535@126.com * Date: 2016/8/17 * Time: 15:36 */ namespace Phpxin\Safeport ; use \Phpxin\Safeport\SafePortException ; class Server{ private $primaryKeyPath ; //非对称加密pk路径 //这三个值都是被base64编码的 private $mcryptIv = '' ; //特征向量 private $mKey ; priv...
true
14ad8d22d35b69b2d1d87c8bedc4eeca6dad3040
PHP
krishan1988/tutor
/application/controllers/Student.php
UTF-8
5,441
2.671875
3
[]
no_license
<?php class Student extends MY_Controller { public function __construct() { parent::__construct(); // loading the users model $this->load->model('model_users'); $this->load->model('model_student'); // loading the form validation library $this->load->library('f...
true
6c22ad1e26bc52064ee9c03a8b9d1e573abc7c51
PHP
vivek-mishra04/test
/Profiles/wi_class_files/autoMakeLinks.php
UTF-8
265
2.515625
3
[]
no_license
<?php class autoActiveLink { function makeActiveLink($originalString){ // $newString = preg_replace('/[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]/','<a href=\"\\0\" target=\"_blank\">\\0</a>', $originalString); // return $newString; } } ?>
true
1ace8d1005762085fe1cc98194e294a77e7c5b71
PHP
bartekpie3/diceWar
/tests/unit/Domain/Battle/Dice/Value/BlankValueTest.php
UTF-8
535
2.609375
3
[]
no_license
<?php namespace DiceWar\Domain\Battle\Dice\Value; use PHPUnit\Framework\TestCase; class BlankValueTest extends TestCase { /** * @var BlankDiceValue */ private $blankValue; protected function setUp(): void { parent::setUp(); $this->blankValue = new BlankDiceValue; } ...
true
a4958c847b3eba8582afbdc405b4579bc3391b31
PHP
kdes70/my-shop.lok
/www/components/registration/functions.php
UTF-8
3,234
2.6875
3
[]
no_license
<?php /** * Библиотека функций для системы регистрации * @author IT studio IRBIS-team * @copyright © 2012 IRBIS-team */ ///////////////////////////////////////////////////////// /** * Генерация страницы ошибки при доступе вне системы */ if(!defined('IRB_KEY')) { header("HTTP/1.1 404 Not Found"); ...
true
4b0c1dba2e051ebb8e2558b5c835deb7b442f9d2
PHP
dojet/be-global
/model/MCurl.class.php
UTF-8
5,760
2.90625
3
[]
no_license
<?php /** * curl * * Filename: MCurl.class.php * * @author liyan * @since 2014 5 19 */ class MCurl { const METHOD_GET = 'GET'; const METHOD_POST = 'POST'; protected $url; protected $method; protected $headers; protected $postFields; protected $useProxy; protected $useGZip; ...
true
a2a4bb17119772258b95252247b69ce14b6e74f1
PHP
bartoszrychlicki/LavelAPI
/src/Wsh/LapiBundle/Entity/ApiEntityTrait.php
UTF-8
364
2.546875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Wsh\LapiBundle\Entity; trait ApiEntityTrait { public function populateFromObject(\stdClass $object) { foreach($object as $key => $value) { $methodName = 'set'.ucfirst($key); if(method_exists($this, $methodName)) { $this->$methodName($value); ...
true
d053f55acd022bcafae4502c68d36b450634bd80
PHP
Magarusu/Magento_Import_Configurations
/app/code/community/Pragmatic/Configuration/Model/Import/Block.php
UTF-8
3,115
2.65625
3
[]
no_license
<?php /** * CMS Block Import Model * * @category Pragmatic * @package Pragmatic_Configuration */ class Pragmatic_Configuration_Model_Import_Block extends Mage_Cms_Model_Block { const CMS_BLOCKS_FILE_NAME = 'cms_blocks'; const CMS_BLOCKS_IDENTIFIER_ERROR = 'Please enter a valid XML-identi...
true
d59f3e89c36358e811d9fd1f1c3a1626fe3f7fc5
PHP
mick73117/Savoie_Trail
/src/Controller/HomeController.php
UTF-8
1,915
2.671875
3
[]
no_license
<?php namespace App\Controller; use PDO; use App\Entity\Trails; use Symfony\Component\DomCrawler\Crawler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; class HomeController extends AbstractController {...
true
831bd46b8345c0ac6b7452cef33b39d0c5fab8bf
PHP
jorgehs91/magento-learning-product-sellers
/Api/ProductSellerItemRepositoryInterface.php
UTF-8
1,850
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace Learning\ProductSellers\Api; interface ProductSellerItemRepositoryInterface { /** * @param \Learning\ProductSellers\Api\Data\ProductSellerItemInterface $productSellerItem * @return \Learning\ProductSellers\Api\Data\ProductSellerItemInterface * @throws \Magen...
true
d1b414b360148eb3d1d9bbfd3f382dca02ba52a5
PHP
kenxlaravel/PHPMVC
/include/classes/class_GroupingPage.inc.php
UTF-8
13,641
2.78125
3
[]
no_license
<?php /** * Class GroupingPage */ class GroupingPage extends Page { /** * Current page type */ const TYPE = 'grouping'; /** * Constant used to identify the parent's current page that is being executed */ const PARENT_TYPE = 'category'; /** * Constant ...
true
7fec9dba17563a7d9db5ad4e8b014c85f3912ed5
PHP
FernandoGomezS/Control-Presupuesto
/database/migrations/2018_02_20_193228_create_budgets_table.php
UTF-8
1,036
2.671875
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBudgetsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('budgets', funct...
true
79d7126c04afb866a3c4f6f9b20fdd0cb1ece3ab
PHP
illiaholub/php-tasks
/basic-tasks/14.php
UTF-8
412
2.890625
3
[]
no_license
<?php /** * TASK #14 : Задана переменная $foo = 'bar'; Создать переменную bar, * в которой будет храниться число 10. Вывести число 10, * используя только переменную $foo (не опечатка). */ $foo = 'bar'; $bar = 10; echo $$foo; ?>
true
fc22b1b1cf1042f9f38053fc5b3674f7505dc0fb
PHP
Neur0toxine/pock
/src/Comparator/ComparatorInterface.php
UTF-8
444
3.0625
3
[ "MIT" ]
permissive
<?php /** * PHP 7.3 * * @category ComparatorInterface * @package Pock\Comparator */ namespace Pock\Comparator; /** * Interface ComparatorInterface * * @category ComparatorInterface * @package Pock\Comparator */ interface ComparatorInterface { /** * Compare two values. * * @param mixed ...
true
e5263c701e42ec94a51a5a2c8c6c5f5cdef0c1fb
PHP
MrBin99/SatellysReborn
/application/Modeles/Population/Enseignant.php
UTF-8
889
2.921875
3
[ "Apache-2.0" ]
permissive
<?php namespace WS_SatellysReborn\Modeles\Population; use WS_SatellysReborn\Modeles\Population\Adresse\Adresse; /** * Représente un enseignant. * @package WS_SatellysReborn\Modeles\Population */ class Enseignant extends Personne { /** * Créé un nouvel enseignant. ...
true
e693efca8bbb9399856d558b07b21d44e4d3ca62
PHP
sounboul/sim-promotion-2021
/src/Form/Manager/Module/CatalogManager.php
UTF-8
2,033
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Form\Manager\Module; use App\Entity\Core\Module; use App\Entity\Core\Website; use App\Entity\Module\Catalog\Catalog; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Form\Form; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; /** * Ca...
true
3d178f14a91769a550002d20bc8678f7774c554d
PHP
CodingWorker/enhancingProgram
/PHP/codes/yuyan_cankao/171.php
UTF-8
77
2.53125
3
[]
no_license
<?php class MyInterator implements Iterator{ } var__dump(new MyInterator);
true
3391dde979bd7a46e6598e52dbb6d061ee914a51
PHP
Fausto-Castillo/Manaos-Libre
/html/classes/Producto.php
UTF-8
15,543
3.296875
3
[]
no_license
<?php class Producto { private $id; private $id_usuario; private $name; private $descripcion; private $precio; private $ciudad_id; private $fecha; private $categoria_id; private $valoracion = 0; private $is_usado = 0; private $meses_uso; private $estado = 1; privat...
true
85692c2719eb8419d58f165135e6a207af2f4333
PHP
xiayiyongphper/merchant
/service/components/shoppingcart/SpecialKillerShoppingCart.php
UTF-8
916
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by Jason Y. Wang * Author: Jason Y. Wang * Date: 2017/8/16 * Time: 11:10 */ namespace service\components\shoppingcart; use service\components\Tools; class SpecialKillerShoppingCart implements ShoppingCartInterface { public $wholesalerId; public $customerId; public $products; ...
true
571a9876b15b1a09ef3c561deb4d3d69e37eee7d
PHP
alexhee87/Elktest
/class/JCLY/functions.php
UTF-8
739
2.9375
3
[]
no_license
<?php function connectToDB() { try { return $pdo = new PDO('mysql:host=127.0.0.1;dbname=mytodo', 'root', ''); } catch (PDOExceotion $e) { die($e->getMessage()); } } function insert($table, $rows, $values) { $params = rtrim(", ", str_repeat("?, ",...
true
905748de2cdbb3d318975821b4f0fc33469ba2d5
PHP
georgeCherry02/DnD
/inc/enums/SpellRangeTypes.php
UTF-8
362
2.84375
3
[]
no_license
<?php final class SpellRangeTypes extends TypedEnum { public static function Range() { return self::_create(1); } public static function Touch() { return self::_create(2); } public static function Self() { return self::_create(3); } public function getClassDisplayName() { ...
true
b8f4363f6dfe1ef93270d6bc415979fa2d2de6e3
PHP
TheLarkInn/v8js
/samples/test_method.php
UTF-8
1,280
3.1875
3
[ "MIT" ]
permissive
<?php // Test class class Testing { public $foo = 'ORIGINAL'; private $my_private = 'arf'; // Should not show in JS side protected $my_protected = 'argh'; // Should not show in JS side function mytest($a, $b, $c = NULL) { var_dump(func_get_args()); } } $a = new V8Js(); $a->myobj = new Testing(); $a->execute...
true
2ea32b3dc3821f65b12560322bc12cfba7f5679e
PHP
ngohuunhut/laravel-helper
/src/Scripts/ResetComposer.php
UTF-8
457
2.515625
3
[ "MIT" ]
permissive
<?php namespace LaravelHelper\Scripts; use LaravelHelper\Interfaces\IRunnable; class ResetComposer extends BaseScript implements IRunnable { public $message = 'Resetting composer.json file'; protected $filePath = '/composer.json'; protected $isJson = true; protected function prepare() { ...
true
ac5041fbb3bf96fd8929c1677a8fba8847ad87ad
PHP
mpn6/assignment-board
/markcomplete.php
UTF-8
859
2.53125
3
[]
no_license
<?php session_start(); include 'init.php'; $taskid= $_GET["id"]; try{ $query = "SELECT * FROM is218proj.todos WHERE `id` = :id"; $statement = $conn->prepare($query); $statement -> bindValue(':id', $taskid); $statement -> execute(); $results = $statement->fetch(); $statement->closeCursor...
true
ceb484e06c60bd1fffaf73b8be4344b15b424ef8
PHP
danousna/lefil
/app/Article.php
UTF-8
1,701
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Searchable; use App\User; class Article extends Model { use Searchable; public function isPublished() { return $this->status == "published"; } public function shouldBeSearchable() { return $this-...
true
15dbb24137387e9a584872fe201615b4ebddf5d6
PHP
brunoferreiras/learning-yii2
/views/exercise/people.php
UTF-8
362
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\widgets\LinkPager; ?> <h1>Pessoas</h1> <hr> <ul> <?php foreach($people as $person) : ?> <li> <?= $person->name . ' ' . $person->email ?><br> <small><?= $person->city . ' (' . $person->state . ')'?></small> </li> <?php endforeach; ?> </ul> <?= LinkPager...
true
37b0ae434a46c1cd2e1156dca0080f581b60eae2
PHP
sanyasim/vehicle
/src/AppBundle/Action/VehicleSpecial.php
UTF-8
2,020
2.53125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Action; use Doctrine\Common\Persistence\ManagerRegistry; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Response; use Doctrine\ORM\EntityManagerInterface; use AppBundle\Entity\{Vehicle, Car, ...
true
35c15aec6100335f364d875bc54b2003b011bf2c
PHP
delboy1978uk/shopping-cart
/src/ShoppingCartInterface.php
UTF-8
361
2.84375
3
[ "MIT" ]
permissive
<?php namespace Del\Cart; use Del\SessionManager; interface ShoppingCartInterface { public function __construct(SessionManager $sessionManager); public function addItemToCart(ItemInterface $item): void ; public function removeItemFromCart(ItemInterface $item): void; public function getItems(): array;...
true
97f03504e26a415c81797e54b21ef47850c6fc07
PHP
matrozov/yii2-amqp
/src/Command.php
UTF-8
1,127
2.640625
3
[ "MIT" ]
permissive
<?php namespace matrozov\yii2amqp; use Yii; use yii\console\Controller; use yii\helpers\Console; /** * Class Command * @package matrozov\yii2amqp * * @property Connection $connection * @property int|null $timeout * @property int|null $max_message */ class Command extends Controller { /* @var Connectio...
true
cb5f74ffa1bf688f8ece284b84f69b477a629421
PHP
xinzhao/casseCroute
/class/Modele/Calendrier.class.php
UTF-8
1,211
3.25
3
[]
no_license
<?php namespace modele; /** * * * interface gérant le calendrier qui regroupe les jours possibles pour commander * cela permet de gérer les vacances et les jours fériés ainsi que les week ends * */ interface Calendrier{ /** * retourne un booléen pour savoir si des sandwich seront disponibles * ce jour...
true
4af85079930889afc8e34ae161649aec88b18de9
PHP
ericranzani/CRUD-PHP
/Versão 3/Consulta/consulta_cidade.php
UTF-8
625
2.78125
3
[ "MIT" ]
permissive
<?php error_reporting(0); $db = mysql_connect ("127.0.0.1", "root", "vertrigo"); mysql_select_db("teste",$db); $result = mysql_query("select * from cidade", $db); echo "<center><table border='1'> <tr> <td><h1>Codigo</h1></td> <td><h1>Cidade</h1></td> <td><h1>UF</h1></td> </tr>"; // Escreve resultado até que não haja...
true
ceb62a748d160d12ff87e04876d2055a03db77a7
PHP
sreecharan-m/task-0
/d-task3/logint3.php
UTF-8
2,030
2.515625
3
[]
no_license
<?php $incorrect=''; if(isset($_POST['submit'])) { $conn=mysqli_connect('localhost','shaun','test1234','task3'); //check conn if(!$conn) { echo "connection error"; } $pwd=$_POST['password']; $usr=$_POST['username']; $sql= "SELECT id,name,use...
true
7ec3f550ef08496a0b8228a507b1336ed3ad48df
PHP
nta228/lab-2
/CodeSnipet15.php
UTF-8
103
2.546875
3
[]
no_license
<?php $Month = 86400 + time(); setcookie('Name', 'Jerry', $Month); echo "The cookie has benn set." ?>
true
ab827b5d0d9df544ab46a2efbb6020f2d102be05
PHP
mamby-camara/portfolio
/contactAction.php
UTF-8
614
2.546875
3
[ "MIT" ]
permissive
<?php if(!isset($_GET['nom'], $_GET['email'], $_GET['numero'], $_GET['message']) || empty($_GET['nom']) || empty($_GET['email']) || empty($_GET['numero']) || empty($_GET['message'])) { echo('Veuillez remplir tous les champs du formulaire.'); exit; } $name = $_GET['nom']; $email = $_GET['email']; $numero = $...
true
da92bacaa61b18f2f4cfa32b95660e34a70c1360
PHP
simplon-solennB/simplon-solennB.github.io
/calendar/verif.php
UTF-8
1,592
2.75
3
[]
no_license
<?php include ("pdo.php"); $errorMessage = ''; // if(!empty($_POST['summary']) && !empty($_POST['dStart']) && !empty($_POST['dEnd']) // && !empty($_POST['mailCreator'])) { // Si les champs ne sont pas vides if(isset($_POST['summary']) && isset($_POST['dStart']) && isset($_POST['dEnd']) && isset($_POST['mailCreat...
true
4a38375a198284848dd907c53b7a4dce5a26c548
PHP
spiral13/agri-alert-project
/src/AppBundle/Controller/AnimalController.php
UTF-8
5,293
2.5625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Controller; use AppBundle\Entity\Animal; use AppBundle\Entity\Species; use AppBundle\Form\AnimalType; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use...
true
cce9651a0b2eeebc6d29247ed0da818adc34de8a
PHP
Alexsandrogms/crud-pdo
/src/model/Fornecedor.php
UTF-8
807
2.96875
3
[ "MIT" ]
permissive
<?php class Fornecedor { private $name; private $email; private $cnpj; private $state; private $img_url; public function getName() { return $this->name; } public function setName(string $name) { $this->name = $name; } public function getEmail() { return $this->email; } pub...
true
110b967a0caddc8e6f0b2cb3677490285323c267
PHP
JohnDeignan/CS490
/BACK_END/testcase.php
UTF-8
835
2.6875
3
[]
no_license
<?php header('Context-type: application/json'); if(isset($_POST['data'])){ logInfo(); exit(); } ?> <html> <head> <title>Adam Elshoubri</title> </head> <body> <form action ='testcase.php' method = POST> <input type = "hidden" name = "data"> </form> <?php function logInfo(){ mysql_connect('s...
true
6dfd3167ce99d691665c89be7830d32bd2bb0f39
PHP
Zarma13/Web-Bristol
/view/staff/ViewListStudentStaff.php
UTF-8
989
2.9375
3
[]
no_license
<!-- https://css-tricks.com/footable-a-jquery-plugin-for-responsive-data-tables/ --> <h1>Student List</h1> <div class="table-responsive"> <table class="table"> <tr> <th>Last name</th> <th>First name</th> <th>Student number</th> <th>Date of birth</th>...
true
14413428c71554c317787465f83de16c9e76313f
PHP
pologavin/php-study
/php-kafka-study/lib/Producer.php
UTF-8
4,679
2.703125
3
[]
no_license
<?php /** * producer * User: gaojun<hsbodegj@gmail.com> * Date: 2018/11/21 * Time: 下午4:52 */ namespace kafka\lib; abstract class Producer { protected $brokers; protected $brokerVersionFallback = '0.11.0.2'; protected $logLevel = LOG_ERR; protected $logger = RD_KAFKA_LOG_SYSLOG; protected $me...
true
535e55c4f4ac2b15118d69c229d0015247cbff91
PHP
LuccaMariani/Mariani.JuanLuca.PPLABIII
/clases/AccesoDB.php
UTF-8
966
3.03125
3
[]
no_license
<?php class AccesoDB { private static $accesoDB; private $objetoPDO; public function __construct() { try { $user = 'root'; $pass = ''; $this->objetoPDO = new PDO("mysql:host=localhost; dbname=productos_bd",...
true
a8e7fd6eb3a5c431e1a39bbe713c435a7f86b81b
PHP
xaraya/core
/html/code/modules/modules/xaradminapi/getdbmodules.php
UTF-8
2,137
2.734375
3
[]
no_license
<?php /** * @package modules\modules * @subpackage modules * @category Xaraya Web Applications Framework * @version 2.4.0 * @copyright see the html/credits.html file in this release * @license GPL {@link http://www.gnu.org/licenses/gpl.html} * @link http://xaraya.info/index.php/release/1.html */ /** * Get all...
true
0de97968014a0873029d4f2c27544b859c5e03c4
PHP
Gabrieloczust/php-tcc
/models/Convite.php
UTF-8
8,000
2.59375
3
[]
no_license
<?php class Convite extends Model { public function __construct() { parent::__construct(); } public function convidaOrientador($email, $idProjeto, $idRemetente) { $orientador = new Orientador($email); $hashConvite = $this->geraHash($idProjeto); if (!empty($orientador->getId())) { $sql = $this->db->pr...
true
ddb62c05804bac6d840c4870d8dbc6b5f4abda34
PHP
episeclab/gorobot
/scripts/public/statquote.cmd
UTF-8
1,064
2.671875
3
[]
no_license
#!/usr/bin/env php <?php // tiny module to dump stats about quotes // ugly storage, ugly code, that's because I'm ugly if ($argc < 5) die("don't run me like this\n"); $port = $argv[1]; $serv = $argv[2]; $chan = $argv[3]; $user = $argv[4]; function read_db($fp) { $result = ''; while (!feof($fp)) { $resu...
true
c6b40357f2dfa33bd98978ca85cac5a89ce0c602
PHP
t1raven/art1
/lib/class/dashboard/dashboard.class.php
UTF-8
3,973
2.640625
3
[]
no_license
<?php class DashBoard { var $attr; function __construct() { $this->attr = array(); } function __destruct() { $this->attr = null; unset($this->attr); if (gc_enabled()) gc_collect_cycles(); } function setAttr($key, $value){ $this->attr[$key] = $value; //echo "<br>set:$key:".gettype($value); //echo ...
true
ba0087e1483b3624ebf4908c8329dbfe127e9f7e
PHP
b3mad/browsergame
/DBwriter.php
UTF-8
1,188
2.625
3
[]
no_license
<?php $con = mysql_connect("localhost", "root", "root", "browsergame"); if (!$con) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db("browsergame", $con); if (!$db_selected) { die("Can\'t use database : " . mysql_error()); } session_start(); $usr = $_SESSION["username"]; $holz =...
true
b2fc67f84b019bfe28ea42076e5f1ebab6fb0534
PHP
muiltje/dspace_utils
/phplib/rest_versions/RestItem.php
UTF-8
15,168
2.609375
3
[ "Apache-2.0" ]
permissive
<?php require_once 'DatabaseConnector.php'; require_once 'RestConnector.php'; /** * Utility functions about items * * @author muilw101 */ class RestItem { private $dbconn; private $oRest; public function __construct() { $oDC = new DatabaseConnector(); $this->dbconn = $oDC->getConne...
true
e83ea5a81426cce9c7fec92ec6b61d43ac39bf2c
PHP
golmenero/I-CGC
/src/Domain/Manager/AdManager.php
UTF-8
1,381
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace Domain\Manager; use InFileSystemPersistence; /** * Class AdManager * This class acts as The middleware between Database (simulated by the class InFileSystemPersistence) and Controllers. */ final class AdManager { private InFileSystemPersistence $ifsp; /** * ...
true
7621c18c61f2704b3240654ab441250f3a8fc33c
PHP
KimHwiDong/TMS
/main/socket/chat_client.php
UTF-8
590
2.65625
3
[]
no_license
<?PHP $address = gethostbyname('127.0.0.1'); $service_port = 5091; if(($sock = socket_create(AF_INET, SOCK_STREAM, 0)) < 0) echo "socket_create() failed: reason: " . socket_strerror($sock) . "<br>"; if(($result = socket_connect($socket, $address, $service_port)) == false) echo "socket_connect() failed...
true
96b967ecb5b2dc510aeed0cad0f391b417e9dae3
PHP
ilham-fuead/mandryn
/src/mandryn_v1/MixedDataTypeContainer.php
UTF-8
883
3.296875
3
[]
no_license
<?php class MixedDataTypeContainer { private $mixedDataTypeArray; public function __construct() { $this->mixedDataTypeArray = array(); } public function addMixedDataTypeToArray($mixedDataType) { $this->mixedDataTypeArray[] = $mixedDataType; } public function setMixedDataT...
true
c370c3350b4ee8d05a3bafc35563832107c98e6a
PHP
peter-sharp/shamenet
/authenticator.php
UTF-8
2,686
3.078125
3
[]
no_license
<? session_start(); require_once('database.php'); require_once('logger.php'); /** * Authenticator Helper Class **/ class AuthenticatorHelper { private $db; private $logger; /** * constructor method that initialises the database connection */ function AuthenticatorHelper(){ $th...
true
d742f30c4f01ed974cb7c00d160699d1e7d66ace
PHP
levacic/spryker-code-sniffer
/Spryker/Sniffs/Commenting/DocBlockApiAnnotationSniff.php
UTF-8
9,481
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * MIT License * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace Spryker\Sniffs\Commenting; use PHP_CodeSniffer\Files\File; use Spryker\Sniffs\AbstractSniffs\AbstractApiClassDetectionSprykerSniff; /** * Checks if doc block of Spryker A...
true