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
32f8272f12c35472ea2728c634a6e1b90fc7df1d
PHP
finbarr/rubyphp
/ruby.php
UTF-8
6,261
3.3125
3
[]
no_license
<?php /* * Author: Finbarr Taylor * License: You can do whatever you want with this code. */ class Ruby { /* * returns TRUE iff $function evaluates TRUE for every member of $collection */ static function all($collection, $function) { foreach($collection as $item) { if(!$function($item)) { ...
true
c2591a389caa4c01275f22f8c3db7edada98cae1
PHP
Blobfolio/blob-common
/build/zephir/blobfolio/php/geo.php
UTF-8
17,865
2.859375
3
[ "WTFPL" ]
permissive
<?php /** * Blobfolio: Spacetime Helpers * * @see {https://github.com/Blobfolio/blob-common} * * @package Blobfolio/Common * @author Blobfolio, LLC <hello@blobfolio.com> */ namespace Blobfolio; use Blobfolio\Blobfolio as Shim; use Exception; final class Geo { private static $_loaded_geo = false; private ...
true
721ff266a7b4a519bda08512fee4500b4c7d1e77
PHP
gallardjm/TUM_WebSec_Project
/about.php
UTF-8
1,305
2.53125
3
[ "MIT" ]
permissive
<?php include "utilities/TemplateEngine.php"; $templateEngine = new TemplateEngine(); $jumbotron = "<h1>Secret Chat</h1>"; $maincontent = <<<Content <h3>Privacy</h3><br> <h4>Anonymity guaranty</h4> <p class="text-justify">To ensure our user privacy, no username or password is stored in our database. Even if s...
true
91ac712538a60bf19273f3873c7ca6fd52d33bd7
PHP
laminas/laminas.dev
/src/Discourse/Middleware/DiscourseHandler.php
UTF-8
1,323
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Discourse\Middleware; use App\Discourse\Event\DiscoursePost; use Psr\EventDispatcher\EventDispatcherInterface; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHa...
true
fd8c4af743fbfe7c93fbc328d191c036f4355b78
PHP
fniftaly/Carunderbudget
/src/classes/CreateUser.php
UTF-8
232
2.859375
3
[]
no_license
<?php namespace src\classes; interface CreateUser { public function addUser(User $usr); public function updateUser($userid); public function deleteUser($userid); public function verifyUser($userid); }
true
1d8e292d019ac52afc1ec663250219f60553884e
PHP
Laserroy/hexlet-sicp
/resources/lang/en/exercises/2_91.php
UTF-8
1,782
2.984375
3
[]
no_license
<?php return [ 'title' => "Division of univariate polynomial", 'description' => [ '1' => "A univariate polynomial can be divided by another one to produce a polynomial quotient and a polynomial remainder. For example,", '2' => "Division can be performed via long division. " . ...
true
fe80ec6495ddae5675e05c46e8631bf1bf25a4c2
PHP
dawid-trybulowski/bibliotekarz_beta
/app/Http/Entities/ViewSettingsEntity.php
UTF-8
655
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Entities; class ViewSettingsEntity { private $booksPerPage; private $ageLimit; /** * @return mixed */ public function getBooksPerPage() { return $this->booksPerPage; } /** * @param mixed $booksPerPage */ public function setBooksP...
true
b3680c4804f57de6351f8ac4fa60620c77aa751b
PHP
Driccioli/php-snacks-b1
/6.php
UTF-8
970
3.171875
3
[]
no_license
<?php /* Utilizzare questo array di partenza e stampare tutti gli insegnanti in un rettangolo grigio e tutti i PM in un rettangolo verde. */ $db = [ 'teachers' => [ [ 'name' => 'Michele', 'lastname' => 'Papagni' ], [ 'name' => 'Fabio', 'lastn...
true
83d256d17ad795ca2d293afdb5aa4812c0eae2d5
PHP
kaynichole96/WDV
/wdv/TestFormValidation.php
UTF-8
1,069
3.046875
3
[]
no_license
<?php $testboolen = true; include 'FormValidation.php'; // access the class file $validateTool = new FormValidation(); //instantiate a new object echo "Empty quotes:" . $validateTool -> validateRequiredsField("") . "<br>"; echo "single space:" . $validateTool -> validateRequiredsField(" "). "<br>"; echo "two spa...
true
13887a809b122a2df44cbcc17eb52555d31ae97c
PHP
cuenka/SolarCenturyTest
/src/Repository/EmployeeRepository.php
UTF-8
2,242
2.609375
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Employee; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Symfony\Bridge\Doctrine\RegistryInterface; /** * @method Employee|null find($id, $lockMode = null, $lockVersion = null) * @method Employee|null findOneBy(array $criteria, array $order...
true
c4215be43baff82b2fc7a74a4bca3d5e9964fcf1
PHP
jhonymiler/omega-dashboard
/modulos/painel/models/usuarioModel.php
UTF-8
3,088
2.703125
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of usuarioModel * * @author Jonatas */ class usuarioModel extends Model { public $perm; public function __construct() { $this->perm = array(); parent::__constru...
true
fbf9104c68c6d805388c9557e5a1e707746cb018
PHP
benplummer/calendarful
/src/Event/EventCollection.php
UTF-8
1,387
3.046875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Plummer\Calendarful\Event; use ArrayIterator; use Countable; use InvalidArgumentException; use IteratorAggregate; /** * @implements IteratorAggregate<int, EventInterface> */ class EventCollection implements Countable, IteratorAggregate { /** * @param array<int, Ev...
true
648aa8a4bfaa5fef7a6cd6ec30281df768fe068d
PHP
ngaphan/3wa3
/Programmation/03-E_3WA_internetSite_Promotion 28/Developpement 28/Week-08-23Oct-29Oct/projet ecommerce premiere partie/ecommerce-object/model/Product.class.php
UTF-8
1,210
2.953125
3
[]
no_license
<?php class Product { protected $id; protected $nom; protected $description; protected $prix; protected $image; protected $date_product; public function getId() { return $this->id; } public function setNom($newNom) { $this->nom = $newNom; } public function getNom() { re...
true
4dd5645b660703a65e416b83b7ae5cc024cc2fb8
PHP
Michael-DaSilva/STI-Project2
/site/html/utils.php
UTF-8
440
2.59375
3
[]
no_license
<?php // utils.php // Date de création : 27/09/2020 // Date de modification : 11/10/20 // Auteur : Michaël da Silva & Nenad Rajic // Fonction : fonctions pour la base de données // _______________________________ try { $db = new PDO('sqlite:/usr/share/nginx/databases/database.sqlite'); $db->setAttribute...
true
6f26341dc3dd0506b15f8a052d014292cdf29424
PHP
isilnieks/codelex
/Tasks/Cook/Ingredients.php
UTF-8
313
3.625
4
[]
no_license
<?php class Ingredients { private string $ingredient; public function __construct(string $ingredient) { $this->ingredient = $ingredient; } /** * @return string */ public function getIngredient(): string { return $this->ingredient; } }
true
f6fce577a00316a1eb8f144ced24e91f1a86b968
PHP
AdamHarajda/L2C-KE-PHP-CMS
/private/login_check.php
UTF-8
900
2.640625
3
[]
no_license
<?php require_once dirname(__FILE__)."/../framework/helpers.php"; if (isset($_POST)) { if ( isset($_POST["email"]) && isset($_POST["password"]) ) { $email = $_POST["email"]; $password = $_POST["password"]; //$user = db_single("SELECT * FROM Users WHERE email = '{$email}'"); $us...
true
aa1a47c6ac3e29ec020e4aea7e1c9be51c0e330a
PHP
lexdewilligen/laravel-inertia-menu
/src/MenuItem.php
UTF-8
1,313
3.15625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace RSpeekenbrink\LaravelInertiaMenu; use Illuminate\Contracts\Support\Arrayable; use RSpeekenbrink\LaravelInertiaMenu\Contracts\MenuItem as MenuItemContract; class MenuItem implements MenuItemContract, Arrayable { /** @var string */ protected $title; /** @var string */ protected $route;...
true
145d2c5ffea18ecbb8c4848161d7f87e81628587
PHP
ano-it-com/eav-bundle
/src/EAV/ORM/Persistence/ChangesCalculator/AbstractWithNestedEntitiesChangesCalculator.php
UTF-8
4,246
2.6875
3
[]
no_license
<?php namespace ANOITCOM\EAVBundle\EAV\ORM\Persistence\ChangesCalculator; use ANOITCOM\EAVBundle\EAV\ORM\EntityManager\EAVEntityManagerInterface; abstract class AbstractWithNestedEntitiesChangesCalculator { protected EAVEntityManagerInterface $em; public function __construct(EAVEntityManagerInterface $em)...
true
54ab0d97ca81cef16b75d8140582382de0888e78
PHP
shishir75/upload_download-in-PHP
/download.php
UTF-8
576
2.546875
3
[]
no_license
<?php $db = mysqli_connect("localhost","root","", "up_down"); $query=mysqli_query($db, "select * from upload"); $rowcount=mysqli_num_rows($query); ?> <table border="1"> <tr> <td>ID</td> <td>File Name</td> <td>Download</td> </tr> <?php for($i=1;$i<=$rowcount;$i++) { $row=mysq...
true
d98579ed73ac0abf288e2c204a056735f29fb61d
PHP
orbitturner/banquedupeuple
/src/Model/modelCompte.php
UTF-8
1,843
2.734375
3
[]
no_license
<?php require_once('modelOperation.php'); //==================|CREATION D'UN CLIENT|================== function insererClient($cni, $nom, $prenom, $adresse, $tel){ global $db; $request = "INSERT INTO client Values (null,'$cni','$nom','$prenom', '$adresse','$tel')"; $db->exec(...
true
2ff21ece7b781001ca5047fda1bf5cc2b4c6ffc0
PHP
C0deWiser/journalism
/src/Journal.php
UTF-8
2,655
2.75
3
[ "MIT" ]
permissive
<?php namespace Codewiser\Journalism; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Auth; /** * Class Journal * @package Codewiser\Journalism * * @property integer $id * @property Carbon $created_at * @property st...
true
adfff6bafa545bba48e5e3703b30a2762e71cb9e
PHP
anyname87/autosalon
/yii/protected/models/Tag.php
UTF-8
6,682
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php class Tag extends CActiveRecord { /** * The followings are the available columns in table 'a_tag': * @var integer $id * @var string $name * @var integer $frequency */ //Подключение класса для реализации функционала связи Многие ко Многим public function behaviors(){ return array('CAdvancedArBe...
true
360e378ac6489aba79127a871abe4b1912f14675
PHP
piyush-razorpay/php-laravel-training
/Day-1/mask-phone.php
UTF-8
156
2.640625
3
[]
no_license
<?php declare(strict_types=1); $phoneNumber = "9876543210"; $maskedPhoneNumber = substr_replace($phoneNumber, "******", 2, 6); print($maskedPhoneNumber);
true
f2a65d5ee694dec2f69ac4f361f0b055c2e7017f
PHP
vishalmene/symmongo
/src/IB/StoreBundle/Controller/StoreController.php
UTF-8
1,286
2.53125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace IB\StoreBundle\Controller; use IB\StoreBundle\Document\Product; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\Response; class StoreController extends Controller { /** * @Route("/") ...
true
72b22d1254d69cea4ebc2841025a540b46687ced
PHP
xxlixin1993/spider
/core/Config.php
UTF-8
1,535
3.015625
3
[]
no_license
<?php namespace core; /** * 加载配置文件 */ class Config implements \ArrayAccess{ //将所有的配置存放到自己的私有变量 private $config = array(); //保存要获取的config文件的路径 protected $path; /** * 构造函数 */ public function __construct($path){ //组织配置文件路径...
true
8ca08c9e0cd1269861005a07dec70ae2819c03f9
PHP
dcritchlow/Project2-old
/src/Common/Authentication/Persistence/MySQL.php
UTF-8
1,179
3.203125
3
[ "MIT" ]
permissive
<?php namespace Common\Authentication\Persistence; use Common\Exception\LoginException; use PDO; class MySQL implements AuthInterface { protected $db; protected $username; protected $password; public function __construct($db, $username = '', $password = '') { $this->db = $db; $t...
true
6dd64344891b3ec79043816ff019bfad3be74ced
PHP
joaogutierrre/tcc-public
/classes/HistoricoChamadoDAO.php
UTF-8
1,419
2.59375
3
[]
no_license
<?php require_once 'Model.php'; class HistoricoChamadoDAO extends Model { public function __construct() { parent::__construct(); $this->tabela = 'historico_chamado'; $this->class = 'HistoricoChamado'; } public function inserehistoricoChamado($historicoChamado) { $values = "null...
true
36d67ac5bfeed29681c602c0d344c3aae8dbb0e7
PHP
chogsden/webapp
/_system/mvc.php
UTF-8
3,565
2.578125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?PHP // Default code to generate model, view and controller: $mvc = array( // MODEL Code: 'model1' => ' <?PHP // '.strtoupper($section).' Model // $model = array( \'records\' => array( 1 => array( \'title\' => \''.ucfirst(preg_replace('@_@', ' ', $section)).'\', \'content\' => \''.preg_replace('@_@...
true
d604e7277bd16620cccddab2ef03de4179b7076b
PHP
devmamun/PHP-basic
/26index.php
UTF-8
261
3.578125
4
[]
no_license
<?php function wow($name){ echo "Hello $name <br>"; } $func = "wow"; $func("Al-Mamun"); //second method of variable function $sayHello = function ($name){ echo "Hi $name <br>"; }; $sayHello("Al-Mamun"); ?>
true
e1a39f2d49364e33aecb4f44ca776e1061c0f559
PHP
a772336300/GatewayWorker11
/Applications/YourApp/src/Proto/Proto/CS_Client_Login.php
UTF-8
4,455
2.796875
3
[ "MIT" ]
permissive
<?php /** * Auto generated from new.proto at 2019-05-27 11:47:10 * * proto package */ namespace Proto { /** * CS_Client_Login message */ class CS_Client_Login extends \ProtobufMessage { /* Field index constants */ const PHONE = 1; const PASSWORD = 2; const EQUIPMENT = 3; const LOGIN_TYPE = 4;...
true
42b9854d5dd2f523cd1ad8f4f8553e2438d79f73
PHP
TYPO3/crowdin-bridge
/src/Api/Client.php
UTF-8
1,019
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace TYPO3\CrowdinBridge\Api; use CrowdinApiClient\Crowdin; use TYPO3\CrowdinBridge\Entity\BridgeConfiguration; class Client { /** @var Crowdin */ protected Crowdin $client; /** @var BridgeConfiguration */ protected BridgeConfiguration $configuration; publi...
true
462b84e22af30289d5cd637f13c5aeb21f5c730f
PHP
MarionCrp/Appli_Synthese
/app/models/Myautoloader.php
UTF-8
861
3
3
[]
no_license
<?php /******************************************* * Chargement automatique des classes ********************************************/ class Myautoloader { /** * Constructeur * @param $data array différents attributs de l'objet **/ public function __construct() { } /** * Chargement automatique des classe *...
true
d653e1126790930a9149eae7510cf2650ab93e1a
PHP
ntutdaniel/garbage
/Fetching Data/db/select_all.php
UTF-8
730
2.640625
3
[]
no_license
<?php require_once './conn.php'; session_start(); $conn = new mysqli($host, $user, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $query = mysqli_query($conn, 'SELECT * FROM `imgur`'); while ($res = mysqli_fetch_row($query)) { $array[] = array("id" => $...
true
62768f2ccca067ff5f2069f6ec46c7c062f556e0
PHP
fengzyz/leetcode_php
/php/135/Solution.php
UTF-8
739
3.34375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: shuyu * Date: 2019/9/3 * Time: 17:34 */ class Solution { /** * @param Integer[] $ratings * @return Integer */ function candy($ratings) { $sum=0; for($i=0;$i<count($ratings);$i++){ $nums[$i]=1; } for($i=0;...
true
d01c630f8d56f9a2db71b1d7f6c0c6ed210b9e36
PHP
Pirate30/educationsite
/admin/add-course.php
UTF-8
5,569
2.796875
3
[]
no_license
<?php include('partials/header.php'); ?> <div class="dashboard"> <div class="wrapper"> <h1><strong>Add Course</strong></h1> <br> <h3> <?php // checking if the course is added or not and showig approprate message. if (isset($_SESSION['add-course'])) { ...
true
4426f1dfdf262c21006ac8d28fa14f9c743be26e
PHP
laymix/git-test
/vendor/sylius/invoicing-plugin/src/Model/InvoicePdf.php
UTF-8
511
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Sylius\InvoicingPlugin\Model; final class InvoicePdf { /** @var string */ private $filename; /** @var string */ private $content; public function __construct(string $filename, string $content) { $this->filename = $filename; $this->con...
true
d3c2905638feb2906baeddfcc2c867c7630819e6
PHP
nicolocaruso85/actsmart
/src/Actuators/Slack/SlackDialog.php
UTF-8
1,995
2.875
3
[ "MIT" ]
permissive
<?php namespace actsmart\actsmart\Actuators\Slack; /** * Class SlackDialog * @package actsmart\actsmart\Actuators\Slack * * @todo - just a proof of concept for now - needs to provide generic tools for building dialogs. */ class SlackDialog { private $token; private $trigger_id; private $callback_id...
true
a84013d6f848a32ebcb01711fee2399c724ba070
PHP
jahirsoto16/proyecto1
/WebContent/php/servidor.php
UTF-8
1,874
2.59375
3
[]
no_license
<?php class servidor{ function conectar() { if (!$conexion = mysqli_connect('localhost','root','','tiendaonline')){ echo "No se pudo conectar a la base de datos"; exit; } else{ $sql = "SET NAMES 'utf8'"; mysqli_query($conexion, $sql); return $conexion; } } function...
true
a7f0072ddc5aadea0f7b8334fb946ea2779d6232
PHP
josegonzalez/php-error-handlers
/src/Handler/MonologStreamHandler.php
UTF-8
1,685
2.78125
3
[ "MIT" ]
permissive
<?php namespace Josegonzalez\ErrorHandlers\Handler; use Monolog\Handler\StreamHandler; use Monolog\Logger; class MonologStreamHandler extends AbstractHandler implements HandlerInterface { /** * Constructs and configures an error log stream handler * * @param array $config An array of configuration ...
true
c0f3b801ae97a02326208f6a15297f6049923e2b
PHP
rudiarta/technopartner_test
/app/Repository/Balance/BalanceAdapter.php
UTF-8
241
2.609375
3
[]
no_license
<?php namespace App\Repository\Balance; interface BalanceAdapter { public function GetCurrentBalance() : int; public function GetAllIncomeBalance() : int; public function GetAllOutcomeBalance() : int; }
true
2c018243ad3b6d2c47543c40da2f967660dd4289
PHP
So00/computerv2
/ControlerPoly.php
UTF-8
3,502
3.203125
3
[]
no_license
<?php include_once "SolvePoly.php"; class ControlerPoly extends SolvePoly { public $array; function __construct() { } function parse() { $this->array["left"] = $this->transformParsIntoPol($this->array["left"]); $this->array["right"] = $t...
true
e4558abc7d2ffcb3b737575e9e96535493771a6f
PHP
biosh0KEd/Practicas-de-PHP
/Tema 2/Efrain_while.php
UTF-8
216
3.453125
3
[]
no_license
<html> <head> <title>Ejemplo while</title> </head> <body> <?PHP print ("<ul><br/>"); $i = 1; while ($i <= 5) { print ("<li>Elemento $i</li><br/>"); $i++; } print ("</ul><br/>") ?> </body> </html>
true
ad98ed8ed56dd3947beda8112cb57bb54a5b77ff
PHP
marcoscodnet/lpnklf_ui
/src/main/php/Lpnklf/UI/components/filter/model/UITipoDispositivoCriteria.php
UTF-8
840
2.609375
3
[]
no_license
<?php namespace Lpnklf\UI\components\filter\model; use Lpnklf\UI\components\filter\model\UILpnklfCriteria; use Rasty\utils\RastyUtils; use Lpnklf\Core\criteria\TipoDispositivoCriteria; /** * Representa un criterio de búsqueda * para tiposDispositivo. * * @author Marcos * @since 07/03/2018 * */ class UITipoD...
true
5bae6957e6b8d35b39f5960fab6b25645ebefc52
PHP
Kisoty/Symfony-WebSocket-Chat
/src/Chat/Receivers/ChatUserBatch.php
UTF-8
589
3.015625
3
[]
no_license
<?php declare(strict_types=1); namespace Kisoty\WebSocketChat\Chat\Receivers; use Kisoty\WebSocketChat\Chat\MessageDispatcher; use Kisoty\WebSocketChat\Chat\ChatUser; class ChatUserBatch implements ReceiverInterface { public function __construct( private MessageDispatcher $dispatcher, /** ...
true
06c2563ef47928648d8ada609a523891f2bfa28b
PHP
dimas-powers/testwork
/src/api/src/Service/Order/RefundContext.php
UTF-8
997
2.671875
3
[]
no_license
<?php declare(strict_types=1); /** * Created by PhpStorm. * User: Dmitriy Ivanenko * Date: 22.01.19 * Time: 11:57 */ namespace App\Service\Order; use FOS\RestBundle\Request\ParamFetcher; /** * Class RefundContext * @package App\Service\Order */ class RefundContext { public $order_id; public $amount;...
true
5e845230f3a642dfcedaebad3a46d9a32ef3c4a4
PHP
MEETAUPADHYAY/PHP_B12_G
/shop/admin/download-order.php
UTF-8
2,721
2.65625
3
[]
no_license
<?php require '../vendor/autoload.php'; require_once('../inc/connection2.php'); use Dompdf\Dompdf; $dompdf = new Dompdf(); $output = "<!doctype html><head></head><body><h1 style='text-align:center'>Order Bill</h1>"; $sql = 'select * from bill where id=?'; $statement = $db->prepare($sql); $statem...
true
8367352286ba19b1bf0ce08ce178b1017bb91e90
PHP
samtoya/pricedrummer-projects
/pricedrummer/sites/api/app/Http/Controllers/ScController.php
UTF-8
912
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Sc; use Illuminate\Http\Response; class ScController extends Controller { /** * Get all sc fields along with sc_detail for all columns. * @return mixed paginated JSON results. */ public function index() { $scs = Sc::with( 'sc_detail' )->paginate(); // return ...
true
6b63ec1f743f5b1fbb4bb5cfa7c52ee9382e1f07
PHP
elvis-app/monitor
/MonitorStatus.php
UTF-8
657
2.515625
3
[]
no_license
<?php /** * @datetime 2018/9/27 17:41 * @author fangjianwei * @copyright www.zuzuche.com */ declare(strict_types = 1);//默认严格模式 namespace TantuApiGateway\Monitor; /** * Class MonitorStatus * @package TantuApiGateway\Monitor * @author fangjianwei */ class MonitorStatus { /** * 开启服务 */ c...
true
e7a545441d773712d62c41e70b43f9ac4d5d50be
PHP
drpayyne/warehouse
/src/Command/ImportStock.php
UTF-8
4,237
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Command; use App\Entity\Stock; use Doctrine\Bundle\DoctrineBundle\Registry; use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use Exception; use League\Csv\Reader; use Psr\Container\ContainerInterface; use Symfony\Component\Console\Command\Command; use Symfon...
true
ba0451ddd9003d682d1724f3abd6964c18d49a1f
PHP
aminatadjer/Memory-Aid-for-students
/Flamingo/Utilisateur/EditPwd.php
UTF-8
987
2.578125
3
[]
no_license
<?php $id_user= $_COOKIE['ID']; $bdd = new PDO('mysql:host=localhost;dbname=flamingo;charset=utf8', 'root', ''); $sql = "SELECT * FROM Utilisateur Where id_user='$id_user' "; $req = $bdd->prepare($sql); $req->execute(); $users = $req->fetch(); $pwd = $users['pwd'] ; if (isset($_POST['ancpwd']) && isset($_POST[...
true
ffc55fd58f0b1db920746f5f0100cfe29d25ab88
PHP
rvoorneveld/live.koogzaandijk.nl
/deprecated/app/Match.php
UTF-8
1,394
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; use Carbon\Carbon; class Match extends Model { /** * @var string */ protected $table = 'matches'; /** * @var string */ protected $primaryKey = 'matches_id'; public function getAct...
true
ce334a330ed6cd99ef93cfca636eed21e1c1a7f4
PHP
lkrms/pretty-php
/tests/fixtures/out.01-default/3rdparty/php-doc/appendices/migration70/new-features/002.php
UTF-8
405
3.015625
3
[ "MIT" ]
permissive
<?php // Fetches the value of $_GET['user'] and returns 'nobody' // if it does not exist. $username = $_GET['user'] ?? 'nobody'; // This is equivalent to: $username = isset($_GET['user']) ? $_GET['user'] : 'nobody'; // Coalescing can be chained: this will return the first // defined value out of $_GET['user'], $_POST[...
true
885a38d678251d41197115b7818f26867a4eb27f
PHP
Burnthebook/craft3-ticketsolve
/src/elements/db/EventQuery.php
UTF-8
4,483
2.59375
3
[ "MIT" ]
permissive
<?php /** * Ticketsolve plugin for Craft CMS 3.x * * Pulls venues, shows and events from a Ticketsolve XML feed and keeps your website in sync. * * @link https://github.com/Burnthebook * @copyright Copyright (c) 2020 Burnthebook Ltd. */ namespace burnthebook\ticketsolve\elements\db; use craft\elements\db\...
true
21dc4f6b67b4a46e03458f314c981fff9936d522
PHP
slapa97/basketball-league
/model/Team.php
UTF-8
2,519
3.421875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Piotrek * Date: 2/2/2019 * Time: 1:18 AM */ class Team { private $name; private $games; private $points; private $gamesWon; private $gamesLost; private $pointsScored; private $pointsLost; /** * Team constructor. * @param $name ...
true
15fe0444fb5f918ea126640dc06f5f4c45682f44
PHP
lqj01/hyperf-plus-ui
/src/Components/Antv/Line.php
UTF-8
1,272
2.703125
3
[]
no_license
<?php declare(strict_types=1); /** * This file is part of Hyperf.plus * @link https://www.hyperf.plus * @document https://doc.hyperf.plus * @contact 4213509@qq.com * @license https://github.com/lphkxd/hyperf-plus/blob/master/LICENSE */ namespace HPlus\UI\Components\Antv; use Hyperf\Utils\Str; use HPlus\UI\...
true
73204bcc5b6a80248bbc2f0cef5e0129c181b08b
PHP
Cav0n/Bebes-Lutins
/app/Setting.php
UTF-8
2,589
2.515625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @author Florian Bernard <fbernard@openstudio.fr> */ class Setting extends Model { public static function getValue(string $key, $default = null): string { return \App\Setting::where('key', $key)->exists() ? \App\Setting::where('key',...
true
cdf6965df8feab48113158ce3e74c17c723fc73f
PHP
sacsand/Distributed-Management-System-ITP-PHP-OOP-
/pages/shops/shops_edixxt.php
UTF-8
1,823
2.53125
3
[ "MIT" ]
permissive
<?php $crud = new CRUD(); if(isset($_GET['edt_id'])) { $res=mysql_query("SELECT * FROM shops WHERE auto=".$_GET['edt_id']); $row=mysql_fetch_array($res); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org...
true
5f22970ea2a7c30ceaa0217fd12db14ff22b4716
PHP
AjeshKumarS/Php
/view.php
UTF-8
722
2.53125
3
[]
no_license
<?php $con=mysqli_connect("localhost","root","","attendance"); $qry=mysqli_query($con,"SELECT * FROM employee"); ?> <table border="2px"><tr><td>NAME</td><td>MARK</td><td>LOGIN</td><td>LOGOUT</td><td>HOURS</td></tr> <?php while($r=mysqli_fetch_array($qry)) { ?> <tr><td><?php echo $r['ID'];?></td> <td><?php ech...
true
74d4cca9d87fd59533bb8fa9096ccf5bab19104d
PHP
ddobrokhvalov/profsystem
/common/data/module/client/m_client.php
UTF-8
25,840
2.59375
3
[]
no_license
<?php /** * Модуль "Пользователи" * * @package RBC_Contents_5_0 * @subpackage module * @copyright Copyright (c) 2006 RBC SOFT */ class m_client extends module { /** * Объект шаблонизатора модуля */ protected $tpl; /** * Признак аутентификации пользователя */ protected $is_regis...
true
75a93f9049c158086d8c015ff33188bc8d924a57
PHP
RazorNova/N4SJAMK.github.io
/_site/sendForm.php
UTF-8
1,075
2.765625
3
[ "MIT" ]
permissive
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Send Form</title> </head> <?php // function to validate email addrees in case of malicious spams function spamcheck($field) { // Sanitize e-mail address $field=filter_var($field, FILTER_SANITIZE_EMAIL); // Validate e-mail address if(filter_var($field...
true
d201f736b229687ab0c94cd01ad5eb5bd2f272c3
PHP
sahilrajiv/ches-php-backend
/single.php
UTF-8
7,620
2.59375
3
[]
no_license
<?php require('config/config.php'); require('config/db.php'); ?> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" /> <?php $id = mysqli_real_escape_string($conn, $_GET['blog_id']); $query1 = "SELECT * from blog_data where blog_id='$id'"; $query2 = "SELECT tags.t...
true
c4d3da89a82726c45f20311b5f60b8347f1305f1
PHP
mediact/data-container
/tests/DataContainerTest.php
UTF-8
19,040
2.65625
3
[ "MIT" ]
permissive
<?php /** * Copyright MediaCT. All rights reserved. * https://www.mediact.nl */ namespace Mediact\DataContainer\Tests; use ArrayIterator; use Mediact\DataContainer\DataContainer; use Mediact\DataContainer\DataContainerInterface; use PHPUnit\Framework\TestCase; /** * @coversDefaultClass \Mediact\DataContainer\Da...
true
4831816256b020de806ef1df19b91a8e56863e34
PHP
Tape/RaidRifts-Site
/application/controllers/browse.php
UTF-8
1,491
2.515625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Browse extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('browse_model'); } /** * Index Page for this controller. */ public function index() { $data = array( 'body' => 'b...
true
792d2a9cd3d94bcbc0226b59e915d4403e55e9c2
PHP
kkleidal/identify
/identify_client.php
UTF-8
4,304
2.6875
3
[ "MIT" ]
permissive
<?php require_once( __DIR__ . '/config.php' ); require_once( __DIR__ . '/gpg_wrapper.php' ); if ( IDENTIFY_PARTY != "CLIENT" ) { echo "Operation prohibited."; die(); } /* Requires the following constants to be set: SQL_URI SQL_USER SQL_PASS SQL_DB SQL_IDENTIFY_TABLE IDENTIFY_SERVER_URL PATH_...
true
e6aceb57bde4b5ffe9386d20e7857e028c32f410
PHP
GaneshChandrasekaran/php-coderpad
/tests/SolutionTest.php
UTF-8
254
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Tests; use App\Solution; use PHPUnit\Framework\TestCase; class SolutionTest extends TestCase { public function testTest() { $solution = new Solution(); self::assertSame('Hello', $solution->test()); } }
true
c56ff030691aa99007a8aa9f2a29cc19dfb0e0c9
PHP
emixamdu/Project
/Controleur/ControleurOffre.php
UTF-8
528
2.796875
3
[]
no_license
<?php require_once "Modele/Annonce.php"; require_once "Modele/Offre.php"; require_once "Vue/Vue.php"; class ControleurOffre { private $annonce; private $offre; public function __construct() { $this->annonce = new Annonce(); $this->offre = new Offre(); } public function offre($idAnnonce) {...
true
d517f8856f2026fdac272cb9737ab714f69ad4ef
PHP
ralozkolya/iteq
/application/models/Brand.php
UTF-8
1,541
2.515625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Brand extends MY_Model { protected $table = 'brands'; public function get($id) { $lang = get_lang_code(get_lang()); $this->db->select(array( '*', $lang.'_name as name', )); return parent::get($id); } public function get...
true
609e786eab649f1d973618314f68dcdbbdac4fd9
PHP
dilpreetparadisetechsoft/laravelsample
/app/DocumentType.php
UTF-8
642
2.65625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class DocumentType extends Model { protected $table = 'document_type'; /** * Table primary key * */ protected $primaryKey = 'doc_type_id'; /** * The attributes that are mass assignable. * * @var array */ ...
true
4aa94831fdb2fa93d47d3812416d826cd9b5f524
PHP
khapro/cake_web
/Core/ModelDB.php
UTF-8
1,254
2.828125
3
[]
no_license
<?php namespace App\Core; use App\Core\Application; abstract class ModelDB extends Model { abstract public function get_table() : string; abstract public function get_atributes(): array; public function save() { $table = $this->g...
true
c0eed7aef4b06137f957ece9617cda896cdf2b93
PHP
IrealiTY/destiny-api
/website/api/Objects/User/EmailViewDefinition/EmailViewDefinition.php
UTF-8
685
2.515625
3
[]
no_license
<?php namespace Destiny2\Api\Objects\User\EmailViewDefinition; /** * EmailViewDefinition * * Represents a data-driven view for Email settings. Web/Mobile UI can use this * data to show new EMail settings consistently without further manual work. */ class EmailViewDefinition { const TYPE = 'object'; pub...
true
5a490ed47f49dc7d1e3638293f7941a72c093e25
PHP
awei666666/write_mvc
/Application/Install/Common/function.php
UTF-8
3,478
2.734375
3
[]
no_license
<?php /** * 公共函数库 * @author 韩威兵^life <1877361302@qq.com> * @copyright 2016 - 2016 粮易网 <jztl2012@163.com> * @version $Id: 2016/8/8 9:32 liangyi2.0 function.php 韩威兵^life $ */ /** * 动态获取数据库名称 * @param $table_name 数据库除前缀的名称 * @return string 返回动态数据库名称 */ function get_table_name($table_name) { $str = C('DB_PREFIX'...
true
900a6965021acdbee3cd24943f8b380931aaec34
PHP
tdl2016isfac86/youtof
/project/includes/classes/picture.php
UTF-8
3,695
3
3
[]
no_license
<?php /* ------------------------------ includes/classes/picture.php ---------------------------------*/ class Picture { private $id; private $legend; private $uploadDate; private $resolution; private $filesize; private $uploaderId; function __construct($id = 0){ if($id !...
true
2e1f8a129f4e9819e31efff1a5e1f9f050ae7be1
PHP
yanaFramework/yanaFramework
/trunk/libs/yana/views/templates/nulltemplate.php
UTF-8
4,648
2.984375
3
[]
no_license
<?php /** * YANA library * * Software: Yana PHP-Framework * Version: {VERSION} - {DATE} * License: GNU GPL http://www.gnu.org/licenses/ * * This program: can be redistributed and/or modified under the * terms of the GNU General Public License as published by the * Free Software Foundation, either version...
true
d57bb54dd2d83634358935df290702a5d5df787d
PHP
tolik505/baby
/common/models/Banner.php
UTF-8
2,025
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%banner}}". * * @property integer $id * @property integer $type * @property integer $category_id * @property integer $banner_location * @property string $label * @property string $small_label * @property string $content * @p...
true
b9c7085de0c12f71d0c53c300112f9de07f97bf0
PHP
Mecanne/Pufosa
/menu.php
UTF-8
1,683
2.796875
3
[]
no_license
<?php session_start(); $conexion = mysqli_connect("localhost","root","","pufosa") or die("Problemas con la conexion."); require_once("funciones.php"); /** * Si hay una sesion iniciada, cogerá los datos de esa sesion. */ if(isset($_SESSION['emp_id'])){ $user_valido = t...
true
5dd9ef0619064e86186581b03159c730f158be56
PHP
CrazyAwesomeCompany/file-server
/src/CAC/Component/File/FileHandler.php
UTF-8
710
2.828125
3
[]
no_license
<?php namespace CAC\Component\File; use CAC\Component\File\Storage\FileStorageInterface; class FileHandler { /** * The File Storage * * @var \CAC\Component\File\Storage\FileStorageInterface */ private $storage; public function __construct(FileStorageInterface $storage) { ...
true
5c57882312f71902af1ed1569429357f03e871d8
PHP
derhofbauer/sae-wdd319
/mvc/app/Controllers/CheckoutController.php
UTF-8
11,368
2.84375
3
[]
no_license
<?php namespace App\Controllers; use App\Models\Address; use App\Models\Cart; use App\Models\Order; use App\Models\Payment; use App\Models\User; use Core\Helpers\Config; use Core\Session; use Core\View; class CheckoutController { const PAYMENT_KEY = 'checkout-paymentId'; const ADDRESS_KEY = 'checkout-addres...
true
25d1ebf11f9f5e5147f18278a856ca7663e129c4
PHP
Petschko/Petschkos-Framework
/includes/AntiSpam.php
UTF-8
8,972
3.046875
3
[ "MIT" ]
permissive
<?php /** * @author Peter Dragicevic [peter@petschko.org] * @link https://petschko.org/ * Date: 16.12.2020 * Time: 10:56 * * Notes: - * * @copyright 4Point (Paul-Hast GmbH) */ defined('BASE_DIR') or die('Invalid File-Access'); require_once(INCLUDE_DIR . DS . 'HoneypotField.php'); session_start(); /** * Cla...
true
75e7ddf342c969c865557fc6f8a2b8d30c6d840d
PHP
lypeng29/mvc
/app/controller/Index.php
UTF-8
4,587
2.53125
3
[]
no_license
<?php namespace app\controller; use fastphp\base\Controller; class Index extends Controller { public function index(){ echo 'hello world!<hr/>'; $manager = new \MongoDB\Driver\Manager("mongodb://lypeng:jobs89757Aa@119.29.52.50:27017"); $query = new \MongoDB\Driver\Query([], ['limit' => 10])...
true
54dadc299b94eeb2215ac488597b6e8436d932f4
PHP
colehellman/finalProject
/php-mysql/index.php
UTF-8
1,701
2.796875
3
[]
no_license
<?php session_start(); if (isset($_POST['submit'])) { include("connection.php"); //connection.php $username = strip_tags($_POST['username']); $password = strip_tags($_POST['password']); $sql = "SELECT id, username, password FROM users WHERE username = '$username' AND activated ...
true
fbb15fe51916cebadd678cfac86fde7c1c789b25
PHP
tecnicoroot/tcc
/api-oxigeni/app/Http/Controllers/V1/User/UserController.php
UTF-8
1,167
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Http\Controllers\V1\User; use App\Http\Controllers\AbstractController; use App\Services\User\UserService; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; /** * Class UserController * @package App\Http\Controllers\V1\User */...
true
9e8079717cd8fc7b69125eab54b0588b15de5fdc
PHP
langyastudio/algorithms-php
/lib/recursion.php
UTF-8
368
3.53125
4
[]
no_license
<?php /** * 如果使用循环,程序性能可能更好 * 如果使用递归,程序可能更容易理解 - 基线条件(不再调用自己)+ 递归条件 * * 递归使用调用栈,如果栈很高,意味着计算机存储大量函数的调用信息 */ function fact($x) { //base case if(1 == $x) return 1; return $x * fact($x-1); }
true
11e22fc3e92bfda860e64e8513fcb828196723a2
PHP
higorcavalcanti/sin342
/app/Models/Atendimento.php
UTF-8
922
2.9375
3
[]
no_license
<?php class Atendimento extends Model { protected $id; protected $pergunta; protected $resposta; public function __construct($obj = array()) { $this->setAll($obj); } /** * @return mixed */ public function getId() { return $this->id; } /** * @par...
true
960918856194bb00c52635e01b1aebba5ef1b339
PHP
SiobanDev/BlablaMovieAPI
/src/Service/User/UserService.php
UTF-8
3,499
2.71875
3
[]
no_license
<?php namespace App\Service\User; use App\Entity\User; use App\Repository\UserRepository; use App\Service\Vote\VoteService; use DateTime; use Doctrine\ORM\EntityManagerInterface; use Exception; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel...
true
e99b55ff19a344e367587e04c58329bd939a6ebc
PHP
RoryEgan/app-scripts
/Login.php
UTF-8
854
2.578125
3
[]
no_license
<?php include('DatabaseController.class.php'); $db = new DatabaseController(); $connection = $db -> connect(); if(isset($_POST['PhoneNumber']) && isset($_POST['Password'])) { $phoneNumber = $db->quote($_POST['PhoneNumber']); $password = $db->quote($_POST['Password']); $sqlSelect = "...
true
fd2b76b68c58537c66592b32e5cbc4720cf6a596
PHP
nimishasiby/pet-echange-main-project
/reg/register/OOP/regform/colorlib-regform-3/advinsert.php
UTF-8
360
2.625
3
[]
no_license
<?php //error_reporting(0); require_once("classes/AdvancedDataAccess.class.php"); $adao = new AdvancedDataAccess(); $student=array(null,"manu","sr123","cse","male",2014); if($adao->insertFull($student,"students")) { $msg="Success"; } else { $msg="Failed"; } ?> <html> <head> </head> <BODY> <H3><?php ...
true
bb4f18c5fdf81896e40f001bd4de8335a5fe8e70
PHP
cristiankode/cotizador
/CEXP2/controllers/CotizacionController.php
UTF-8
572
2.609375
3
[]
no_license
<?php include ("../models/CotizacionDAO.php"); class CotizacionController{ private $model; public function __construct() { $this->model = new CotizacionDAO(); } public function set($status_data = array()){ return $this->model->set($status_data); } public func...
true
45841465cac6b794e2c9cac96ed2144692808594
PHP
fahmialdrs/inventoryOxy
/database/seeds/UsersSeeder.php
UTF-8
1,514
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Role; use App\User; class UsersSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //create admin $adminRole = new Role; $adminRole->name = 'admin'; $adminRole->display_name ...
true
2340906fccbcecd54570961aff849402d827cbfb
PHP
pmSven/pm-shopware-base-project
/src/public/engine/Shopware/Bundle/MediaBundle/Struct/MediaPosition.php
UTF-8
2,840
2.640625
3
[ "Apache-2.0", "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * perm...
true
26d75c2d943534e438ddfebeaef071ee9950df49
PHP
dmcps/opeanapi-php-sdk
/src/Endpoints/RequestParams.php
UTF-8
501
2.515625
3
[]
no_license
<?php namespace Duomai\CpsClient\Endpoints; use Duomai\CpsClient\Network\EndpointBase; /** * 自定义接口请求 * Class RequestParams * @author real<real@goldenname.com> * @since 1.0 * @package Duomai\CpsClient\Endpoints */ class RequestParams extends EndpointBase { protected $service; public function __constr...
true
10e3815780f8f88345cda3e77d382ca12e6b4cb8
PHP
turtlepod/shell
/content/index.php
UTF-8
4,851
2.53125
3
[]
no_license
<?php /** * Loop Content Template * * Template used to show post content when a more specific template cannot be found. * * @package Shell * @subpackage Template * @since 0.1.0 */ do_atomic( 'before_entry' ); // shell_before_entry ?> <article <?php shell_post_attributes(); ?>> <?php /* shell_...
true
97b4392df690e2d276e66013140980549c0f99fb
PHP
cddsky2014/121
/curl/ftp.php
UTF-8
708
2.609375
3
[]
no_license
<?php //定义文件路径 $file_url = './a.php'; //定义ftp上传路径,格式:"ftp://用户名:密码@域名:端口号/文件路径" $ftp_url = 'ftp://thinksite:123@192.168.34.29:21/test.php'; //初始化会话 $ch = curl_init(); //设置请求地址 curl_setopt($ch, CURLOPT_URL, $ftp_url); //启用后允许文件上传。 curl_setopt($ch, CURLOPT_UPLOAD, 1); //读取文件资源 ...
true
b784009e8be82cc871b56203e3a160ed6544b496
PHP
clem96/clement
/Classe.php/Voiture.Class.php
UTF-8
1,074
3.53125
4
[]
no_license
<?php class Voiture { //attribut private $_marque; private $_model; private $_km; public function __construct( array $option = []) { if(!empty($option)) { $this->hydrate($option); } } public function hydrate($data) { foreach ($data as $key => $value) ...
true
5cae64ca5a8912ab70ab95a59774df5c2a57842c
PHP
MrsYHY/qingdao
/common/forms/BlogForm.php
UTF-8
1,150
2.578125
3
[]
no_license
<?php /** * @author kouga-huang * @since 15-12-9 下午1:55 */ namespace common\forms; class BlogForm extends BaseForm{ public $id; public $title;//标题 public $subtitle;//子标题 public $content;//内容 public $author;//作者 public $click;//点击量 public $classification; public $cl...
true
8d25fd756c13f6066cc91f82712303f8cafa92d0
PHP
utopia-php/abuse
/src/Abuse/Adapters/TimeLimit.php
UTF-8
10,017
2.71875
3
[ "MIT" ]
permissive
<?php namespace Utopia\Abuse\Adapters; use Throwable; use Utopia\Abuse\Adapter; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Authorization as AuthorizationException; use Utopia\Database\Exception\Duplicate; use Utopia\Database\Exception\Struct...
true
77685194c04af8dd8d094472e928f27e5dbd445f
PHP
hsojgono/silverland
/application/models/Employee_training_model.php
UTF-8
2,008
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Employee_training_model extends MY_Model { protected $_table = 'employee_trainings'; protected $primary_key = 'id'; protected $return_type = 'array'; /** * Callbacks or Observers */ protected $before_create = ['generate_d...
true
f5dc2b64cb77d89ac8ee1c98b6a773d423c7cd96
PHP
gagajanik/php_monkeying
/test.php
UTF-8
608
2.796875
3
[]
no_license
<? require 'conn.php'; ?> <table border='1px'> <thead> <th>id</th> <th>saxeli</th> <th>gvari</th> <th>asaki</th> </thead> <tbody> <? $sql = "SELECT id, saxeli, gvari, asaki FROM pirveli"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($...
true
e8c260781986c3b051c9ab03d1a3407c99af134c
PHP
rmobis/gde
/classes/GDE/Quote.inc.php
UTF-8
2,472
2.609375
3
[]
no_license
<?php namespace GDE; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Query\ResultSetMappingBuilder; /** * Quote * * @ORM\Table( * name="gde_quotes", * indexes={ * @ORM\Index(name="tipo", columns={"tipo"}), * @ORM\Index(name="hash", columns={"hash"}) * } * ) * @ORM\Entity */ class Quote extend...
true
3b426e154292c4c94add2a038c9ae7e7fedd7985
PHP
andreyserdjuk/noframework-rest-api
/src/HttpKernel/Exception/UnauthorizedException.php
UTF-8
302
2.59375
3
[]
no_license
<?php namespace AndreySerdjuk\HttpKernel\Exception; use AndreySerdjuk\HttpFoundation\ResponseInterface; class UnauthorizedException extends RuntimeException implements HttpExceptionInterface { public function getHttpCode(): string { return ResponseInterface::HTTP_FORBIDDEN; } }
true
1cdb9e4d71a0dd63267becf0c7f7ac00b9453a81
PHP
tpavlek/ORALISM
/app/models/User.php
UTF-8
1,802
2.796875
3
[]
no_license
<?php use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; class User extends Eloquent implements UserInterface, RemindableInterface { public static function classes() { return array('a' => "Administrator", 'd' => "Doctor", ...
true