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
3e4c0c2e8ce3912505bfa9a572c9c8178e4f6a9d
PHP
IlayDeveloper/jobTaskTest
/models/repositories/UserRep.php
UTF-8
1,448
2.8125
3
[]
no_license
<?php namespace app\models\repositories; use app\models\User; class UserRep extends Repository { protected $entityClass = User::class; protected $tableName; public function __construct () { $this->tableName = User::getTableName(); } public function getByLoginPass($login, $password) { $sql =...
true
809cff151d04cc850e60f71a9c2142dc22225c1b
PHP
Yapal123/php-mvcframework-blog
/application/controllers/MainController.php
UTF-8
1,599
2.515625
3
[]
no_license
<?php namespace application\controllers; use application\core\Controller; use application\lib\Pagination; use application\models\Admin; class MainController extends Controller { public function indexAction() { $pagination = new Pagination($this->route, $this->model->postCount()); $vars = [ 'pagination' ...
true
cc6d55a894a3154efbe8aee59d99a01e29adae34
PHP
codesyariah122/Learn-WebDev
/new_ajax/view_data.php
UTF-8
834
2.71875
3
[]
no_license
<?php require_once 'connection.php'; ?> <style type="text/css"> table{ border-collapse: collapse; } th, td{ padding: 8px; } </style> <table border="1"> <tr> <th>#</th> <th>Product Code</th> <th>Product Name</th> <th>Product Price</th> <th>Option</th> </tr> <?php try{ $db->setAttribute(PDO::ATTR_ER...
true
5a137a453a6d13426659986261d154fae3d42dde
PHP
Taariqq/introducingPHP-Lynda-study
/ch02/02_06/embedded.php
UTF-8
1,806
3.015625
3
[]
no_license
<?php $book = '"The Hitchhiker\'s Guide to the Galaxy"'; $author = 'Douglas Adams'; $answer = 42; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Embedded PHP</title> <link href="styles.css" rel="stylesheet" type="text/css"> </head> <body> <h1>Dynamic...
true
ceca8e81d9bffc08ba98de928d40ab23b9390753
PHP
MariaFlorenciaP/exerciciosPHP
/Exe15/ex15maria.php
UTF-8
347
3.09375
3
[]
no_license
<!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="utf-8"> <title>Lista de exercicios 1 - Programação WEB - Prof. Herval</title> </head> <body> <h1>Exercicio 15 - Lista 1</h1> <?php $n = $_GET['n']; $r = sqrt($n); $p = pow($n,3); echo "<p> A raíz quadrada de $n é $r<br> O cubo de $n é $p </p>"; ...
true
0d2dce6d51a116e9bfe6f797a4f924e2f604e7f0
PHP
funeralzone/valueobject-generator
/src/Repositories/Templates/ArrayTemplateRepository.php
UTF-8
997
2.96875
3
[]
no_license
<?php declare(strict_types=1); namespace Funeralzone\ValueObjectGenerator\Repositories\Templates; use Funeralzone\ValueObjectGenerator\Repositories\Templates\Exceptions\InvalidTemplateSupplied; use Funeralzone\ValueObjectGenerator\Repositories\Templates\Exceptions\TemplateDoesNotExist; final class ArrayTemplateRepos...
true
6d64e1370967a93a1f6926d9ca94990d18ab1515
PHP
urki/timing
/wwwroot/user_group_list_event.php
UTF-8
4,790
2.578125
3
[]
no_license
<? include "../inc/config.php"; function create_results($res,$title) { global $table,$row,$row_category; $table.=$row_category; $table = str_replace("##TITLE##",$title,$table); $x=1; while($res->next_record()) { $smicro = $res->f("start"); $stmicro = $res->f("stop"); $smicro = explode(".",$smicro); $stm...
true
4ad34b62864cbecb92454d0680b717401c5836c1
PHP
SeeNelse/php_gfl
/task8.1/index.php
UTF-8
636
3.453125
3
[]
no_license
<?php class Singletone { private static $inst; public static function getObj() { if (self::$inst === null) { self::$inst = new self(); } return self::$inst; } public function test() { echo 123; return true; } } class CopyClass extends Singletone { ...
true
94627da0d52903765e322cdc0e83089283c1cc23
PHP
nts-dev/nts-programs-demo
/project-api/app/Project.php
UTF-8
1,175
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Project extends Model { protected $guarded = ['id']; public function types() { return $this->belongsToMany(Type::class)->withTimestamps(); } public function documents() { return $this->belongsToMany(Document:...
true
1a262dd2900c5b39e53442ec11c2401e2da8521b
PHP
smwhr/mvc
/model/CityModel.php
UTF-8
733
2.96875
3
[]
no_license
<?php class CityModel{ public static function getList($pdo){ $res = $pdo->query("SELECT * FROM destinations"); $destinations = []; foreach ($res as $row) { $destinations[] = $row; } return $destinations; } public static function delete($pdo, $city_id){ $q = $pdo->prepare('DELETE F...
true
74161013ee621bef640d1a0613595d46187fa2e6
PHP
tienvu8x/vinsofts-web-training-072018
/07_kiendv/PHP_MVC_MongoDB/APIs/model.php
UTF-8
829
2.828125
3
[]
no_license
<?php include "config.php"; class model { //Lay tat ca ban ghi public function fetch($sql) { global $db; $result = mysqli_query($db,$sql); $arr = array(); while ($row = mysqli_fetch_object($result)) { $arr[] = $row; } return $arr; } //Lay 1 ban ghi public function fetch_one($sql) { ...
true
64b0c9fc2dd7c5cf0dec45d4919f650ecb560ee3
PHP
franjoro/ProjectManager
/php/clientes/detalles.php
UTF-8
931
2.515625
3
[]
no_license
<?php require_once("../conexion.php"); $id = $_GET['id']; $sql = "SELECT * FROM tb_clientes WHERE code='".$id."' "; $query = mysqli_query($mysqli,$sql); $row = mysqli_fetch_array($query); mysqli_close($mysqli); ?> <div class="row"> <div class="col-4"><p> <b> Name:</b> <?php echo $row[1] ?>...
true
32bc0179f93dc7ddfbc63b6d21666260607eb615
PHP
devster/userv
/tests/units/Userv/Connection/Connection.php
UTF-8
1,430
2.59375
3
[ "MIT" ]
permissive
<?php namespace Userv\Connection\Tests\Units; use Userv\Server; use Userv\Connection\Connection as Conn; use mageekguy\atoum; class Connection extends atoum\test { protected $tmpfile; public function afterTestMethod() { if ($this->tmpfile) { unlink($this->tmpfile); } } ...
true
8dce3800ac49aab20d05fa42748b3999e981e38e
PHP
elmunoz42/music-school-accounting
/src/function/form_validation.php
UTF-8
223
2.53125
3
[ "MIT" ]
permissive
<?php function is_url($uri){ if(preg_match( '/^(http|https):\\/\\/[a-z0-9_]+([\\-\\.]{1}[a-z_0-9]+)*\\.[_a-z]{2,5}'.'((:[0-9]{1,5})?\\/.*)?$/i' ,$uri)){ return $uri; } else{ return false; } }
true
d840d54a8dfc1e5744441d2903ccb0f65c3f84dc
PHP
majregor/calendar
/php/Event.php
UTF-8
9,610
2.890625
3
[]
no_license
<?php /** * Event Class * for manipulating event object and serializing them to database */ class Event { private $id; private $title; private $body; private $startTime; private $endTime; private $location; private $modifiedBy; private $modificationDate; private $max; private $availablePositions; priv...
true
37dbc5217a841da4b353db66510a9bf9205fa66f
PHP
dianedouglas/PHP-and-Friends
/php_basics9_arrays.php
UTF-8
7,321
3.6875
4
[]
no_license
Numerically Indexed Arrays: Populate an array. Here it is in ruby: stuff = [] stuff.push("First thing") stuff.push("Second thing") stuff.push("Third thing") stuff: ["First thing", "Second thing", "Third thing"] <?php $stuff[] = "First thing"; $stuff[] = "Second thing"; $stuff[] = "Third thing"; pri...
true
ab25cc92aebf9a9cab7a53f159211a37a52ba12c
PHP
marc310/Estoque_Simples-CI
/application/controllers/Login.php
UTF-8
2,074
2.5625
3
[ "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Login extends CI_Controller { function __construct() { parent::__construct(); } function index() { if($this->session->userdata('nomeusuario') != '') { redirect(site_url('d...
true
4f0e659ea3c2b2741b7c8bf6800003a5ae0a8687
PHP
Commercie/payment
/src/Operation/OperationContinuationInstruction.php
UTF-8
686
2.875
3
[ "MIT" ]
permissive
<?php /** * @file * Contains \Commercie\Payment\Operation\OperationContinuationInstruction. */ namespace Commercie\Payment\Operation; /** * Provides operation continuation instruction. */ class OperationContinuationInstruction implements OperationContinuationInstructionInterface { /** * The URL at whi...
true
2db1ae9ee0d384c1aca61419b21208f2224a6794
PHP
vector-mj/Vector-MVC
/libs/Database.php
UTF-8
5,242
2.859375
3
[]
no_license
<?php class Database{ private $Log='connected'; private $isConnect = true; private $connection; private $allPages; private $allItems; public function __construct($host=DB_HOST,$dbname=DB_NAME,$username=DB_USER,$password=DB_PASSWORD){ try{ $dsn = 'mysql:host='.$host.';dbname='...
true
195289a21397d4bd327580bcf913123fe083cffa
PHP
marcoAspeitia31/PooPHP
/clase10/class/User.php
UTF-8
148
2.5625
3
[]
no_license
<?php //include "./abstract/Base.php"; class User extends Base { public function __construct($name) { $this->name = $name; } }
true
5ba6f2d2f111b9ecf45d4a8b017f0a165b55f26e
PHP
dawidgorecki/litemvc
/Application/Libraries/Utilities/DateUtils.php
UTF-8
2,191
3.4375
3
[ "MIT" ]
permissive
<?php namespace Libraries\Utilities; class DateUtils { /** * Gets difference in days between two dates * @param string $fromDate * @param string $toDate * @return int */ public static function daysBetweenDates(string $fromDate, string $toDate): int { $from = new \DateTime...
true
874a364f007c7fcd6c2cf419612e1a7e5e6be6d6
PHP
XeilaS/Travaux
/class/class.database.php
UTF-8
1,204
3.21875
3
[]
no_license
<?php class Database { private static $_instance; // stocke l'adresse de l'unique objet instanciable /** * La méthode statique qui permet d'instancier ou de récupérer l'instance unique **/ public static function getInstance() { if (is_null(self::$_instance)) { $dbHost = '...
true
b7f82be898110c5a320e2c5806d192a7029cd09d
PHP
FabienCOTE/Php-4
/exercice_3.php
UTF-8
598
3.921875
4
[]
no_license
<?php function returnString($myStringOne, $myStringTwo) { return $myStringOne . $myStringTwo; } ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8" /> <title>Exercice 3</title> <link rel="stylesheet" href="style.css" /> </head> <body> <div> <h1>Ex...
true
9275ac9851e1ffd43f6fc3ac05e8596af5a4be38
PHP
Elorfin/MusicTools
/api/src/UserBundle/Entity/UserFriendship.php
UTF-8
3,232
2.765625
3
[ "MIT" ]
permissive
<?php namespace UserBundle\Entity; use Doctrine\ORM\Mapping as ORM; use CommonBundle\Model\UniqueIdentifierTrait; /** * UserFriendship Entity * Used to store the configuration of a friendship between two Users. * * @ORM\Entity() * @ORM\Table(name="user_friendship") */ class UserFriendship { /** * Flag...
true
dd3b8c92fb61742a1f341c4d4959177727faec3a
PHP
YrStudenikin/im-project
/services/CategoryManageService.php
UTF-8
3,261
2.546875
3
[]
no_license
<?php namespace app\services; use app\models\Category; use app\models\CategoryForm; use app\models\Meta; use app\repositories\CategoryRepository; use app\repositories\CharacteristicRepository; use app\repositories\productRepository\ProductRepository; use yii\base\BaseObject; class CategoryManageService extends BaseO...
true
569f601237c29230c9628540274cc5bf36b4f17a
PHP
Pavlusha311245/nginx-unit-php-sdk
/src/Config/Application/ProcessManagement/ApplicationProcess.php
UTF-8
1,748
3.09375
3
[ "Apache-2.0" ]
permissive
<?php namespace Pavlusha311245\UnitPhpSdk\Config\Application\ProcessManagement; class ApplicationProcess { /** * Maximum number of application processes that Unit maintains (busy and idle). * * @var int|mixed */ private int $_max = 1; /** * Minimum number of idle processes that U...
true
be9416beb66fe2bc9911a3d9ecdded17f7f73db3
PHP
cycle/schema-renderer
/src/MermaidRenderer/StringFormatter.php
UTF-8
606
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Cycle\Schema\Renderer\MermaidRenderer; trait StringFormatter { private function resolveString(string $value): string { if (\preg_match('/[^_a-zA-Z0-9]/u', $value)) { $value = \preg_replace('/[^a-z0-9_]/u', '_', $value); } return $v...
true
3c1883da6ba567a83198fc25ea199be7c3c38f6b
PHP
bytic/orm
/src/Locator/Configuration/Configuration.php
UTF-8
911
2.75
3
[ "MIT" ]
permissive
<?php namespace Nip\Records\Locator\Configuration; use Nip\Utility\Arr; /** * Class Configuration * @package Nip\Records\Locator */ class Configuration { protected $namespaces = []; /** * @param $namespace */ public function prependNamespace($namespace) { array_unshift($this->n...
true
609f91127f6fa1119517aa568a99c63bdbe9f605
PHP
RevengeHunter/WebApp
/api/movie/classMovie.php
UTF-8
900
2.78125
3
[]
no_license
<?php include("conection.php"); class classMovie extends conection{ public function mostrarMovie(){ $recuperarCon=$this->getConnection()->prepare("select * from tblmovie"); $recuperarCon->execute(); $ListaMovies=[]; $Indice=0; try{ while($RCon = $recuperarCon->...
true
88cea53205f9e4725a72d78ada728729a465454e
PHP
Trikisatan/Newnorth-Alerts
/WWW/Framework/Newnorth/Controls.php
UTF-8
2,943
3.046875
3
[ "MIT" ]
permissive
<? namespace Framework\Newnorth; class Controls implements \ArrayAccess { /* Variables */ private $Owner; private $Directory; private $Items = array(); /* Magic methods */ public function __construct($Owner, $Directory) { $this->Owner = $Owner; $this->Directory = $Directory; $this->TryLoadIniFile(); } ...
true
3926e8bdf4aa8436d6332666a6897df41ad58807
PHP
happy-beans/BlackJack
/Suit.php
UTF-8
412
2.6875
3
[ "MIT" ]
permissive
<?php /** * Suit.php * Copyright 2017 happy-beans / fukumame * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ Class Suit { public const SPADE = "SPADE"; public const HEART = "HEART"; public const CRUB = "CRUB"; public const DIAMOND = "DIAMOND...
true
baa01fdcafffee04c3566ddcc84a37a8f778975f
PHP
AhmedSafwat1/I-learn-backend
/Modules/Apps/Repositories/Dashboard/ConatactRepository.php
UTF-8
2,386
2.75
3
[ "MIT" ]
permissive
<?php namespace Modules\Apps\Repositories\Dashboard; use DB; use Hash; use Modules\Apps\Entities\Contact as Model; class ConatactRepository { public function __construct(Model $model) { $this->model = $model; } public function findById($id) { $model = $this->model->find($...
true
0f4c206adbfdeb2b935aa19bb90909237032ca60
PHP
kokororin/pixiv-api-php
/PixivAppAPI.php
UTF-8
8,536
2.640625
3
[ "MIT" ]
permissive
<?php /** * pixiv-api-php * PixivApp API for PHP * * @package pixiv-api-php * @author Kokororin * @license MIT License * @version 2.1 * @link https://github.com/kokororin/pixiv-api-php */ class PixivAppAPI extends PixivBase { /** * @var string */ protected $api_prefix = 'https://app...
true
ec5c6c8cb340c5d18dbc047bcc4c8e1f288cb20f
PHP
Styrkar1/lokaverk-vef-2017-vor
/application/Controller/PostController.php
UTF-8
2,180
2.5625
3
[]
no_license
<?php namespace Mini\Controller; use Mini\Model\Post; class PostController { //bara indexið public function adindex() { $post = new post(); $posts = $post->getAllPosts(); require APP . 'view/_templates/header.php'; require APP . 'view/posts/adindex.php'; req...
true
a44e18f9c5e1f8f604ec9c178f6a4953aef7693f
PHP
andresmeireles/prjt-01
/src/Controller/ProductionController.php
UTF-8
1,716
2.671875
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Product; use App\Entity\Production; /** * */ class ProductionController extends Controller { public function index($request, $response) { $this->renderer->render($response, 'production_landing.twig'); } public function addProduction($request, $response) { $pr...
true
fca3554ca8ee95dbf4fcae2b5a59ac0bea486c1d
PHP
mabramyan/sender
/src/Models/Subscriber.php
UTF-8
1,538
2.8125
3
[]
no_license
<?php namespace SenderNet\Models; /** * * @property int $id * @property string $email * @property string $firstname * @property string $lastname * @property string $unsubscribed_at * @property string $bounced_at * @property string $created * @property string $unsubscribed * @property string $location * @pr...
true
18510aea809e10bf1b4da5ca0c800ddf93733423
PHP
reunovandrey/surprise-careers
/web/app/themes/surprise-careers/inc/contact-form-7/functions.php
UTF-8
3,209
2.578125
3
[ "MIT" ]
permissive
<?php // intercept contact form 7 before email send add_action( 'wpcf7_before_send_mail', 'surprise_on_before_cf7_send_mail' ); add_filter( 'shortcode_atts_wpcf7', 'surprise_shortcode_atts_wpcf7_filter', 10, 3 ); add_action( 'wpcf7_submit', 'store_job_application', 10, 2 ); function surprise_create_attachment( $fil...
true
ba86dcfb241365d011ebf87bb23baaceaaba4281
PHP
totorche/Gourmeto
/class/miki_order.php
UTF-8
49,624
2.75
3
[]
no_license
<?php /** * Classe Miki_order * @package Miki */ /** * Représentation d'une commande. * * Une commande est liée (Miki_shop) et à des articles (Miki_shop_article) issus d'un ou plusieurs shop(s) * * @see Miki_shop * @see Miki_shop_article * * @package Miki */ class Miki_order{ /** * Id de la co...
true
ab220080b212314924b798e89ba2f4a285459be0
PHP
Shakil776/laravel-advance-ecom
/app/Http/Controllers/Admin/SliderController.php
UTF-8
4,235
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Slider; use Session; use Image; class SliderController extends Controller { // show sliders public function sliders(){ $sliders = Slider::get()->toArray(); /*dd($sliders); di...
true
e8f2cc9dafce914c6c14a29868e50a125f61c368
PHP
apradal/DAW
/dwes/smarty/PracticaTienda/Ordenador.php
UTF-8
1,094
3.0625
3
[]
no_license
<?php class Ordenador { //atributos private $codigo, $procesador, $ram, $disco, $grafica, $optica, $so, $otros; //contructor public function __construct($row) { $this->codigo = $row['cod']; $this->procesador = $row['procesador']; $this->ram = $row['RAM']; $this->d...
true
42ad1ef100791e7712df462c8f4ded24289fee7a
PHP
Balavinayagapragathishsathish/runner
/distance.php
UTF-8
1,369
2.84375
3
[]
no_license
<html> <head> <title>Distance </title> </head> <body> <?php /** * * Getting the username and distance from input.hbs * @variable uname - Username * @variable ran_distance - distance covered by the user today */ if (isset($_GET['distance']) && isset($_G...
true
86f1d3c8b51d14f02a6f2858e0cb878d733edf1a
PHP
kenlong/example
/StocksAPP/Services/SystemSetup/ViewLogs.php
UTF-8
552
2.734375
3
[]
no_license
<?php class ViewLogs { public function getLogFiles() { $dirhandle=opendir(APP_PATH."/Logs"); $arrayFileName=array(); while(($file=readdir($dirhandle))!==false) { if(($file!=".")&&($file!="..")) { $arrayFileName[]=$file ; //array("FileName"=>substr($file,0,strlen($file)+$type...
true
f9d39c5b212cf35450d60f59c8505c822bc67740
PHP
marcoleon94/pinkfeelin2
/app/Models/User/Address.php
UTF-8
565
2.578125
3
[ "MIT" ]
permissive
<?php namespace pinkfeelin\Models\User; use Illuminate\Database\Eloquent\Model; class Address extends Model { // protected $table = 'address'; protected $primarykey= 'id'; public $timestamps=false; protected $fillable= [ 'id_estado','id_ciudad','colonia','calle','numero','cp','id_usuario' ...
true
8b7daccf637010b28ab12be8d371f6e9c65ee568
PHP
mukdo/seosmmproject
/SEOSMMPanel/User/service.php
UTF-8
4,627
2.5625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title> SEO & SMM Panel </title> </head> <body> <a href="service.php">Service</a> <a href="order.php">Order</a> <a href="contact.php">Contact</a> <a href="profile.php">Profile</a> <a href="balance.php">Balance</a> <a href="logout.php">LogOut</a> <?php include_once 'Crud.ph...
true
7b7d36edb3f5f86bd7c639e1a63cd0c92352186d
PHP
orehid/registrarapi
/src/CloudflareApiUpdateDdns.php
UTF-8
4,471
2.609375
3
[ "MIT" ]
permissive
<?php /** * Update cloudflare zone content for ddns. * * PHP version 7 * * @category Library * @package registrarapi * @author orehid <orehid@example.com> * @license MIT * @version 1.0 * @link https://api.cloudflare.com/ */ define('REQUEST_TIME', $_SERVER["REQUEST_TIME"]??time()); $config ...
true
7792bd726d217fcf834f1f71dbca0449a60109af
PHP
coursehero/theia-php
/src/ReheatCache/JobHandler.php
UTF-8
1,716
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace CourseHero\Theia\ReheatCache; abstract class JobHandler { /** @var JobProcessor */ protected $processor; /** @var string */ protected $componentLibrary; public function __construct(JobProcessor $processor, string $componentLibrary) { $this->processor = $processor; ...
true
befe88b53eec33033e15ad3f5e5c786e94f8f497
PHP
monique24/blogTec
/verificar-login.php
UTF-8
859
2.765625
3
[]
no_license
<?php require_once "conexao.php"; $email = $_POST['email']; $password = $_POST['password']; if($email == "" && $password == "") { echo "<script>alert('Campos nulos, preencha os campos')</script>"; }else { $query = "SELECT nome,tipo_usuario FROM usuarios WHERE email = '$email' an...
true
210813ac18a7a7ec36abd605539cec228151817f
PHP
AtiLoik/PPE3_TP3
/controleurs/c_Albums.php
UTF-8
992
2.734375
3
[]
no_license
<?php $action = $_REQUEST['action']; //récupération de l'action //echo "action:".$action; switch($action) { case 'all': //pour afficher tous les albums { $lesAlbums=Album::getAll(); //on fait appel à la méthode d"accès aux données de la classe Album include("vues/v_albums.php");//puis on affiche la v...
true
d17722002753f5e76a6994c6653698442c860baa
PHP
skip1/mysql-pdo
/liabincrease.php
UTF-8
1,504
2.6875
3
[]
no_license
<html> <head> <link rel="stylesheet" type="text/css" href="style.css"> <style>table {table-position: center; color: white;} </style> </head> <?php include_once "database.php"; $stmt = $DBH->prepare("select school, oldliabilities, totalliabilities, oldliabilities/totalliabilities from colleges inner join...
true
92922d8eafe8deb354a6ec7270e2314dc3343d00
PHP
jhgv/yardsale
/utils.php
UTF-8
11,207
2.6875
3
[]
no_license
<?php require_once("db.php"); require_once("constants.php"); function product_sold($id_product){ $conn = mysqli_connect(SERVERNAME, USERNAME, PASSWORD, DBNAME); $query = "UPDATE `product` SET `sold`=1 WHERE `id_product` = $id_product"; if (!$result = mysqli_query($conn, $query)) { echo "Error: " . mysqli_error...
true
4e9cd55790415105c396947dd2f6791cd40733e2
PHP
tworzenieweb/the-words
/src/Words/Domain/Word/ComparableInterface.php
UTF-8
610
2.9375
3
[]
no_license
<?php /* * This file is part of the the-words package. * * (c) Luke Adamczewski <luke.adamczewski@phpe.pl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Words\Domain\Word; /** * @package Words\Domain\Word * @author ...
true
4f35299da243d9cdfba66c2468365d4e46951eec
PHP
creray/umi-framework
/library/umi/dbal/driver/IConstraintScheme.php
UTF-8
3,927
2.640625
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\dbal\driver; /** *...
true
45ea2f0b8cd2d1c19d7877ee5fb52a994dcdcafa
PHP
gdufedu/note
/wordpress/课程附件/重用代码/19-增加新的分类方式(taxonomy)/增加新的分类方式(taxonomy).php
UTF-8
9,088
2.8125
3
[]
no_license
<?php /** * 创建一种新的分类方式的代码 */ add_action( 'init', 'lingfeng_create_taxonomies', 0); function lingfeng_create_taxonomies() { /****************************************************************************************************** * register_taxonomy( $taxonomy, $object_type, $args ) * 函数描述:该函数可以增加一种新的分类方式,或者修改原有的分类方式。...
true
77afee9a82edab5031d5a0de780067e3222ebf8c
PHP
bobrocha/schoolwork
/PHP/Patterns/Abstract_factory/visual_media/png.php
UTF-8
149
2.703125
3
[]
no_license
<?php class PNG extends Image { public function open() { return 'Opening a PNG'; } public function close() { return 'Closing a PNG'; } } ?>
true
8d68355299ec5e56bae899442806688924bb3797
PHP
tmleeek/Ecommerce
/info/system/expressionengine/third_party/blocks/libraries/EEBlocks/Controller/FieldTypePackageLoader.php
UTF-8
623
2.578125
3
[]
no_license
<?php namespace EEBlocks\Controller; /** * Load and unload packages for field types * * Why does this class exist? Because I still refuse to pass the EE monolith * to FieldTypeWrapper, but I want to move responsibility for loading and * unloading package libraries into FieldTypeWrapper. */ class FieldTypePackag...
true
b74b24341108766c702f652265a23bb36bdb9fcc
PHP
Aney44/testEcomitize
/Garage/Tests/Cars/KamazCarTest.php
UTF-8
878
2.59375
3
[]
no_license
<?php namespace Garage\Tests\Common; use Garage\Cars\KamazCar; use PHPUnit\Framework\TestCase; class KamazCarTest extends TestCase { public function testGetDocumentation() { $obj = new KamazCar(); $this->assertEquals(['move', 'putLoads', 'emptyLoads', 'refuel'], $obj->getDocumentation()); ...
true
58a1a7a72c172d8ddc48cc4e85a955d8f062689a
PHP
mikevanwinkle/wtfwp
/wtf-why-404.php
UTF-8
1,925
2.546875
3
[]
no_license
<?php /** * Plugin Name: Why 404? * Description: Debugs why posts 404 after "publish" */ //WPE Debug Scheduled Publish add_action('publish_post','wpe_debug_publish_post',10,2); function wpe_debug_publish_post($post_id, $post) { $date = date('Y-m-d h:i:s'); $output = "Date $date \n"; foreach ...
true
ddbb8d67377b3508adc93299eec4bfb0c66e47d1
PHP
mohdfaizal555/E-commerce
/shazalproject/orders.php
UTF-8
769
2.640625
3
[]
no_license
<?php $dbhost='localhost'; $dbuser='root'; $dbpass=''; $db='e_commerce'; $conn=new mysqli($dbhost,$dbuser,$dbpass,$db); if(!$conn){ die('could not connnect:'.mysqli_error()); } $retval=mysqli_query($conn,"select username,email,mobileno,address,items from offline"); if(!$retval) { die('could not ge...
true
2d0882b81267315bcd271a630129dafb65f32e01
PHP
Ranagol/laracast_the_php_practictioner
/18-Array_filtering/index.php
UTF-8
4,817
3.6875
4
[]
no_license
<?php class Post { public $title; public $author; public $published;//this will be a boolean, that is showing if the post has been published public function __construct($title, $author, $published){ $this->title = $title;//left from = is class propterty. Right from = is the future argument. We are assigning the...
true
ac7ad715f9d4efb13edbf878e9d24d1c8887c77c
PHP
UnionOfRAD/lithium
/tests/cases/data/source/database/adapter/MySqlTest.php
UTF-8
3,357
2.671875
3
[]
permissive
<?php /** * li₃: the most RAD framework for PHP (http://li3.me) * * Copyright 2009, Union of RAD. All rights reserved. This source * code is distributed under the terms of the BSD 3-Clause License. * The full license text can be found in the LICENSE.txt file. */ namespace lithium\tests\cases\data\source\database...
true
fa2b462df3623b2312898df2129d6dabd9de8a80
PHP
LimJiYeonn/Database.github.io
/midterm/review.php
UTF-8
1,182
2.65625
3
[]
no_license
<?php $link = mysqli_connect('localhost', 'root', '123456', 'midterm'); $query = "SELECT review, name, author, rating, genre from best order by review desc limit 100"; $result = mysqli_query($link, $query); $emp_info = ''; while ($row = mysqli_fetch_array($result)) { ...
true
761cd4962a302af14ce06b4aa199bdb3e7ec841b
PHP
ccdaniel/alquilervideo
/agregar.php
UTF-8
953
2.53125
3
[]
no_license
<?php if(isset ($_GET['id']) && !empty ($_GET['id'])){ include ("conexion.php"); $con = mysql_connect($host,$user,$pw) or die ("error al conectar"); mysql_select_db($bd,$con) or die ("error al conectar la bd"); $id = $_GET['id']; $nombre = $_GET['nombre']; $descrip = $_GET...
true
ad88c9b88bde07d3aeae1a324c52553f5c5c6711
PHP
mlfraser/Scheduling
/app/Shared/GetSemester.php
UTF-8
2,077
2.796875
3
[]
no_license
<?php /* * GetSemester.php * * This function gets the list of semesters * * Returns: An object indicating success or error * Success containing list of semester data * Error containing error object with message */ try { ...
true
91d5c31907ca067cb615b0bf419140599b766212
PHP
TheDoctor0/AdminPanel
/src/App/Entity/AccountsRepositoryInterface.php
UTF-8
1,004
2.640625
3
[]
no_license
<?php namespace App\Entity; interface AccountsRepositoryInterface { public function getGroups(); public function getGroup($id); public function updateGroup($id, $name, $image, $prefix, $suffix); public function addGroup($name, $image, $prefix, $suffix); public function deleteGroup($id); public functio...
true
c32edb30ab7b656d48dae2f6c6867d62f76dd42c
PHP
EzequielSegota/Prog3
/Ejercicios/Ejercicio_09.php
UTF-8
428
3.96875
4
[]
no_license
<?php $numerosArray=array(rand(0,9),rand(0,9),rand(0,9),rand(0,9),rand(0,9)); for ($i=0; $i < 5; $i++) { if($numerosArray[$i]>6) echo "El numero:", $numerosArray[$i] . " en ",$i+1 ." es mayor a 6 <br/>"; else if($numerosArray[$i]<6) echo "El numero:", $numerosArray[$i] ." en ",$i+1 . " es meno...
true
7b8452e21167722e03f8502c2c9cd451c23b79af
PHP
getmonitor/ZeeJong
/theme/match.php
UTF-8
9,698
2.640625
3
[]
no_license
<?php /* Template part for match page Created: February 2014 */ ?> <div class="container"> <h2 id="title-match"><?php echo $this->match->getTeamA()->getName() ?> - <?php echo $this->match->getTeamB()->getName() ?></h2> <?php if(isAdmin()) { ?> <a href="<?php echo SITE_URL . 'admin/match/' . $th...
true
3be3fcd831676429c4b488242870e0f054acd5d5
PHP
wahyuief/pakar
/daftar.php
UTF-8
6,149
2.5625
3
[]
no_license
<?php include('header.php'); if (isset($_SESSION["sistempakar_session"])) { if ($_SESSION["sistempakar_session"]['level'] == 'admin') { echo '<meta http-equiv="Refresh" content="0; url=./admin/index.php" />'; } else { echo '<meta http-equiv="Refresh" content="0; url=./member.php" />'; } } i...
true
40191da9181fd4e47d2178bf88754c2a76736d84
PHP
kabrice/PensonsLibre
/framework/application.php
UTF-8
3,820
3.109375
3
[]
no_license
<?php namespace F3il; defined('__F3IL__') or die('Acces interdit'); /** * Classe repr�s�ntant l'application Web * Contr�leur frontal */ class Application { private static $_instance = null; private $configuration = null; private $cur...
true
b8f97b6bb8b114cb3de88ca088d25d290f710556
PHP
eyaylagul/data-transfer-object-dto
/src/Contracts/DataTransferObject.php
UTF-8
3,026
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Aedart\DTO\Contracts; use Aedart\Util\Contracts\Populatable; use ArrayAccess; use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; use JsonSerializable; /** * @deprecated Use \Aedart\Contracts\Dto, in aedart/athenaeum pac...
true
8b3ebd4080d58659623b5d08777da84a9dae9860
PHP
zhangjiquan1/phpsourcecode
/sdfsafe/tangframework/Tang/Database/Sql/ORM/Relations/Factory.php
UTF-8
2,862
2.703125
3
[ "Apache-2.0" ]
permissive
<?php // +----------------------------------------------------------------------------------- // | TangFrameWork 致力于WEB快速解决方案 // +----------------------------------------------------------------------------------- // | Copyright (c) 2012-2014 http://www.tangframework.com All rights reserved. // +-----------------------...
true
71d0303b8fb30a4e85ad00c8b2619bfaab65a00a
PHP
stygiansabyss/Core
/src/NukaCode/Core/Commands/InstallCommand.php
UTF-8
1,180
2.78125
3
[]
no_license
<?php namespace NukaCode\Core\Commands; use Illuminate\Console\Command; use Symfony\Component\Console\Output\StreamOutput; class InstallCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'nuka:install'; /** * The console command description. * * @var stri...
true
8925d242aef88ca22355d68eab46d038367b578c
PHP
vdegenne/vcms
/translation/TranslationsManager.class.php
UTF-8
1,277
2.5625
3
[]
no_license
<?php namespace vcms\translation; use vcms\database\Database; use vcms\database\EntityManager; use vcms\resources\VResource; class TranslationsManager extends EntityManager { static function get (string $tablename = null, string $objectname = null, Database...
true
c32af283aba4b1800f603184e67dbaa974065a04
PHP
lunches-platform/api
/src/AppBundle/Entity/MenuDishes.php
UTF-8
872
2.625
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; /** * Class MenuDishes. */ class MenuDishes extends ArrayCollection implements \JsonSerializable { public function jsonSerialize() { return array_map(function (MenuDish $menuDish) { return $menuDish->getD...
true
4a0472c5bae16376b751dbf35118516fe1f0ea56
PHP
waqashassan98/stickyio
/src/models/Campaign.php
UTF-8
5,115
2.59375
3
[ "MIT" ]
permissive
<?php namespace WebforceHQ\Stickyio\Models; class Campaign extends StickyioModel { protected $id; protected $name; protected $offers; protected $countries; protected $channel_id; protected $gateway_id; protected $description; protected $payment_methods; protected $return_profiles; ...
true
548fef7a9f3a20221aa6e87f5d879cb956523f5e
PHP
honsa/php-java
/src/Core/JVM/Invoker/InvokerInterface.php
UTF-8
670
2.671875
3
[ "MIT" ]
permissive
<?php namespace PHPJava\Core\JVM\Invoker; use PHPJava\Core\JavaClassInvoker; interface InvokerInterface { /** * @param PHPJava\Kernel\Structures\_MethodInfo[] $methods */ public function __construct(JavaClassInvoker $javaClassInvoker, array $methods); public function call(string $name, ...$argu...
true
60101789cf2f3a9fb1997ca5aa2a60ef6489ee1b
PHP
facebook/hhvm
/hphp/test/slow/apc-locking/apc-locking2.inc
UTF-8
90
2.671875
3
[ "PHP-3.01", "Zend-2.0", "MIT" ]
permissive
<?hh class Foo { public function __construct() { throw new Exception("Foo"); } }
true
078c262f01e7b4d002e2c0de6feb0505401bd8a0
PHP
alexandrecuer/backup
/get_emoncms_mysql_auth.php
UTF-8
852
2.578125
3
[]
no_license
<?php // file_put_contents("/tmp/checkuser", "test"); // $user = fileowner("/tmp/checkuser"); // unlink("/tmp/checkuser"); // if ($user!=1000) die; # get passed emoncms location from bash e.g. $ echo /var/www/emoncms | php get_emoncms_mysql_auth.php function getInput() { $input...
true
2df81d2dcc35cb002c6b1273c0979995601d82dd
PHP
chartinger/behat-twig-report-extension
/src/chartinger/Behat/TwigReportExtension/facades/Scenario.php
UTF-8
771
2.515625
3
[ "MIT" ]
permissive
<?php namespace chartinger\Behat\TwigReportExtension\facades; use Behat\Behat\EventDispatcher\Event\AfterScenarioTested; class Scenario implements ScenarioInterface { private $event; private $steps; public function __construct(AfterScenarioTested $event, $steps) { $this->event = $event; $this->steps...
true
34233722001e16135cf7b79f9474e3fe252e9cf5
PHP
codememory1/database-schema
/Collectors/ColumnCollector.php
UTF-8
1,748
2.9375
3
[ "MIT" ]
permissive
<?php namespace Codememory\Components\Database\Schema\Collectors; use Codememory\Components\Database\Schema\Helpers\ValueWrapperTrait; use Codememory\Components\Database\Schema\Interfaces\CollectorInterface; use Codememory\Components\Database\Schema\StatementComponents\Column; /** * Class ColumnCollector * * @pac...
true
df9eaf3f660ce7b30afa095fc4ccc92bcd2e0848
PHP
Letractively/tgiframework
/framework/class/tgif/db/pdo.php
UTF-8
13,060
2.984375
3
[]
no_license
<?php // vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker syntax=php: /** * Container for {@link tgif_db} * * @package tgiframework * @subpackage database * @copyright 2010 terry chay * @license GNU Lesser General Public License <http://www.gnu.org/licenses/lgpl.html> * @todo is there bac...
true
881681d9c5a4c05d3f40e4a5f90ad6a5f5b67670
PHP
gokhanakkurt/pet-savior-api
/database/seeds/PostsSeeder.php
UTF-8
680
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\Post; use App\Models\PostLocation; class PostsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::create(); for($i = 1; $i <= 1000; $i++){ Pos...
true
d60e2b048a257cf981478863014916f356d62961
PHP
RyRySuzu/FIT
/PHP/insta_select.php
UTF-8
1,786
2.78125
3
[]
no_license
<?php // ユーザネームから固有のuser_IDを取得する。 define("INSTAGRAM_ACCESS_TOKEN", ACCESS TOKEN); // ユーザアカウント名 $user_account = ACCOUNT; // ユーザアカウント名からユーザデータを取得する。 $user_api_url = 'https://api.instagram.com/v1/users/search?q=' . $user_account . '&access_token=' . INSTAGRAM_ACCESS_TOKEN; $user_data = json_decode(@file_get_contents($use...
true
59725a4c0e18a1ac0d242d07727249a64e3e2b2a
PHP
pycmam/littlesms-simpla
/admin/Section.admin.php
UTF-8
6,073
2.625
3
[]
no_license
<?PHP require_once('Widget.admin.php'); require_once('PagesNavigation.admin.php'); require_once('../placeholder.php'); class Section extends Widget { var $section; function Section(&$parent) { Widget::Widget($parent); $this->add_param('menu'); $this->prepare(); } function prepare(...
true
95abd9fdce0290f691c41c5f3b20d8715cc4f651
PHP
mschnieder/phpspreadsheet-template-tool
/src/PhpSpreadsheet/TemplateFiller/TemplateParser.php
UTF-8
20,025
2.890625
3
[ "Apache-2.0" ]
permissive
<?php namespace PhpOffice\PhpSpreadsheet\TemplateFiller; use PhpOffice\PhpSpreadsheet\Cell\Coordinate; use PhpOffice\PhpSpreadsheet\Exception; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter; use PhpOffice\PhpSpreadsheet\Worksheet\H...
true
c6dd9940499edc2c7f63094b4ab3a5a69912d5f7
PHP
libero/xml-validator
/src/XmlSchemaValidator.php
UTF-8
433
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Libero\XmlValidator; use DOMDocument; final class XmlSchemaValidator implements XmlValidator { use LibXmlValidator; private $schemaPath; public function __construct(string $schemaPath) { $this->schemaPath = $schemaPath; } protected function...
true
a53d95387c70c455841bc07d22e17450fec62840
PHP
Alex014/NZT
/src/interfaces/RouterInterface.php
UTF-8
271
2.578125
3
[ "MIT" ]
permissive
<?php use nzt\interfaces\MethodResolver; use nzt\interfaces\PathExtractor; namespace nzt\interfaces; interface RouterInterface { public function __construct(MethodResolver $methodResolver, PathExtractor $pathExtractor); public function route(array $routes); }
true
ddf228505796f922b4935769d905c30daeb5f0aa
PHP
Diegoa75/segug2
/segurilandia5/segurilandia/Pruebas/validarIngreso.php
UTF-8
1,547
2.515625
3
[]
no_license
<?php /*Valido datos del usuario, si exite en la Base de Datos guardo esos datos en la Sesion (para verificar en siguientes paginas que el usuario este autenticado) Si es usuario valido o registrado ok --> ingresoBusqueda Si es administrador --> mostrarDetalles */ $v_id = $_POST['id']; $v_rol = $_POST['rol'...
true
19a8f4e81b294156304d928823b122d47433d404
PHP
ouda/groupe-c
/model/produit_panier.php
ISO-8859-1
1,049
3.046875
3
[]
no_license
<?php include('../model/panier.php'); include('../model/produit.php'); class Produit_Panier { private $produit; private $panier; private $db; //Constructeur par dfaut de la classe Produit_Panier public function __construct(){ $this->db = new db(); } /** ** Produit **/ public function getProduit(){ return ...
true
2ad3281d031f09c984022fb4a7747caef0c2136c
PHP
shilpasingh0209/Web-Development-Project
/updateprofile.php
UTF-8
6,697
2.703125
3
[]
no_license
<?php require_once("database.php"); //require_once("update_modal.php"); session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Update Profile</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-...
true
8e68d98750a4d9944a245ffb4b522d0cc4b50b66
PHP
iyanski/shirts
/app/models/.svn/text-base/Article.php.svn-base
UTF-8
360
2.765625
3
[]
no_license
<?php /* Model Name: Category Model */ class Article extends ActiveRecord{ public function __get($key){return $this->property[$key];} public function __set($key, $val){return $this->property[$key] = $val;} public function __construct($post = '') { $this->tablename = 'articles'; $this->property = $pos...
true
41f87f4ebe0b4e5eef3854647959f1f04a6b40c3
PHP
rafohambaryan/test_php
/app/define/Session.php
UTF-8
621
2.90625
3
[]
no_license
<?php namespace app\define; class Session { private static $user_id = null; public static function remove():void { if (isset($_SESSION['user_id'])) { self::$user_id = $_SESSION['user_id']; } session_unset(); if (self::$user_id) { $_SESSION['user_i...
true
c784170bd723874c1b188fa0af927373b49f7621
PHP
bruli/php-git-hooks
/src/PhpGitHooks/Module/PhpUnit/Infrastructure/Tool/StrictCoverageProcessor.php
UTF-8
979
2.625
3
[ "MIT" ]
permissive
<?php namespace PhpGitHooks\Module\PhpUnit\Infrastructure\Tool; use PhpGitHooks\Infrastructure\Tool\ToolPathFinder; use PhpGitHooks\Module\PhpUnit\Model\StrictCoverageProcessorInterface; use Symfony\Component\Process\Process; class StrictCoverageProcessor implements StrictCoverageProcessorInterface { /** * ...
true
d44358ec25de32051f326cfa0f0f0eb39decb68f
PHP
Robbt/CCM-IS4C
/pos/fannie/reports/plu_report.php
UTF-8
4,784
2.625
3
[]
no_license
<?php require_once('../src/mysql_connect.php'); if(isset($_POST['submit']) || isset($_GET['sort'])) { echo "<html><head><title>Department PLU List</title> <script type=\"text/javascript\" src=\"../src/tablesort.js\"></script> <link rel='stylesheet' href='../src/style.css' type='text/css' /> <link rel='stylesheet' ...
true
114600d906d002a955b091d306f736f500173ffc
PHP
arangodb/arangodb-php
/lib/ArangoDBClient/Document.php
UTF-8
22,287
2.890625
3
[ "Apache-2.0" ]
permissive
<?php /** * ArangoDB PHP client: single document * * @package ArangoDBClient * @author Jan Steemann * @author Frank Mayer * @copyright Copyright 2012, triagens GmbH, Cologne, Germany */ namespace ArangoDBClient; /** * Value object representing a single collection-based document * * <br> * * @pack...
true
123bebc3d7437cec099d923f3ba510009ae0960a
PHP
Yov00/CMS
/app/Search.php
UTF-8
339
2.734375
3
[ "MIT" ]
permissive
<?php namespace App; abstract class Search { static function results($table, $searchWord) { if ($searchWord) { return $post = $table->posts()->where('title', 'LIKE', "%{$searchWord}%")->simplePaginate(6); } else { return $post = $table->posts()->simplePaginate(6);...
true
6265657bf293b058b896c46c397a5fc9f75b40d5
PHP
Uru-ruru/bitrix-mvc
/src/Migrations/Constructors/IBlockPropertyEnum.php
UTF-8
3,430
2.921875
3
[]
no_license
<?php namespace Uru\BitrixMigrations\Constructors; use CIBlockPropertyEnum; use Exception; use Uru\BitrixMigrations\Logger; /** * Class IBlockPropertyEnum * @package Uru\BitrixMigrations\Constructors */ class IBlockPropertyEnum { use FieldConstructor; /** * Добавить значение списка * @throws ...
true
32fa54f842fb6f60a164adfcf50f956b6bdd4d2c
PHP
Licanueto/GoToTest
/dao/idao.php
UTF-8
199
2.71875
3
[]
no_license
<?php namespace DAO; interface IDAO { public function add($obj); public function retrieve($obj); public function update($obj); public function delete($obj); } ?>
true
97fb16e7ffab9e7641c10fc072f353f1d63f0920
PHP
sumim/tddexample-php
/tests/MyTest.php
UTF-8
480
2.75
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class MyTest extends TestCase { public function test1() { $pc = new Product(); $electronic = new Category(); $pc->setCategory($electronic); $this->assertSame($electronic, $pc->getCategory()); } public function test2() { ...
true
81cfc9f78658bef51367fb702f64ca1c4974319a
PHP
Twizanex/ws_pack
/lib/webservices/users.php
UTF-8
4,076
2.703125
3
[]
no_license
<?php /** * Users webservices for ws_pack */ ws_pack_users_expose_functions(); /** * Exposes the users functions * * @return void */ function ws_pack_users_expose_functions() { elgg_ws_expose_function( "users.get_logged_in_user", "ws_pack_users_get_logged_in_user", array(), elgg_echo("ws_pack:api:users:...
true
37069ff59e88f5c805b586b60dc273f90d56c528
PHP
thaild/VoiceIP
/freePBX/html/admin/libraries/media/Media/Driver/Drivers/SangomaRingtone.php
UTF-8
7,633
2.890625
3
[ "MIT" ]
permissive
<?php /* * (c)2016 Andrew Nagy / https://github.com/tm1000 * (c)2012 Rob Janssen / https://github.com/RobThree * * Based on https://gist.github.com/Xeoncross/3515883 */ namespace Media\Driver\Drivers; use Symfony\Component\Process\Process; class SangomaRingtone extends \Media\Driver\Driver { private $track; p...
true