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
1658c655f75d4c2c308eb135872ffa5e16c6d3c2
PHP
AlexandreCavanna/Openclassroom_Projet-4
/models/RegisterManager.php
UTF-8
1,581
2.890625
3
[]
no_license
<?php class RegisterManager extends Manager { /** * Fonction pour vérifier à l'inscription que le pseudo n'est pas déjà utilisé dans la bdd * * @param [type] $pseudo * @return $checkPseudo */ public function checkPseudo($pseudo) { $req = $this->getDb()->prepare('SELEC...
true
48bc9cc389c689daec218c4b7f81ecc3577c7824
PHP
rafaeldimas/laravel-challenge
/app/Excel/Event/ExportHandler.php
UTF-8
910
2.578125
3
[]
no_license
<?php namespace App\Excel\Event; use App\Models\Event; use Maatwebsite\Excel\Files\ExportHandler as ExportHandlerInterface; class ExportHandler implements ExportHandlerInterface { /** * Handle the export * @param $export * @return mixed */ public function handle($export) { $...
true
bd7fb064b28303575094dd3bf6c26d54c3ffc9dd
PHP
jcshep/ForgeHillFarms
/models/Category.php
UTF-8
2,112
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\helpers\ArrayHelper; /** * This is the model class for table "menu_category". * * @property integer $id * @property string $title */ class Category extends \yii\db\ActiveRecord { public function init() { $this->display_menu = 1; $this->d...
true
cc2046a06250d89cf86a921d7b249142a98d284b
PHP
SmgIonidea/ionerp
/ionerpServer/application/controllers/configuration/Department.php
UTF-8
3,506
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* -------------------------------------------------------------------------------------------------------------------------------- * Description : Controller Logic for Department List and Add, Edit Functionality. * Variable and Function Naming: cammelCaseNotation is followed (First letter of the first word s...
true
771593e3f70a62f88a78fd18a629436754f8ce95
PHP
seastarWeb/seastar
/_protected/backend/models/Order.php
UTF-8
2,933
2.546875
3
[]
no_license
<?php namespace backend\models; use Yii; /** * * This is the model class for table "tbl_order". * * * * @property integer $order_id * * @property integer $ordertype * * @property string $ordertds * * @property integer $order_customer_id * * @property string $updated_at * * @property string $status * * @prop...
true
cb03119808b314f41d4df3deac2f36d82a6fbb72
PHP
codenamesrk/Resuminator
/database/seeds/ReportsTableSeeder.php
UTF-8
789
2.890625
3
[]
no_license
<?php use Illuminate\Database\Seeder; class ReportsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Creating Rough Reports factory(App\Report::class,4)->create(); // Adding Paramters to Reports $...
true
01a8ec25d92dba85c82cbf349b820627378d22e1
PHP
romaborzin/diplom
/app/models/User.php
UTF-8
4,908
2.796875
3
[]
no_license
<?php use Phalcon\Validation; use Phalcon\Validation\Validator\PresenceOf; use Phalcon\Validation\Validator\Email as EmailValidator; use Phalcon\Validation\Validator\Uniqueness as UniquenessValidator; use Phalcon\Validation\Validator\Regex as RegexValidator; class User extends \Phalcon\Mvc\Model { /** ...
true
14a3992c9bd54b7338f959f27127978a7f54e32a
PHP
alocosta29/cnw
/0.0.2/Plugin/Notifications/Controller/SystemsreleasesController.php
UTF-8
4,344
2.75
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Systemsreleases Controller * * @property Systemsrelease $Systemsrelease */ class SystemsreleasesController extends AppController { /** public function index() { $this->Systemsrelease->recursive = 0; $this->set('systemsreleases', $this->paginate()); } pub...
true
ec3a2d78b20a2ac9cdc29ffb58574ca442585b97
PHP
ddrieck/WTS-Coursework
/ita343a/exercises/exercise-06/customize.php
UTF-8
3,420
2.546875
3
[]
no_license
<?php if (isset($_POST['font_size'], $_POST['font_color'])) { setcookie('font_size', $_POST['font_size'], time()+10000000, '/', '', 0); setcookie('font_color', $_POST['font_color'], time()+10000000, '/','', 0); $msg = '<p>Your settings have been entered! Click <a href="view_settings.php">here</a> to see them in a...
true
6284f218b9b4419b7047890b2da2932576ab7318
PHP
chrisguitarguy/RealUnitTesting
/test/DefaultCartTest.php
UTF-8
2,426
2.765625
3
[]
no_license
<?php /** * Real Unit Testing * * Code for a talk given at Northeast PHP 2014: http://www.northeastphp.org/ * * @copyright 2014 Christopher Davis * @license http://opensource.org/licenses/MIT MIT */ namespace Chrisguitarguy\RealUnitTesting; use SebastianBergmann\Money\Money; use SebastianBergmann\Money\C...
true
0b42d2087d4a7509e68258bd1bdd55e291c02b80
PHP
beeeeeet/cocospase
/IESOインターン/mission2/mission_2-8.php
UTF-8
510
2.546875
3
[]
no_license
<?php $db = new PDO('mysql:host=localhost;dbname=database;charset=utf8','user','pass'); if(!$db){ echo "connect error"; } $sql="DROP TABLE IF EXISTS t1"; if($db->exec($sql)){ echo "drop table"; } $db->query('SET NAMES utf8'); $sql="CREATE TABLE IF NOT EXISTS t1(" ."ID INT PRIMARY KEY NOT NULL AUTO_IN...
true
2b738cf7ec366856c4226f3e476002af0f34f50b
PHP
kowi90/mvc_test
/Controllers/Login.php
UTF-8
507
2.625
3
[]
no_license
<?php use Lib\Controller as Controller; use Lib\Session as Session; use Models\User as User; class Login extends Controller { public function logintry($postdata) { $inputname = $postdata['inputname']; $inputpass = $postdata['inputpass']; $user = new User; $user->findByName($inputname); if($user->getP...
true
c024e07a431058c7b8b2498eacb7a189c27d884b
PHP
sanzhumu/nextwind
/src/extensions/schooldata/admin/ManageController.php
UTF-8
4,645
2.53125
3
[]
no_license
<?php Wind::import('ADMIN:library.AdminBaseController'); Wind::import('WINDID:service.school.dm.WindidSchoolDm'); Wind::import('WINDID:service.school.WindidSchool'); /** * 中国数据 * * @author jinlong.panjl <jinlong.panjl@aliyun-inc.com> * @copyright ©2003-2103 phpwind.com * @license http://www.phpwind.com * @versio...
true
5f7e2476b354d2c4e0c85671d469cf7fac4bfbbe
PHP
eastwards/SpringOld
/MVC/Util/DataFilter.php
UTF-8
2,546
3.125
3
[]
no_license
<? /** +------------------------------------------------------------------------------ * Spring框架 数据过滤组件(MVC辅助工具) +------------------------------------------------------------------------------ * @mobile 13183857698 * @qq 78252859 * @author void <lkf5_303@163.com> * @version 3.1.4 +------------------...
true
1a03536ecfbf2c7ceb5a08d07846ace722942064
PHP
nicodmf/Bnfphp
/utils/bnfParser.php
UTF-8
4,895
3.21875
3
[]
no_license
<?php namespace BNF; /** * Set of functions to parse rules * * @author Nicolas de Marqué Fromentin * @since 2011 * */ class bnfParser{ /** * The bnf system * @var bnf $bnf */ public $bnf; /** * Construct the parser * @param bnf $bnf * @return bnfParser */ public function __construct(bnf $...
true
e75223d497b365f30c9df3743f6d7a36f4ed973d
PHP
msaad1999/KLiK-SocialMediaWebsite
/includes/delete-poll.inc.php
UTF-8
706
2.578125
3
[ "MIT" ]
permissive
<?php session_start(); if (isset($_GET['pollid']) && isset($_SESSION['userId']) && ($_SESSION['userLevel'] == 1)) { require 'dbh.inc.php'; $poll = $_GET['pollid']; $sql = "delete from polls where id=?"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { ...
true
1c2a22be206b8a8c32b93b32581befcce2e2e330
PHP
Elyspio/s7-tidal
/src/config/Debug.php
UTF-8
201
2.75
3
[]
no_license
<?php namespace config; class Debug { /** * Will only log public property * @param $any */ static function log($any) { echo "<script>console.log(" . json_encode($any) . ")</script>"; } }
true
d7e3c0a2173d145a150a7db03916c67c918fc04b
PHP
gotakk/ViewModelBundle
/ViewModel/ViewModelAssembler.php
UTF-8
1,388
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace gotakk\ViewModelBundle\ViewModel; use gotakk\ViewModelBundle\ViewModel\ViewModelNode; abstract class ViewModelAssembler { protected $vmService; protected $skel = array(); public function setViewModelService($vmService) { $this->vmService = $vmService; } public functi...
true
ea7e62051b7e520bcccade9a5da6ed265f021cbe
PHP
42bits/packages-php
/Page.php
UTF-8
5,825
2.953125
3
[]
no_license
<?php namespace app\packages\Page; class Page { private $total; //总记录 private $pagesize; //每页显示多少条 private $limit; //limit private $page; //当前页码 private $pagenum; //总页码 public $url; //地址 public $jumpUrl; //输入页数跳转基础url public $limitUrl; ...
true
a08dba96177e71592420485d7033b322ab2b4381
PHP
iwayanbagus82/sastrawi
/src/Sastrawi/Morphology/Disambiguator/DisambiguatorPrefixRule30c.php
UTF-8
704
2.859375
3
[ "MIT", "CC-BY-NC-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Sastrawi (https://github.com/sastrawi/sastrawi) * * @link http://github.com/sastrawi/sastrawi for the canonical source repository * @license https://github.com/sastrawi/sastrawi/blob/master/LICENSE The MIT License (MIT) */ namespace Sastrawi\Morphology\Disambiguator; /** * Disambiguate Prefix...
true
b413859d33a91aadbf30d545f5b6219b9d2235d5
PHP
s594231256/ci
/application/models/Books_model.php
UTF-8
1,458
2.6875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Books_model extends MY_model { public $book_status = array(1=>'可用',2=>'借出',3=>'下架'); public function __construct() { parent::__construct(); $this->load->database(); } //列表搜索获取图书 public function get_books($book_name,$category) { if(!empty($book_name)) ...
true
c0b971e3f8caff6421be7db011d2743ab42b999b
PHP
Slatch/telegram-bot-client
/src/Entities/ChatMemberBanned.php
UTF-8
364
2.6875
3
[ "MIT" ]
permissive
<?php namespace Slatch\TelegramBotClient\Entities; class ChatMemberBanned extends ChatMember { private int $untilDate; public function __construct(array $payload) { parent::__construct($payload); $this->untilDate = $payload['until_date']; } public function getUntilDate(): int ...
true
3d3339cefdbfc382a92bfaa443e392d264b5e037
PHP
jcmatos97/RentCar
/application/models/Inspeccion_model.php
UTF-8
1,020
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Inspeccion_model extends CI_Model { public function __construct() { parent::__construct(); //Codeigniter : Write Less Do More $this->load->database(); } public function get() { $args = func_get_args();...
true
40078c8b50ebc46b5defd094593faef9927a6da1
PHP
daylerees/presenters
/tests/PresenterTest.php
UTF-8
4,539
2.640625
3
[]
no_license
<?php class PresenterTest extends PHPUnit_Framework_TestCase { public function test_that_a_presenter_can_be_created() { return new FirstPresenter; } public function test_that_a_presenter_can_give_a_payload() { $p = new SecondPresenter; $r = $p->getPresentedPayload(); ...
true
0cfa96aefed02afebea570dcc6fffc76a0f7661a
PHP
Team-Nifty-GmbH/flux-core
/src/Services/StockPostingService.php
UTF-8
899
2.578125
3
[ "MIT" ]
permissive
<?php namespace FluxErp\Services; use FluxErp\Actions\StockPosting\CreateStockPosting; use FluxErp\Actions\StockPosting\DeleteStockPosting; use FluxErp\Helpers\ResponseHelper; use FluxErp\Models\StockPosting; use Illuminate\Validation\ValidationException; class StockPostingService { public function create(array ...
true
df6a9f7b8be3ed48f2183dff33f5550d6f409bb7
PHP
H1lbert/php_redux
/login/index.php
UTF-8
3,222
2.5625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="style.css"> <title>PHP menu</title> </head> <body> <div class="menu"> <?php include 'menu.php';?> </div> <h1>Welcome to my solution!</h1> <h1>Sign up!</h1> <!-- Nedenfor ses de 2...
true
54049cdf08f6fbf5883ab9b270f50588017dfe29
PHP
jason-aw/beeflix
/app/Movie.php
UTF-8
344
2.59375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Movie extends Model { // Relation with genre public function genre() { return $this->belongsTo(Genre::class); } // Relation with episodes, 1 movie many episodes public function episodes() { return $this->hasMany(E...
true
8ee486aa9f734f2f326079502d3763b44ad0c6a3
PHP
jacobg213/git-search
/app/Domain/RequestInterface/Repository.php
UTF-8
981
3.234375
3
[]
no_license
<?php namespace App\Domain\RequestInterface; class Repository { public $name, $full_name, $description, $author, $rating, $url, $created_at, $updated_at; /** * Repository constructor. * @param string $name * @param string $full_name * @param string $description * @param string $autho...
true
f38d71d086f44b739c1973fc90a1640b0965ccea
PHP
Yazeed-Idris/swe-363-term-project-group-09-1-main
/php/review.php
UTF-8
1,464
2.8125
3
[]
no_license
<?php require_once("meal_db.php"); if ($_SERVER['REQUEST_METHOD'] === 'GET') { $meals = new Meal_db(); $reviews = $meals->getMealReviews(); if (isset($_GET)) { $mealID = $_GET["id"]; } $reviewsArr = array(); foreach ($reviews as $review) { if ($review["meal_id"] == $mealID) {...
true
56435e489298ad32db4b983648d7ff4890c1c52e
PHP
fruggerr/monitora
/admin/config.php
UTF-8
421
2.515625
3
[]
no_license
<?php //Credencial do banco de dados define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', '#!1Logi2Nicola3S!#'); define('DB_NAME', 'site_monitora'); // Variável para conectar com o MySQL $db_con=mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); // Verifica a conexão if ($...
true
7e04ad462361743b3b0d43673506eff5844055d9
PHP
piephpframework/framework
/Modules/Database/ResultSet.php
UTF-8
3,736
3.296875
3
[]
no_license
<?php /** * * @author Ryan Naddy <rnaddy@corp.acesse.com> * @name ResultSet.php * @version 1.0.0 Sep 30, 2015 */ namespace Pie\Modules\Database; use Iterator; /** * @property int $length The number of items in the result set */ class ResultSet implements Iterator{ protected $items = [], ...
true
2a616bd9c4bc2c03f69198240b36446e29940734
PHP
pavel-256/furniture
/app/Product.php
UTF-8
5,843
2.765625
3
[ "MIT" ]
permissive
<?php namespace App; use Cart; // class from darryldecode use DB; // inner class to take data from database use Illuminate\Database\Eloquent\Model; use Image; use Session; class Product extends Model { public static function getProducts($curl, &$viewData) // url=(name-name) and <title>xxx<title> by reference fro...
true
23db4206a0684db15dc0b735ac60a9073e0b68fc
PHP
Lukasz93P/gitHubRepoComparator
/src/GitHubRepoComparator/Serialization/Serializer/Serializer.php
UTF-8
327
2.609375
3
[ "MIT" ]
permissive
<?php namespace GitHubRepoComparator\Serialization\Serializer; use GitHubRepoComparator\Serialization\Serializable\Serializable; interface Serializer { /** * @param Serializable $serializable * @return string * @throws \RuntimeException */ public function serialize(Serializable $serializa...
true
9c8dceb6328b23fe4fa436101408080ce6b60ba5
PHP
oshinsingh/EasyTable
/Send_Mail.php
UTF-8
1,064
2.71875
3
[]
no_license
<?php function Send_Mail($to,$subject,$body) { //echo "salsa"; require 'PHPMailer/class.smtp.php'; require 'PHPMailer/class.phpmailer.php'; $from = "easytable123@gmail.com"; $mail = new PHPMailer(); $mail->IsSMTP(true); // use SMTP $mail->IsHTML(true); $mail->SMTPAuth = true; $mail->Maile...
true
64d397974926692d3be754a59d4db55dac8ff57e
PHP
jarrettbarnett/PsuedoRandomizer
/src/PsuedoRandomizerInterface.php
UTF-8
201
2.8125
3
[]
no_license
<?php namespace PsuedoRandomizer; interface PsuedoRandomizerInterface { /** * Primary method used to generate random number * * @return mixed */ public function random(); }
true
34250d02247cb4c94c98447c2a3cd8f304fde438
PHP
saifxhatem/news_app
/app/Http/Controllers/UserController.php
UTF-8
2,822
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Faker\Generator as Faker; use Illuminate\Support\Facades\Mail; use App\Mail\Mailer; use App\Jobs\SendEmails; use Validator; use Bouncer; class UserController extends Controller { public function register(Request $requ...
true
384d146996c564600264f9d3b5a34e1ed31c503b
PHP
cmonegatto/php
/Diversos/foreach.php
UTF-8
185
2.953125
3
[]
no_license
<?php $produtos[1] = 'Sofa'; $produtos[2] = 'Mesa'; $produtos[3] = 'Cadeira'; $produtos[4] = 'Fogão'; $produtos[5] = 'Geladeira'; foreach ($produtos as $x) { echo $x, '<br>'; } ?>
true
d8c42c547641908b03413ccd3d158e0773e2e4cd
PHP
crystinutzaa/php-oop-licence
/components/core/ObjectModel.php
UTF-8
1,331
2.953125
3
[ "MIT" ]
permissive
<?php namespace app\components\core; use app\components\ModelError as ModelErrorCore; /** * Abstract class that defines a object model * @author Soponar Cristina <crystinutzaa@gmail.com> */ abstract class ObjectModel extends Core { public $errors = []; /** * Create object model */ abstract pu...
true
7b0bfe7c6fc126fa3e7964433587190e3f65523e
PHP
Haja-F-Dev/SEMAINE2-2021
/PHP_06_Les_dates_et_les_heures/0_exemples/example2.php
UTF-8
122
2.890625
3
[]
no_license
<?php $date = date("d/m/Y"); $heure = date("H:i:s"); echo "Nous somme le " . $date . "<br/>"; echo "Il est : " . $heure;
true
112de109121f19f1ab4a436d0f75b7431e47550c
PHP
ChallengeTheGods/platform-racing-2-server
/http_server/queries/servers/server_update_address.php
UTF-8
496
2.765625
3
[]
no_license
<?php function server_update_address($pdo, $server_id, $address) { $stmt = $pdo->prepare(' UPDATE servers SET address = :address WHERE server_id = :server_id LIMIT 1 '); $stmt->bindValue(':server_id', $server_id, PDO::PARAM_INT); $stmt->bindValue(':address', $addres...
true
a29c46a76ff40af48fa47cb3a4481f9c9eb9abf2
PHP
iainegray/Digital_Civics_FM
/forServerPi/scraper.php
UTF-8
3,023
3.109375
3
[ "MIT" ]
permissive
<?php #Include the script 'emoji' which parses a string to remove emoji codes include('emoji/emoji.php'); #Returns a JSON from a non-private IG account page function scrape_insta($username) { $insta_source = file_get_contents('http://instagram.com/'.$username); $shards = explode('window._sharedData = ', $inst...
true
ace900d4e43b01c61f19ff448f807e0ebc957c47
PHP
leonardodeabreu/php-non-frame
/src/Ebanx/Controllers/Calculator.php
UTF-8
453
2.59375
3
[]
no_license
<?php declare(strict_types = 1); namespace Ebanx\Controllers; use Ebanx\Includes\Container; class Calculator extends Action { protected $model = 'calculator'; public function doOperation() { $model = Container::getClass($this->model); $operation = $_POST['display']; $first = sub...
true
fd58e1ad55ac253d52bbf435925786726201a5e5
PHP
MaciejWiatr/php-rest-api
/models/Book.php
UTF-8
357
3.078125
3
[]
no_license
<?php require_once("BaseModel.php"); class Book extends BaseModel { public string $name; public string $author; public string $description; public function __construct(string $name, string $author, string $description) { $this->name = $name; $this->author = $author; $this-...
true
710283a26f04af6a9b4847633bbd347a3f4d4abd
PHP
Grupo-P/CPharma
/app/functions/functions_contabilidad.php
UTF-8
2,164
2.90625
3
[]
no_license
<?php function conversion($monto, $tasa, $moneda_transaccion, $moneda_proveedor) { //dd($monto, $tasa, $moneda_transaccion, $moneda_proveedor); if ($moneda_transaccion != $moneda_proveedor) { if ($moneda_proveedor == 'Dólares' && $moneda_transaccion == 'Bolívares') { $monto_pago = $monto *...
true
e4b3eb4f02b27750af6d865e233046ab3cc30fab
PHP
HyeonseopJeong/php-study
/6. MagicMethod/serialize_1.php
UTF-8
196
3.3125
3
[]
no_license
<?php class A { public $foo = 'Hello'; } $a = new A(); var_dump($a); $k = serialize($a); var_dump($k); $b = unserialize($k); var_dump($b); $b->foo = 'Hi'; echo $a->foo . ' ' . $b->foo;
true
597b13870ac5003fdd2ed90b2638c0b7cca69513
PHP
okfn-brasil/site
/wp-content/plugins/jetpack/extensions/blocks/image-compare/image-compare.php
UTF-8
2,360
2.578125
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "MIT" ]
permissive
<?php /** * Image Compare Block. * * @since 8.6 * * @package automattic/jetpack */ namespace Automattic\Jetpack\Extensions\ImageCompare; use Automattic\Jetpack\Blocks; use Jetpack_Gutenberg; const FEATURE_NAME = 'image-compare'; const BLOCK_NAME = 'jetpack/' . FEATURE_NAME; /** * Registers the block for us...
true
751d90a84cd1858304435b49dabba892c65f94a8
PHP
Modelizer/werkspot
/modules/CompressUrl/Exceptions/UrlNotFoundException.php
UTF-8
313
2.703125
3
[]
no_license
<?php namespace Werkspot\CompressUrl\Exceptions; use Exception; use Throwable; class UrlNotFoundException extends Exception { public function __construct($message = "The given url doesn't exist", $code = 0, Throwable $previous = null) { parent::__construct($message, $code, $previous); } }
true
5c1254c9c97bc39810f3aced6ab22f4f157b2adc
PHP
stanislav4uk/coalitiontechnologies_test
/app/Managers/ProductManager.php
UTF-8
802
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Managers; use App\Models\Product; use App\Storages\JsonStorage; /** * Class ProductManager * @package App\Managers */ class ProductManager { /** * @var JsonStorage */ private $storage; /** * @param JsonStorage $storage */ public function __construct(JsonSto...
true
efbb1aa6fec4aa0e9c6bf0d21dbce99718ad67d4
PHP
luisbarroncortez/Proyecto-Muebleria
/app/Controllers/HomePost.php
UTF-8
1,419
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\HomePostModel; class HomePost extends BaseController { public function agregarUsuarios() { $data = array("nombre" => $_POST['nombre'], "tipomadera" => $_POST['tipomadera'], "costoventa" => $_POST['costoventa'], "costocompra" => $_POST...
true
e215002b4c9756eef830bd44b16a6e321b6e41af
PHP
g1a/composer-test-scenarios
/src/DependencyLicenses.php
UTF-8
2,549
2.5625
3
[]
no_license
<?php namespace ComposerTestScenarios; use Composer\Script\Event; use Composer\Installer\PackageEvent; use Composer\Plugin\CommandEvent; use Composer\Composer; use Composer\DependencyResolver\Operation\InstallOperation; use Composer\DependencyResolver\Operation\UpdateOperation; use Composer\EventDispatcher\EventDispa...
true
3c894c6d41c7e7ca0a80463b1d1f7e40a16434a6
PHP
valu-digital/valuso
/src/ValuSo/Feature/ProxyAwareInterface.php
UTF-8
403
2.578125
3
[]
no_license
<?php namespace ValuSo\Feature; /** * Proxy aware interface * * This interface should be implemented by services that * are intended to be used via service proxy and want to * have access to the wrapper object. * */ interface ProxyAwareInterface { /** * Set service proxy instance * * @param...
true
c5874255f8713c3720038edb4cd731ac5bbb1503
PHP
devlabs91/generic-ota-hotel-api-service
/src/EnumType/RateIndicatorType.php
UTF-8
4,437
2.703125
3
[ "MIT" ]
permissive
<?php namespace Devlabs91\GenericOtaHotelApiService\EnumType; /** * This class stands for RateIndicatorType EnumType * Meta informations extracted from the WSDL * - documentation: An enumerated type indicating special conditions with the rate Valid values: ChangeDuringStay, MultipleNights, Exclusive, OnRequest, Li...
true
1137536907bd1b9c55e1dd0961f1319ae900d989
PHP
kevin-ta/cours-a-1-euro
/src/Zephyr/CoursBundle/Entity/Student.php
UTF-8
4,603
2.703125
3
[]
no_license
<?php //Entité inverse namespace Zephyr\CoursBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity * @ORM\Table(name="cours_student") * @ORM\Entity(repositoryClass="Zephyr\CoursBundle\Entity\StudentRepository") */ class Student { /** * @O...
true
a466a8bef3b607b92377ea36180ac2ee456dd6f7
PHP
ishmamAli786/php
/abstractclass.php
UTF-8
1,242
3.6875
4
[]
no_license
<?php // A class that is declared with abstract keyword, is known as abstract class in php. it can have abstract and non abstract methods. it needs to be extends and its methods implemented. object of an abstract class cannot be created //a method that is declared as abstract and does not have implementation is known...
true
5a6bb7489c661a135161044dc37bb7416d207e0e
PHP
ivanlolivier/battleship--laravel
/app/board.php
UTF-8
3,392
2.953125
3
[]
no_license
<?php namespace App; use Illuminate\Support\Collection; class Board { CONST BOARD_COLUMNS_NUMBER = 10; CONST BOARD_ROWS_NUMBER = 10; CONST RESULT_HIT = 'hit'; CONST RESULT_MISS = 'miss'; CONST RESULT_SUNKEN = 'sunken'; CONST PLACE_FREE = 'free'; CONST PLACE_MISS = 'miss'; CONST PLAC...
true
46fb8d62c774595c61ed9ae7a4ff614a905db6c3
PHP
coderbyheart/dothiv
/src/Dothiv/BusinessBundle/Entity/DomainClaim.php
UTF-8
1,479
2.53125
3
[]
no_license
<?php namespace Dothiv\BusinessBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use JMS\Serializer\Annotation as Serializer; /** * Represents a user's claim for a '.hiv' domain. * * @ORM\Entity(repositoryClass="Dothiv\BusinessBundle\Repository\DomainClaimRepos...
true
47d74068a27c1335d969c41879462714153d99c8
PHP
itacticalmedia/aggregatedfeed
/application/models/FeedDataMapper.php
UTF-8
11,476
2.578125
3
[]
no_license
<?php class Application_Model_FeedDataMapper extends Application_Model_MapperBase { /** * Set table Name * @var string * */ protected $_name = 'feedData'; /** * * @param Application_Model_FeedData $feeddata * @param type $by * @return type */ public funct...
true
da7ffdc55d5b87fd3191d91c12c6de2a41cab18b
PHP
PraveshPoudel/MyContactApp
/db.php
UTF-8
404
3.046875
3
[]
no_license
<?php //This is our default hostname, username, password. Here our database name is 'contact' $host = "localhost"; $user = "root"; $pass = ""; $dbname = "contact"; //Creating the database connection. $conn = mysqli_connect($host, $user, $pass, $dbname); //Checking the connection. i...
true
542650e120974f1cfed27bfd310dfd6537402ba5
PHP
analivia1990/modelo
/projeto/src/lib/db.php
UTF-8
2,524
3.4375
3
[]
no_license
<?php /** * * funções relacionadas a operações em banco de dados */ // conectar ao banco /** * Função que retorna o objeto de conexão com a base de dados da aplicação */ function get_db_connection() { $conexao = mysqli_connect(DB_HOST, DB_USER, DB_PWD, DB_NAME); if (mysqli_connect_errno()) { ex...
true
e980ef24ccd85f86905eb2d65d3148d8545d6944
PHP
tetz2442/Grumble
/grumblemvc/model/categorymodel.php
UTF-8
346
2.5625
3
[]
no_license
<?php class Category extends BaseModel { //loads all category data public function loadAllCategories() { $sql = "SELECT * FROM categories_grumble ORDER BY category_name ASC"; $this->db->query($sql); return $this->db->rows(); } public function update() { } public function save() { } public func...
true
5813d3fdda2aa50dbb24e87808ca2375a43042a5
PHP
hashstudio/Mindy_Helper
/src/Mindy/Helper/Time.php
UTF-8
16,617
3.28125
3
[]
no_license
<?php namespace Mindy\Helper; /** * TODO need refactoring * @author Falaleev Maxim <max@studio107.com> * @link http://studio107.ru/ * @copyright Copyright &copy; 2010-2012 Studio107 * @license http://www.cms107.com/license/ * @package Mindy\Helper * @since 1.1.1 * @version 1.0 * */ class TimeHelper { pu...
true
6693894d6696a66b3e855c478f0bbaec371ae08c
PHP
maskaro/opheme-v1
/oPheme_UI_Campaign/logout.php
UTF-8
412
2.515625
3
[]
no_license
<?php require_once("php/common.php"); //remove session stored data unset($_SESSION['user']); // Delete the actual cookie. $params = session_get_cookie_params(); setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]); //destroy session ses...
true
3baeb86a1a95251c9eea411c115f05c30751d8c2
PHP
rafiarrazzaq/praktikum_php2
/libfungsi.php
UTF-8
1,315
2.65625
3
[]
no_license
<?php function kelulusan($average) { global $average; if($average > 55) { return 'LULUS'; } else { return 'TIDAK LULUS'; } } function grade($average){ global $average; if ($average >= 0 && $average <= 35){ return 'E'...
true
162ded43a087e4f910c7be0b93be0dcd26730451
PHP
hy0kl/study
/testPHP/light.php
UTF-8
508
2.578125
3
[]
no_license
<?php header('Content-type: text/html; charset=utf-8'); if($_REQUEST['string']) { $string = $_REQUEST['string']; if(get_magic_quotes_gpc()) { $string = stripSlashes($string); } if (substr($string, 0, 5) != '<?php') { $string = "<?php\n".$string; } highlight_string($strin...
true
38899e89bfffcb63efd5e1aa06070d34d3ce9c6d
PHP
chungthehao/CakePHP3-Bookmarks
/src/Mailer/ContactFormMailer.php
UTF-8
810
2.609375
3
[]
no_license
<?php namespace App\Mailer; use Cake\Mailer\Mailer; /** * ContactForm mailer. */ class ContactFormMailer extends Mailer { /** * Mailer's name. * * @var string */ public static $name = 'ContactForm'; public function submission(array $data) { $title = 'My Bookmarks'; ...
true
115ea2222cd0c53ba08500e80b95ef403c04f884
PHP
adamholisky/blizzardwatch-2019
/lib/php/BlizzardWatch/Singleton.php
UTF-8
405
2.703125
3
[]
no_license
<?php namespace BlizzardWatch; // Refactor Status: Done trait Singleton { protected static $instance = null; protected function __construct() { $this->setup(); } protected function __clone() { // NA } protected function __wakeup() { // NA } public static function get_instance() { if( !isset(self::...
true
f40bcdf8eae0a34404e92edcfe339660bd7df146
PHP
anafsferreira/project_esin
/database/report.php
UTF-8
712
2.6875
3
[]
no_license
<?php function insertReport($date,$report, $inpatient_code){ global $dbh; $stmt= $dbh->prepare("INSERT INTO Report(date,message, inpatient) VALUES (?,?,?)"); $stmt->execute(array($date,$report, $inpatient_code)); } function DeleteReports($code){ global $dbh; $stmt= $dbh->prepare("DELETE FROM Rep...
true
a1a48c2188a68e990b38b3a8c2b38f9020fc7793
PHP
FrankProjects/UltimateWarfare
/src/Repository/Doctrine/DoctrineContactRepository.php
UTF-8
1,201
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace FrankProjects\UltimateWarfare\Repository\Doctrine; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityRepository; use FrankProjects\UltimateWarfare\Entity\Contact; use FrankProjects\UltimateWarfare\Repository\ContactRepository; final class DoctrineContactReposit...
true
a8b303efb3dc599bd95594fdca3c7dbba48e29d7
PHP
cigua/Charitable
/源码/library/Open/Weixin/Login.php
UTF-8
1,874
2.84375
3
[]
no_license
<?php /** * 网页授权 * @author: moxiaobai(mlkom@live.com) * @since : 2015-06-22 */ class Open_Weixin_Login { private $appId; private $appSecret; public function __construct() { $this->appId = APP_ID; $this->appSecret = APP_SECRET; } /** * 获取授权登陆地址:如果用户同意授权,页面将跳转至...
true
5eab5c66b7bdacf167495bfe9258a47c6dee973a
PHP
mhenry07/modx-rtfm-convert
/src/old/text.php
UTF-8
604
2.6875
3
[]
no_license
<?php require '../../vendor/autoload.php'; // should probably use indent => false and wrap => 0 when doing text comparisons // TODO: trim groups of empty lines to a single empty line // could use xdiff for creating diffs http://www.php.net/manual/en/book.xdiff.php // or maybe git diff (--numstat and --dirstat options ...
true
b472a68e132f6398882bfc34b33bd1b84dd4c5d3
PHP
xHurryx/php-distancia
/sistema/confirmar-email.php
UTF-8
939
2.625
3
[]
no_license
<?php $sucesso = false; if(!empty($_GET['token'])){ $token = $_GET['token']; require_once 'servidor.php'; $verificaToken = consulta_dados("select id from usuarios where token = '$token'"); if(mysqli_num_rows($verificaToken) > 0){ consulta_dados("update usuarios set status = 1 where token = '$tok...
true
45751ea8cb8208971c0a73328f13ad9114727a82
PHP
MauricioMathias/LivroPhp_1
/capitulo_1/manipulacao_objetos/get_class_methods.php
UTF-8
255
3.140625
3
[]
no_license
<?php // Retorna um vetor com os nomes dos métodos da classe escolhida class Funcionario{ function setSalario() { } function getSalario() { } function setNome() { } function getNome() { } } print_r(get_class_methods('Funcionario')); ?>
true
654073274ba169c3b5085ff2599d891a65a18286
PHP
MarekVigas/zenit2016-skolske
/admin/add_category.php
UTF-8
1,324
2.84375
3
[]
no_license
<?php if(isset($_POST['id']) AND isset($_POST['nazov']) AND isset($_POST['popis']) AND isset($_POST['obrazok'])){ //osetrenie vstupu od pouyivatela $id = htmlspecialchars($_POST['id'],ENT_QUOTES); $nazov = htmlspecialchars($_POST['nazov'],ENT_QUOTES); $popis = htmlspecialchars($_POST['popis'],ENT_QUOTES); ...
true
5602e8785ba9bda9f4615217daecc76df1b81c7f
PHP
vivek-goyal/kryptos
/application/models/StorageDocuments.php
UTF-8
2,496
2.671875
3
[]
no_license
<?php class Application_Model_StorageDocuments extends Muzyka_DataModel { const TYPE_SIMPLE = 1; const TYPE_DOCUMENT = 2; const TYPE_SZKOLENIE = 3; protected $_name = "storage_documents"; private $id; private $documenttemplate_id; private $user_id; private $status; private $number...
true
5e8ca48ad44d9608ee975f20f19a7b35ac485713
PHP
pedped/simpledom
/apps/core/element/StarRatingElement.php
UTF-8
9,235
2.78125
3
[]
no_license
<?php class StarRatingElement extends BaseElement { private $stars = 5; private $min = 0; private $max = 5; private $step = 1; private $glyphicon = "true"; private $symbol = 'undefined'; private $showClear = "true"; private $showCaption = "true"; private $defaultCaption = 'undefine...
true
8436013f2a12e73d5993aafdd3152b0fb3bc6e6e
PHP
solehati8085/pwl-rumah-sakit-kelomppok-13
/libraries/m_even.php
UTF-8
1,024
2.984375
3
[]
no_license
<?php class event{ private $db; public function event(){ $this->db = new DBClass(); } public function readAllevent(){ $query = "SELECT * FROM event"; return $this->db->getRows($query); } public function readevent($id){ $query = "SELECT * FROM event WHERE id_event =".$id; return $this->db->getRo...
true
400cd36561bdcab149cbbaecee73b2962df69033
PHP
Xuan19/moviedb
/src/Services/Slugger.php
UTF-8
180
2.859375
3
[]
no_license
<?php namespace App\Services; class Slugger { public function slugify($stringToConvert) { return preg_replace('/\W+/', '-', trim(strip_tags($stringToConvert))); } }
true
f6318628521ce2421084911dc443ef46ca6d237e
PHP
vianziro/disperindag
/protected/extensions/EModels/SqlSearchModel.php
UTF-8
2,188
2.734375
3
[ "MIT" ]
permissive
<?php /** * SqlSearchModel class. * * PHP version 5 * * @category Packages * * @author Evgeniy Marilev <marilev@jviba.com> * @copyright 2011 5-SOFT * @license http://www.gnu.org/licenses/lgpl.html LGPL * * @link https://jviba.com/packages/php/docs */ /** * SqlSearchModel is the search model cla...
true
a8b2d5cabc9cc11bf2157475e91b84e31b4a788f
PHP
jahidhsn002/PMS
/application/models/md_setting.php
UTF-8
845
2.515625
3
[ "Artistic-2.0" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class md_setting extends CI_Model { public $name; public $value; public function __construct(){ parent::__construct(); } public function INFO(){ $query = $this->db->get('setting'); return $query->result(...
true
adf2988e502087dc5c7fb94edf84c135028a99a9
PHP
swos-/patterns
/decorator/Decorator/Beverage.php
UTF-8
218
3.25
3
[]
no_license
<?php interface BeverageInterface { public function getDescription(); public function cost(); } abstract class Beverage { abstract public function getDescription(); abstract public function cost(); }
true
f352a000d71ae1631995c38f3ea05431762b6045
PHP
gogus/hackathon
/src/App/Domain/ApiClient/WeatherApiClient/Response/Response.php
UTF-8
1,943
3.078125
3
[ "MIT" ]
permissive
<?php namespace App\Domain\ApiClient\WeatherApiClient\Response; /** * Response in Openweathermap API format: https://openweathermap.org/current#current_JSON * * Some of the data was skipped intentionally. */ class Response { /** * @var City */ private $city; /** * @var Main */ ...
true
5d5aaf3b1477425291e05b806425ce4ed0f5f20a
PHP
SvyaznoyMarket/front
/lib/Enter/Helper/Template.php
UTF-8
641
2.734375
3
[]
no_license
<?php namespace Enter\Helper; class Template { /** * @param $value * @return string */ public function escape($value) { return htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); } /** * @param $value * @return string */ public function unescape($value) { ...
true
b7040ca0f69328b0cac8587a58995f3474fbc3cd
PHP
peterlevel1/haha-9
/demos/array/foreach.php
UTF-8
391
3.796875
4
[]
no_license
<?php $arr = array(1, 2, 3, 4, 5); foreach($arr as $value) { print $value."\n"; } print "\n"; $arr = array(1, 2, 3, 4, 5); foreach($arr as $key => $value) { print 'key: '.$key.' => '.'value: '.$value."\n"; } print "\n"; $hash = array('a' => 1, 'b' => 2); foreach($hash as $key => $value) ...
true
f961ca620da90e2c7b88342b4c1ef8a240afda1a
PHP
azjezz/psl
/tests/unit/Iter/CountTest.php
UTF-8
682
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Psl\Tests\Unit\Iter; use PHPUnit\Framework\TestCase; use Psl\Collection; use Psl\Iter; use Psl\Vec; final class CountTest extends TestCase { /** * @dataProvider provideData */ public function testCount(int $expected, iterable $iterable): void { ...
true
5c858a0296987d89543e062acc8b2eae2fd53b5d
PHP
sloveh0903/zaohui_2.0
/application/index/controller/Imagemark.php
UTF-8
3,075
2.59375
3
[]
no_license
<?php namespace app\index\controller; use think\Controller; class Imagemark extends Controller{ public static function robot($path, $text = "") { // 字体 $font = ROOT_PATH.'/public'.DS."ttf/Light.ttf"; $info = getimagesize($path); if ($info && isset($info['mime'])) { ...
true
24cf294019a2a2ee481b09b85d07965b9d35a2d2
PHP
alphaMarDiallo/1_VLG18
/02-back/02_php/03-post/formulaire1.php
UTF-8
2,709
3.015625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="s...
true
d2b961a010125c9e9dd687118450fc8359633ba2
PHP
Alucarth/recursos-humanos
/database/migrations/2019_10_30_150000_create_type_hours_table.php
UTF-8
1,757
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTypeHoursTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('type_hours', ...
true
f2821ee86239c9cba1cc7ff9feeecf1da238d75f
PHP
Nileshdawande/allapi
/api_gateway/src/app/services/technology_master_service.php
UTF-8
1,475
2.625
3
[ "MIT" ]
permissive
<?php namespace App\services; use App\Traits\ConsumeExternalservice; use GuzzleHttp\Client; class technology_master_service { use ConsumeExternalservice; public $base_url; public function __construct() { $this->base_url = config('services.skillmaster.base_uri'); } public function create_techno...
true
68a0f1d23d229d9cda8ec3753e4a17f0b6920658
PHP
BohdanLiango/LaravelGalleryLevelTwo
/Gallery/app/Http/Controllers/ImagesController.php
UTF-8
1,990
2.640625
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace App\Http\Controllers; use App\Services\CategoryService; use App\Services\ImageService; use Illuminate\Http\Request; class ImagesController extends Controller { private $images; private $categories; public function __construct(ImageService $imageService, CategoryService $categoryService)...
true
15d68cbaad72b75147e88940ce65d98b8cc5b3eb
PHP
UnknowCC/linkage-menu-demo
/PHP/library/Page.class.php
UTF-8
5,698
3.171875
3
[]
no_license
<?php namespace library; /** * 分页类 */ class Page { private $total; private $listRows; private $limit; private $uri; private $pageNum; private $page; private $config = array( 'head' => '<b>共 %TOTAL_ROW% 条记录</b>', 'first' => '首页', 'prev' => '上一页', 'next' => ...
true
6de5a9f594bc7e6793fb95e7fa9671135da44136
PHP
unaiLopez/CarePets
/usuario/mensajeria/notificacionesMensajeriaEnviados.php
UTF-8
789
2.53125
3
[]
no_license
<?php try { //Variables para buscar en la BD $idActual = $_SESSION['user_id']; $noLeido = 0; $tipoMensaje = 'Mensaje'; $tipoSolicitud = 'Solicitud'; //Mensajes enviados con respuesta sin leer $sentencia = $conn->prepare("SELECT * FROM mensaje WHERE user_id_emisor=:user_id_emisor and leido...
true
d683872242455d2548043f6611a12f470db9481d
PHP
petnupe/testeBemacash
/var/insere-historico.php
UTF-8
995
2.65625
3
[]
no_license
<?php use Bemacash\Entity\Historico; use Bemacash\Entity\Pedido; use Bemacash\Entity\Status; use Bemacash\Helper\EntityManagerFactory; echo PHP_EOL.'Inicialzando historicos'.PHP_EOL; require __DIR__ . '/../vendor/autoload.php'; $entityManager = (new EntityManagerFactory)->getEntityManager(); $repoPedidos = $entityM...
true
60e7c5bedb8036008b678aa62680b8e73b14add5
PHP
Hokan22/laravel-translator
/src/Commands/CacheTranslationCommand.php
UTF-8
3,522
2.796875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Artisan Command to cache Translations from the Database. */ namespace Hokan22\LaravelTranslator\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use Hokan22\LaravelTranslator\TranslatorFacade; use Hokan22\LaravelTranslator\Models\TranslationIdentifier; /** * Class CacheTran...
true
e3a47aa6aa7a297f944382d48a1315e0166655f8
PHP
binocarlos/failquarry
/v1php/jquarry/classes/mongo/collection.php
UTF-8
2,883
2.796875
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); /** ******************************************************************************************************************************** * * Database wrapper for an installations collection * the installation id is combined with the collection name so each ...
true
171d70c4e6eb73acf02dacfd9e2a41515a6cd744
PHP
descention/MiningBuddy
/functions/database/getItemList.php
UTF-8
548
2.59375
3
[]
no_license
<?php function getItemList(){ global $DB; global $DBORE; global $STATIC_DB; $page = ""; if(isset($_GET[q]) && $_GET[q] != ""){ $search = sanitize($_GET[q]); $items = $DB->query("select itemName from itemList where itemName like '%$search%';"); while ($item = $items->fetchRow()) { $name = $item['itemName...
true
47c9b35996ea28deea6e47e20d4a5fb52e00eb46
PHP
makky3939/EmotionalPalette
/src/api/v1/generate.php
UTF-8
2,084
2.71875
3
[]
no_license
<?php header('Content-Type: text/javascript; charset=utf-8'); include '_pdo.php'; switch ($_SERVER['REQUEST_METHOD']) { case 'POST': try { $text = $_POST['text']; if($text == '') { exit('{"code": 400, "message": "bad request"}'); } $pdo -> beginTransaction(); $statement = ...
true
57c377e8c6b5a9adaef5e41d017c3673bc696835
PHP
cedrichaase/dotgen
/src/DotGen/Config/Validator/ResourceValidator.php
UTF-8
1,610
2.96875
3
[]
no_license
<?php namespace DotGen\Config\Validator; use DotGen\Config\Resource\IResource; /** * Class ResourceValidator * * @package DotGen\Config\Validator */ class ResourceValidator implements IResourceValidator { /** * @param IResource $resource * * @throws ResourceValidationException */ publi...
true
c48afb2084fe06d0a4441064d020f10615815955
PHP
pi2Moises/PI
/app/Http/Controllers/ControllerBibliografia.php
UTF-8
3,838
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\curso; use App\Disciplina; use App\Bibliografia; class ControllerBibliografia extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
344926c2d048d87425cfedebd993ed9ead8cc9ac
PHP
w1lla/manialive-lib-patch1
/ManiaLive/Data/Storage.php
UTF-8
17,224
2.546875
3
[]
no_license
<?php /** * ManiaLive - TrackMania dedicated server manager in PHP * * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com) * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3 * @version $Revision$: * @author $Author$: * @date $Date$: */ namespace ManiaLive\Data; u...
true
867032970aef8ae73629877a56c689b3a459bc3e
PHP
fhocosta/encogens
/src/ApiBundle/Entity/Item.php
UTF-8
2,977
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: berredo * Date: 10/06/15 * Time: 11:05 */ namespace ApiBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * Class Tipo * @ORM\Table(name="tbl_item") * @ORM\Entity */ class Item { /** * @var guid * *...
true