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
4632df5180ffab3b93646c328846768977942108
PHP
federicoangeloni/easyofficina
/app/Customer.php
UTF-8
703
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Customer extends Model { public $timestamps = false; protected $table = 'customers'; public $fillable = ['name', 'surname', 'nominative', 'address', 'zipcode', 'city', 'vat_number', 'ssn', 'telephone', 'fax', 'email']; public stat...
true
eaa03f92b5984878fb1ff4c8ee155da661f79728
PHP
exelentshakil/ris-auction
/includes/api/RealisityApi.php
UTF-8
5,844
2.765625
3
[]
no_license
<?php namespace RIS\Auction\Api; class RealisityApi { /** @var string $base the route base */ protected $base = '/ris-auction'; /** * Register the routes for this class * * GET/POST /products * GET /products/count * GET/PUT/DELETE /products/<id> * GET /products/<id>/reviews ...
true
9189195a34f5783e4b836f51e010fc8878cd0417
PHP
lyrasoft/luna
/src/Menu/MenuFieldDefineEvent.php
UTF-8
1,103
2.515625
3
[]
no_license
<?php /** * Part of earth project. * * @copyright Copyright (C) 2021 LYRASOFT. * @license MIT */ declare(strict_types=1); namespace Lyrasoft\Luna\Menu; use Windwalker\Event\AbstractEvent; use Windwalker\Form\Form; /** * The MenuFieldDefineEvent class. */ class MenuFieldDefineEvent extends AbstractEvent ...
true
ca0405186d2c4a48edd3e656bad5dbbcf917d82b
PHP
dlaststark/machine-learning-projects
/Programming Language Detection/Experiment-2/Dataset/Train/PHP/huffman-coding.php
UTF-8
860
3.109375
3
[]
no_license
<?php function encode($symb2freq) { $heap = new SplPriorityQueue; $heap->setExtractFlags(SplPriorityQueue::EXTR_BOTH); foreach ($symb2freq as $sym => $wt) $heap->insert(array($sym => ''), -$wt); while ($heap->count() > 1) { $lo = $heap->extract(); $hi = $heap->extract(); ...
true
04cd19057341c91598f06def2e335b95be10ceea
PHP
mad654/php-event-store
/src/Event/StateChanged.php
UTF-8
1,368
2.859375
3
[ "MIT" ]
permissive
<?php namespace mad654\eventstore\Event; use Dflydev\DotAccessData\Data; use mad654\eventstore\Event; use mad654\eventstore\SubjectId; class StateChanged implements Event { /** * @var \DateTimeImmutable */ private $timestamp; /** * @var Data */ private $payload; /** * ...
true
ac8672ed490497602be56ace68012ad398f1cb72
PHP
carly97232/orleans-0918-php-javapop
/src/Model/DrinkVolume.php
UTF-8
1,287
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wilder16 * Date: 17/10/18 * Time: 06:37 */ namespace Model; /** * Class Drink * @package Model */ class DrinkVolume { /** * @var int */ private $drink_id; /** * @var int */ private $volume_id; /** * @var float */ ...
true
eea1928cbae80868fa56f12179474a962556ed52
PHP
MustD/bim-core
/src/db/lib/form_generator/form.php
UTF-8
4,658
2.6875
3
[]
no_license
<?php /** * Class FormGen * класс для генерацияя кода изменений в веб-формах * * @package Bitrix\Adv_Preset\Form_Generator */ class FormGen extends CodeGenerator { public function __construct(){ \CModule::IncludeModule("form"); } /** * метод для генерации кода добавления новой веб-формы...
true
bfa205060b67433a880692b086278eb8ff2bfe37
PHP
RubenVermeulen/CompetitieManager
/app/routes/game/result/create.php
UTF-8
4,597
2.78125
3
[]
no_license
<?php use Carbon\Carbon; $app->get('/seasons/:seasonId/games/:gameId/result/create', $admin(),function($seasonId, $gameId) use($app) { try { $app->season->findOrFail($seasonId); $game = $app->game->findOrFail($gameId); /* * Are there already matches to give results. */ ...
true
cd8f834afd4369e4f5cd1b46ccf2cf02439d7e4c
PHP
qhjv/QLNV_PHP
/assignproject.php
UTF-8
1,830
2.515625
3
[]
no_license
<?php require_once('process/dbh.php'); $sql = "SELECT * from `project` order by subdate desc"; //echo "$sql"; $result = mysqli_query($conn, $sql); ?> <html> <head> <title>QLNV</title> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" href="styleview.css"> </head> <body> <header> <nav> <h1...
true
ea0c0af26fda570a93ff9a0c8bf982cbbcb84701
PHP
darxide-pl/cakephp-filter
/src/Filter/SessionFilter.php
UTF-8
499
2.859375
3
[]
no_license
<?php namespace Filter\Filter; use Filter\Filter\BaseFilter; use Filter\Engine\RequestEngine; use Filter\Storage\SessionStorage; /** * That class can be a basement to build filters which uses session as storage */ abstract class SessionFilter extends BaseFilter { /** * Init filter with engine and sto...
true
e623fa5dd4ee8bb507e6ca82ce329542ed6f70ee
PHP
Coder0010/fetching-data
/src/Models/Traits/QueryStringTrait.php
UTF-8
332
2.609375
3
[]
no_license
<?php namespace App\Models\Traits; trait QueryStringTrait { public function selectAllQueryString() { return "SELECT * FROM {$this->getTable()};"; } public function selectByQueryString($column, $search) { return "SELECT * FROM {$this->getTable()} where {$column} LIKE '%{$search}%';...
true
93e150f662091ebb03c5378f8c0ecad6d1b138fe
PHP
OPSAPP/OPS_App_Backend
/app/Http/Controllers/UserMissionController.php
UTF-8
1,846
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use JWTAuth; use DB; use App\User; class UserMissionController extends Controller { public function __construct() { $this->middleware('jwt.auth'); } public function getAgentsPerMission(Request $request) { if((! $user ...
true
74e4c877d147389b1c4255b9cf1adb6ceec1e86e
PHP
balint777/POData
/src/POData/OperationContext/Web/OutgoingResponse.php
UTF-8
6,837
2.796875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace POData\OperationContext\Web; use POData\Common\ODataConstants; /** * Class OutgoingResponse represents HTTP methods,headers and stream associated with a HTTP response * @package POData\OperationContext\Web */ class OutgoingResponse { /** * Gets the headers from the outgoing Web response....
true
685f27073c2b4d49a02637b3f1b3d6f388bf835c
PHP
gheja/logthis
/server/log.php
UTF-8
1,272
2.71875
3
[]
no_license
<?php require_once("config.php"); require_once("Db.class.php"); require_once("common.php"); if (!preg_match('![0-9a-zA-Z]{32}/[0-9a-fA-F]{2,1500}/[0-9a-fA-F]{32}!', $_SERVER['QUERY_STRING'])) { echo "INVALID_DATA\n"; die(); } list($logkey, $data, $hash) = explode('/', $_SERVER['QUERY_STRING']); if (str...
true
f926bc0ba36090452b50e6db829153029da9e6c7
PHP
amirul1000/viralelites
/instagram_test/mgp25/instagram-php/src/http/Response/Objects/Link.php
UTF-8
605
3.140625
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php namespace InstagramAPI; class Link { protected $start; protected $end; protected $id; protected $type; public function __construct($link) { $this->start = $link['start']; $this->end = $link['end']; $this->id = $link['id']; $this->type = $link['type']; ...
true
decae1e095ab284614519bd42ca9cf556ef6e547
PHP
hyperia-sk/yii2-secure-headers
/src/headers/ReferrerPolicy.php
UTF-8
753
2.8125
3
[ "MIT" ]
permissive
<?php namespace hyperia\security\headers; class ReferrerPolicy implements PolicyInterface { private $value; private $allowDirectives = [ "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "...
true
23d098a4578dca0f01179b157604c794f66a645e
PHP
kotopheiop/bitrix-core
/modules/landing/lib/controller/cookies.php
UTF-8
1,844
2.703125
3
[]
no_license
<?php namespace Bitrix\Landing\Controller; use \Bitrix\Main\Engine\Controller; class Cookies extends Controller { public function getDefaultPreFilters() { return []; } /** * Returns site cookie agreements. * @param int $siteId Site id. * @return array */ public functi...
true
f1abc51b372cf6175f20a45bece43777e04501f2
PHP
iamhefang/php-mvc
/src/link/hefang/mvc/views/FileView.class.php
UTF-8
646
2.984375
3
[ "MIT" ]
permissive
<?php namespace link\hefang\mvc\views; defined('PHP_MVC') or die("Access Refused"); /** * 文件视图,返回到客户端一个可下载的文件 * @package link\hefang\mvc\views */ class FileView extends BaseView { private $filename; private $mimeType; /** * FileView constructor. * @param string $filename * @param string|null $mimeType ...
true
5c2e9a330b6784326b79bd03edb819c85d1e05c0
PHP
Aprendizaje360/nll
/app/Http/Controllers/AdminPanel/AdminUserController.php
UTF-8
3,172
2.765625
3
[]
no_license
<?php namespace App\Http\Controllers\AdminPanel; use App\Http\Controllers\Controller; use Illuminate\Http\Request; //Services use App\Http\Services\AdminService; use App\Http\Services\AdminTypeService; //Entities use App\Entities\Admin; //Requests use App\Http\Requests\Admin\StoreAdmin; use App\Http\Requests\Admin...
true
b58a747f52b6f3125e6c93808c7b98c5be7b94d8
PHP
mrtarikunal/php8-symfony5-api-with-ddd
/src/Domain/Player/Guess.php
UTF-8
1,290
3.09375
3
[]
no_license
<?php namespace Guess\Domain\Player; use Guess\Domain\Game\Game; use DateTimeInterface; use Guess\Domain\Player\Player; class Guess { private int $id; private string $guess; private DateTimeInterface $createdAt; private Game $game; private Player $player; public function getId(): int { ...
true
ae06ac038f0a0dd10fde778f000529ad50145319
PHP
savalonso/SEVRI
/logica/logicaNivelRiesgo.php
UTF-8
4,851
2.703125
3
[]
no_license
<?php class logicaNivelRiesgo{ public function logicaNivelRiesgo(){} public function insertarNivelRiesgo($nivelesRiesgo){ include_once("../data/dtNivelRiesgo.php"); $dataNivel = new dtNivelRiesgo; $mensaje = ''; $resultado = $dataNivel->insertarNivelRiesgo($nivelesRiesgo); if($resultado){ $m...
true
23324401e1dfc0616a6981d15bb96af98aa18c04
PHP
pcmachado1/todolist
/model/GroupTask.php
UTF-8
755
2.671875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of GroupTask * * @author paulo machado */ class GroupTask { private $idTaskGroup; ...
true
c2f96d13dbda81a4591ee07c22abd9951dabcf95
PHP
google-code/abellee87
/eweibo_new/backend/application/models/sysOrganization.php
UTF-8
4,594
2.6875
3
[]
no_license
<?php /** *表sys_organization的操作类 */ class SysOrganization extends CI_Model { function getOrganizations($start, $limit, $key) { $this->load->database(); $likesql = ''; if($key != null) { $likesql = "AND ORGANIZATION_NAME LIKE '%$key%' "; } $sql = "SELECT SYS_ORGANIZATION_I...
true
293b5f8a205535947ed86be4476230644b90012d
PHP
detrandix/css-checker
/css-checker.php
UTF-8
3,587
2.5625
3
[]
no_license
#!/usr/bin/php <?php $options = getopt("u:p:i:h", array( "pages-file:", "ignore-file:" )); if (!array_key_exists('u', $options) || array_key_exists('h', $options)) { print <<<DOC Usage: {$argv[0]} -u <url to check> [options] -p <page> Add page to check (can be used multiple times) -i <term> ...
true
9e2ce67dc874b2b858858ba677c6beaf359e7394
PHP
chordstricken/charon
/lib/core/template.php
UTF-8
362
2.703125
3
[]
no_license
<?php namespace core; /** * * @author Jason Wright <jason.dee.wright@gmail.com> * @since 2/17/17 * @package charon */ class Template { /** * Outputs a template file * @param string $file * @param array $data */ public static function output(string $file, array $data = []) { ex...
true
d4aba548153c72f8efb7732839059d3bd5d3a2f0
PHP
chwiledwie/GRAD_LAB_PHP
/lab12/z12/user.class2.php
UTF-8
891
3.09375
3
[]
no_license
<?php class user { public static $user = array(); public function getData ($login, $pass) { if ($login == '') $login = $_SESSION['login']; if ($pass == '') $pass = $_SESSION['password']; self::$user = mysql_fetch_array(mysql_query("SELECT * FROM us...
true
56f336fff55a162a4f87324eaba8cde40726e029
PHP
sohophp/schemaorg
/src/Thing/Intangible/Service/FinancialProduct.php
UTF-8
3,130
2.625
3
[ "MIT" ]
permissive
<?php namespace Sohophp\SchemaOrg\Thing\Intangible\Service; use Sohophp\SchemaOrg\Thing\Intangible\Service; use Sohophp\SchemaOrg\Thing\Intangible\StructuredValue\QuantitativeValue; /** * A product provided to consumers and businesses by financial institutions such as banks, insurance companies, brokerage firms, cons...
true
7cc19f26fc399096bd5818d616d424e46dc9ac76
PHP
sebastien15/cabmgtlaravel7
/database/migrations/2020_11_29_054945_create_schedulers_table.php
UTF-8
1,075
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSchedulersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('schedulers',...
true
cf930835299419de2a493908da1496d1c2ab0ce9
PHP
bsa-git/zf-myblog
/application/forms/BlogPostLocation.php
UTF-8
3,886
2.515625
3
[ "MIT" ]
permissive
<?php /** * Default_Form_BlogPostLocation * * Form - Management geographic coordinates * * * @uses Default_Form_MyForm * @package Module-Default * @subpackage Forms * @author Sergii Beskorovainyi <bsa2657@yandex.ru> * @license MIT <http://www.opensource.org/licenses/mit-license.php> * @link ...
true
67893f7f8ada46c1862dd0fe240620eaea9f4358
PHP
Saman67/commentify
/api/index.php
UTF-8
2,238
2.984375
3
[ "MIT" ]
permissive
<?php require '../Slim/Slim.php'; \Slim\Slim::registerAutoloader(); class API { private static $api; private static $servername = "localhost"; private static $username = "commentify"; private static $password = "password"; private static $dbname = "commentify"; private static $conn; publ...
true
95025beeae25da174e106c1a70068164b55c5a9e
PHP
ahmadzein/pizza
/api/login.php
UTF-8
2,455
2.828125
3
[]
no_license
<?php session_start(); // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorizat...
true
613a39a17c8abea84b32f276bd433ea1df5cbb0f
PHP
Arnorec/string-validator
/src/ValidationRule/DateValidationRule.php
UTF-8
878
3.15625
3
[]
no_license
<?php namespace Brightgrove\Validator\ValidationRule; use Brightgrove\Validator\Exception\ValidationException; class DateValidationRule extends AbstractValidationRule { const INVALID_FORMAT_ERROR = 'This value should be in DD\MM\YYYY format.'; const INVALID_DATE_ERROR = 'This value should be valid date.'; ...
true
c51f1256b8b4384c0c431b55c2b882b0105a241b
PHP
tmdk/analyze-css
/ClassFilter.php
UTF-8
720
2.609375
3
[ "MIT" ]
permissive
<?php /** * Class ClassFilter */ class ClassFilter extends Filter { function __construct(CssSource $source) { $classes = array_count_values($source->classes()); arsort($classes); $options = collection($classes) ->items() ->map(function ($pair) { ...
true
fbbc013c1863a474541d24a35f456d574678744b
PHP
manojkliotech/public_html
/tracking_stats/lib/db.php
UTF-8
3,543
2.84375
3
[]
no_license
<? class DB { var $dbh; var $error_code; function DB($t=false) { global $config; $this->error_code=0; $this->dbh = mysql_connect($config["db"]["server"], $config["db"]["username"], $config["db"]["password"]); if (!$this->dbh) { $this->error_code=-1; if (!$t) { print "Can't connect to DB"; exit...
true
e7806af799f6442b286b416df7ba388d39ba0cfa
PHP
palehorse/sailor
/Pussle/ORM/Language/Select.php
UTF-8
2,193
3.078125
3
[]
no_license
<?php namespace Pussle\ORM\Language; use Pussle\ORM\Data\Column; use Pussle\ORM\Data\Table; use Pussle\ORM\Interfaces\DMLInterface; use Pussle\ORM\Interfaces\FuncInterface; use Pussle\ORM\Traits\DMLTrait; class Select implements DMLInterface { use DMLTrait; /** @var Table */ private $table; /** ...
true
c5ef113d4e91252922f7dfce231a58e40d0f28bd
PHP
dev-ian-o/cpp-cai
/compile.php
UTF-8
2,152
2.75
3
[]
no_license
<script src="jquery/jquery-1.8.3.min.js"></script> <script src="ace/ace.js"></script> <script src="ace/theme-twilight.js"></script> <script src="ace/mode-c_cpp.js"></script> <script src="jquery-ace.min.js"></script> <form method="post"> <textarea class="my-code-area" rows="100" style="width: 100%" name="code"> <?ph...
true
ba553f0c86a02da2123dfbb4063eebc6cb888b95
PHP
sifophp/sifo-common-instance
/controllers/i18n/actions.php
UTF-8
2,910
2.765625
3
[ "Apache-2.0" ]
permissive
<?php namespace Common; class I18nActionsController extends \Sifo\Controller { public $is_json = true; public function build() { if ( !\Sifo\Domains::getInstance()->getDevMode() ) { throw new \Sifo\Exception_404( 'Translation only available while in devel mode' ); } // Get instance name. $params = ...
true
ab7c101c1ed46615e3af1d7a806a2a7b18904b29
PHP
codegile/laravel-doctrine-project
/app/service/TaskService.php
UTF-8
5,963
2.5625
3
[]
no_license
<?php /** * User: mcsere * Date: 12/8/14 * Time: 11:24 AM * Contact: miki@softwareengineer.ro */ namespace Transp\Service; use DateInterval; use Transp\Commands\TaskSearchCommand; use Transp\Entities\Task; use Transp\Service\Interf\AbstractService; interface ITaskService { /** * @param Task $task ...
true
3a009b05198d8916449e2e43909efc9036bed968
PHP
eburch2/CMSC-447-Project-Fall-16
/src/orders.php
UTF-8
7,318
2.53125
3
[]
no_license
<?php session_start(); require("CommonMethods.php"); // accept either GET or POST HttpRequest if($_POST) { $_GET = $_POST; } $userInfo = sessionInfo(); if(count($userInfo) > 0) { $userid = $_SESSION["umbcbazaar_userid"]; $errorMessage = $_SESSION["umbcbazaar_addTradeOptionMessage"]; $_SESSION["umbcbazaar_addTrade...
true
35a7e19b01e16c6d7dbe3087ede0c435afb612a5
PHP
aizvainer/PHP
/veb1/index.php
UTF-8
1,679
2.9375
3
[]
no_license
<?php include_once 'config.php'; // login - admin password - 123456 if (isset($_POST['enter'])) { //Пользователь нажимает "Войти" $user = $_POST['user']; $password = $_POST['password']; $query = "SELECT id from users where name='".$user."' and password='".crypt($password, $salt)."'"; $re...
true
a888bc6bbd23efb54fb6b700924c699f8bd8a73f
PHP
zhangjiquan1/phpsourcecode
/templi/templi_framework/database/Db.php
UTF-8
1,735
3.078125
3
[]
no_license
<?php /** * mysql数据库操作类 * @author 七觞酒 * @email 739800600@qq.com * @date 2013-1-19 */ namespace framework\database; use framework\core\Object; abstract class DB extends Object { public $prefix = ''; //表前缀 public $table_name =''; //表名 protected $dbname=''; //数据库名 protected $last_sql=...
true
cf13882cc1b1ea85174a35fedca75dad69d40ad9
PHP
NeetaAhir48/project1_Invoice
/app/Services/ProductService.php
UTF-8
434
2.78125
3
[]
no_license
<?php namespace App\Services; use App\Repositories\ProductRepository; class ProductService { protected $repository; function __construct(ProductRepository $repo){ $this->repository = $repo; } function save($data){ return $this->repository->create($data); } function update($data,$product){ return $t...
true
4348fd0736ac9f49f2580d3308cf4f27ebe4df62
PHP
Sjoekoe/Securify
/app/Todos/EloquentTodo.php
UTF-8
1,119
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Todos; use App\Helpers\BelongsToAccount; use App\Helpers\StandardModel; use App\Users\EloquentUser; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class EloquentTodo extends Model implements Todo { use StandardModel, BelongsToAccount; /** * @var string */ protect...
true
95e27514922aeac8c679bdb0bce0616c52348058
PHP
nzhludko/QEEPApiClient
/src/Model/ArticleType.php
UTF-8
762
2.859375
3
[ "MIT" ]
permissive
<?php namespace QEEP\QEEPApiClient\Model; class ArticleType { protected $id; protected $title; protected $showInMenu = false; public function setId(int $id): ArticleType { $this->id = $id; return $this; } public function getId(): ?int { return $this->id; ...
true
097177b60b9c4351902fc6f5d03d8c168053e3fc
PHP
tareaseguridadweb/miTienda
/imagenes/edit.php
UTF-8
6,957
2.734375
3
[]
no_license
<!-- comienza el codigo del servidor --> <?php // codigo que permite mostrar errores en tiempo de ejecucion ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); require('../class/conexion.php'); require('../class/rutas.php'); ...
true
21f927e72abb263519d73af69e51bc9fddb31193
PHP
latzo/Ummisco
/Functions/ummiscoActor.php
UTF-8
546
2.765625
3
[]
no_license
<?php require_once "bdd.php"; function unUmmiscoActor($id) { $bdd = connexion(); $requete = "SELECT * FROM ummisco_actor WHERE id = :id"; $reponse = $bdd->prepare($requete); $reponse->execute(['id' => $id]); $donnees = $reponse->fetch(PDO::FETCH_ASSOC); return $donnees; } function allUmmi...
true
f2045d44bd80d6f1afc2c16de9e661dbbef0905b
PHP
Nakarima/ztp2
/app/src/DataFixtures/BugFixtures.php
UTF-8
2,030
2.59375
3
[]
no_license
<?php /** * Bug fixtures. */ namespace App\DataFixtures; use App\Entity\Bug; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Persistence\ObjectManager; /** * Class BugFixtures. * * @codeCoverageIgnore */ class BugFixtures extends AbstractBaseFixtures implements DependentFixtureInterfac...
true
a702f3b609f8d725fc25acb1a62876b1d7213975
PHP
AgnaldoJaws/teste.zf2
/module/Pc_help/src/Pc_help/Service/Solucao.php
UTF-8
577
2.71875
3
[]
no_license
<?php namespace Pc_help\Service; use Doctrine\ORM\EntityManager; use Pc_help\Entity\Solucao as solucaoService; use Pc_help\Entity\Configurator; class Solucao { /** * * @var EntityManager */ protected $em; public function __construct(EntityManager $em) { $this->em = $em; } public function insert(array ...
true
fc9d94ee367754c8e6e2c7fb453b9ca9fddca9bf
PHP
rickdenhaan/pushover-php
/tests/Capirussa/Pushover/ValidateTest.php
UTF-8
6,815
2.5625
3
[]
no_license
<?php require_once(dirname(__FILE__) . '/../../init.php'); use Capirussa\Pushover\Validate; use Capirussa\Pushover\Request; /** * Tests Capirussa\Pushover\Validate * */ class ValidateTest extends PHPUnit_Framework_TestCase { public function testConstructWithoutParameters() { $validate = new Validat...
true
f764312e0c108db971d7100790a5bf18eaa9e03a
PHP
Linkunder/dsi
/Logica/controlTercerTiempo.php
UTF-8
933
2.828125
3
[]
no_license
<?php include_once('../Persistencia/DAOTercerTiempo.php'); class controlTercerTiempo{ private static $instancia; private $persistenciaTercerTiempo; private function __construct(){ $this->persistenciaTercerTiempo = new DAOTercerTiempo(); } public function obtenerInstancia(){ if (!isset(self::$instancia...
true
d5d753f10f4893d05360f9d1600a7bb48e45fdaa
PHP
alsantosss/AulasJr
/pagination/paginacao2.php
UTF-8
1,147
3.203125
3
[]
no_license
<?php require_once "../stmt_crud/classes/database/Db.php"; $pdo = new Db(); $qtd_pg_user = 10; /* Bloco para Contagem dos Registros da Tabela */ $sql = "SELECT COUNT(*) as c FROM posts"; $sql = $pdo->db()->query($sql); $sql = $sql->fetch(); $total_registros = $sql['c']; /* Fim do Bloco */ /* * A divisão do to...
true
2197bcd4f6cf4dfdba701194fef55c4c726f22c7
PHP
benjamw/enigma
/lib/Ring.php
UTF-8
15,529
2.515625
3
[]
no_license
<?php namespace Enigma; class Ring { // the following are set the to be the same as the real enigma machines // but if you wish to change them, feel free // comment out these versions to keep a record if you do /** * The step rings (note that 4th rotors did not step) * Syntax: array(string representation of...
true
9fa979895d8a50978c3257d0a1bc9497eab1c4e7
PHP
shendu123/php
/pm/new_pm(22222)/open/application/basic/controller/BusinessCompany.php
UTF-8
2,804
2.515625
3
[]
no_license
<?php /** * 商户企业 * @Author zxl */ namespace app\basic\controller; use app\basic\model\BusinessCompany as bcModel; use app\common\controller\Base; class BusinessCompany extends Base { function __construct() { parent::__construct(); } /* * 企业列表 */ public function index(){ $p...
true
dea01d32a94b62ba7afc28bbc623df2ee06d42ad
PHP
actengage/nova-wizard
/database/migrations/2021_06_01_000000_create_wizard_sessions_table.php
UTF-8
963
2.546875
3
[]
no_license
<?php use Actengage\Wizard\Session; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateWizardSessionsTable extends Migration { protected $table; public function __construct() { $this->table = config( ...
true
7661982f698b91e897644039aeae151ecf6d5640
PHP
SIT-Careers-Project/sit-careers-api
/app/Traits/Utils.php
UTF-8
3,054
2.546875
3
[]
no_license
<?php namespace App\Traits; use App\Models\Announcement; use App\Models\Role; use Carbon\Carbon; use Throwable; trait Utils { public function checkDateToDayBetweenStartAndEnd($data) { return Carbon::now()->between($data->start_date, $data->end_date); } public function checkDueDateForAnnounc...
true
f6fe0b741d780a53b2f066b43fee1fa6c0f23dd2
PHP
nicomiguelino/ust-cs-undergrad-thesis
/ControlBreakWithExcelv2.php
UTF-8
9,883
3.09375
3
[]
no_license
<?php //Magic origin header: header("Access-Control-Allow-Origin: *"); //Function: Checks if a certain number is within the nodes included in //area bounded by Andre Soriano Jr. and Carlos Palanca Sr. function nodeNumberIsInPalancaSoriano($number) { $nodeNumbers = array(175, 152, 151, 142, 146, 144, 14...
true
32a19aed8f7213692ffc66182b4b16a91ca637f4
PHP
andim27/bc_admin
/modules/business/models/AddCell.php
UTF-8
666
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\business\models; use yii\base\Model; use Yii; use app\components\THelper; use app\models\api; class AddCell extends Model { public $login; public $password; public function rules() { return [ [['login', 'password'], 'required'], ['password'...
true
8e83d38a4abfd35b310625f69b1b0c61e0d5d2aa
PHP
cfv1000/phantomjs-cloud
/src/UrlSettings.php
UTF-8
832
2.71875
3
[ "MIT" ]
permissive
<?php namespace PhantomJS; /** * Class UrlSettings * adjustable parameters for when making network requests to the url specified. used by PageRequest. * * @package PhantomJS */ class UrlSettings { const OPERATION_POST = 'POST'; const OPERATION_GET = 'GET'; /** * submitted in POST BODY of your re...
true
9dca656701372f851723f8b2eae45ca01061ae94
PHP
amymok/cfpb-wp-cli
/migrate.php
UTF-8
4,624
2.9375
3
[ "CC0-1.0" ]
permissive
<?php namespace CFPB; /** * Migrates meta data * * @subcommand taxonomy * **/ class Migrate_Command extends CLI_Common { /** * * Migrates terms in one taxonomy to another. Useful for when you decide you want tags instead of categories. * * ## Options * * <from> * : The taxonomy to migr...
true
3b7a87af585ee9a5252949167f180e0714016e95
PHP
OpenSimpleSSO/CommonBundle
/src/Security/LogoutSuccessHandler.php
UTF-8
790
2.53125
3
[ "MIT" ]
permissive
<?php namespace SimpleSSO\CommonBundle\Security; use SimpleSSO\CommonBundle\Model\AuthServerModel; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\Logout\LogoutSuccessHandlerInterface; class LogoutSuccessHandler implements Logou...
true
81b20a51a39abb8e517f2e84ae008e6178f2ff2c
PHP
levi1975/Gekko
/app/Http/Controllers/SecretController.php
UTF-8
4,316
2.84375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Crypt; use Illuminate\Support\Facades\DB; use Carbon\Carbon; use App\Models\TopSecret; class SecretController extends Controller { /** * Store a newly created resource in storage. * * @param \Il...
true
021670e32e4107e7e589376290afc455bf58c161
PHP
alexandre-lupu/LePlanning
/PlanningBundle/Controller/UserController.php
UTF-8
3,067
2.546875
3
[]
no_license
<?php namespace Iut\PlanningBundle\Controller; use Iut\PlanningBundle\Entity\User; use Iut\PlanningBundle\Entity\Participate; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Symfon...
true
c3abfc8929b53c0abca635f78dc1de93ac57ecf5
PHP
webage-solutions/wflow
/api/app/Models/User.php
UTF-8
2,926
2.6875
3
[]
no_license
<?php namespace App\Models; use App\Components\Search\Searchable; use App\Objects\Setting; use App\Scopes\CurrentOrganizationScope; use Eloquent; use Illuminate\Database\Eloquent\Collection; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTok...
true
1021511da14da62a191324067ef5286c0ec72e39
PHP
stubbles/stubbles-1.x
/src/test/php/net/stubbles/util/log/appender/stubMailLogAppenderTestCase.php
UTF-8
5,086
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Test for net::stubbles::util::log::appender::stubMailLogAppender. * * @package stubbles * @subpackage util_log_appender_test * @version $Id: stubMailLogAppenderTestCase.php 2060 2009-01-26 12:57:25Z mikey $ */ stubClassLoader::load('net::stubbles::util::log::appender::stubMailLogAppender'); /...
true
23df45e9d0d8c977a003625d0f0cef07acc5109f
PHP
gpapilion/liftium
/delivery/smoke_test/smoke.php
UTF-8
508
2.578125
3
[]
no_license
<?php // show errors loudly error_reporting(E_STRICT | E_ALL); ini_set('display_errors', true); $ToTest = array( 'masterdb', 'slavedb1' ); $User = 'liftiumprod'; $Pass = 'gorilla'; $Stat = 'Uptime'; foreach ( $ToTest as $host ) { $dsn = "mysql:dbname=liftium;host=" . $host; $dbh = new PDO( $dsn, $User...
true
15a099803541033328d2a3e2f381cff741ef9653
PHP
ACS-DDS/ninja_flex
/models/TchatModel.php
UTF-8
968
2.59375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class TchatModel extends CI_Model { public function __construct(){ parent::__construct(); $this->load->helper('url'); $this->load->database(); } public function message($message, $id_client) { $data = array( "message" => $message, ...
true
bcfbe8536a4368f4160f2caaa83acfd26fe8fa05
PHP
Suh-Edmond/Laravel-Passport
/app/Http/Controllers/Api/ApiController.php
UTF-8
4,127
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Cookie; class ApiController extends Controller { //register a user to the syste...
true
7e6161b5d1bbf8b63a20cb884eeef9945d979482
PHP
tpohare/redirector
/tests/Feature/RedirectTest.php
UTF-8
1,591
2.671875
3
[]
no_license
<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; use App\Redirect; class RedirectTests extends TestCase { use RefreshDatabase; const TEST = "http://localhost"; const YAHOO = "https://yahoo.com"; const ALTA_VISTA = "http://altavista.com"; const...
true
cf06d90f564f437acc804f11bd5198012fb8e754
PHP
mrimann/CoMo
/Classes/Mrimann/CoMo/Domain/Model/AggregatedDataPerUser.php
UTF-8
8,706
2.6875
3
[ "MIT" ]
permissive
<?php namespace Mrimann\CoMo\Domain\Model; /* * * This script belongs to the TYPO3 Flow package "Mrimann.CoMo". * * * * ...
true
c9d53a7478f07ff5c442140a73b382ddb8886d95
PHP
eterfund/retypos-adapter
/src/TyposArticle.php
UTF-8
735
3.078125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: ambulance * Date: 25.05.18 * Time: 19:47 */ namespace Etersoft\Typos; /** * Class TyposArticle * * An article object with a text and id * * @package Etersoft\Typos */ class TyposArticle { public $id; public $text; public $title; public $subtitle; ...
true
262759ab367e509a324cb76c7550744f9b3c64e5
PHP
HvorostenkoNV/ServiceSystem
/core/ServiceSystem/Parameters/Provider.php
UTF-8
2,931
3.265625
3
[]
no_license
<?php declare(strict_types=1); namespace ServiceSystem\Parameters; use SplFileInfo; use function strlen; use function explode; use const PARAMETERS_FILE; /** *********************************************************************************************** * Parameters provider class, provides system parameters readi...
true
2f46055dec1594ab5afb88228a4cf71dd4119c02
PHP
ryanMeredith/sortingAlgorithms
/trunk/src/timers/TimedObject.php
UTF-8
82
2.53125
3
[]
no_license
<?php namespace timers; interface TimedObject { public function runProcess(); }
true
cde8b499c02851cbf0c92550fcd6387c2c0862d7
PHP
marcius/condorweb
/web/protected/models/TransazioneEx.php
UTF-8
6,001
2.578125
3
[]
no_license
<?php /** * This is the model class for table "transazioniex". * * The followings are the available columns in table 'transazioniex': * @property string $rowtype * @property string $anno_registrazione * @property string $tipo_transazione * @property string $id_causale * @property string $id_cassa * @property ...
true
b92bac5cbea52f30e5bf32e5e948e99d7ab4482e
PHP
karimcambridge/aia-groundhandling
/includes/consignee.class.php
UTF-8
501
2.6875
3
[]
no_license
<?php class Consignee implements AIAGroundHandlingTemplate { private $consigneeId; private $consigneeName; private $consigneeCarrierId; function __construct($id, $name, $carrierId) { $this->_consigneeId = $id; $this->_consigneeName = $name; $this->_consigneeCarrierId = $carrierId; } public function getId(...
true
24d37f61e8aa03532068c175cf0d0f35418c3484
PHP
Tzu-Ti/Garden-Monitor-System
/php/checkAccount.php
UTF-8
459
2.578125
3
[]
no_license
<?php include("mysql.php"); mysqli_query($conn, 'SET NAMES utf8'); $account = $_POST['Account']; // To fetch that this account exists or not $sql = "SELECT * FROM `account` WHERE `account`='$account';"; $results = mysqli_query($conn, $sql); $result = mysqli_fetch_array($results); if(empty($result)) {...
true
a31f140aa7c9b47b2427db5af8e59ba23ba4f2a8
PHP
SureShinde/protecta-group
/app/code/Cminds/MultiUserAccounts/Model/Plugin/Customer/Authentication/Plugin.php
UTF-8
2,863
2.515625
3
[]
no_license
<?php namespace Cminds\MultiUserAccounts\Model\Plugin\Customer\Authentication; use Cminds\MultiUserAccounts\Model\Config as ModuleConfig; use Magento\Customer\Api\CustomerRepositoryInterface; use Magento\Customer\Model\AuthenticationInterface; use Cminds\MultiUserAccounts\Api\SubaccountRepositoryInterface; use Magent...
true
4ab6f68a29e33b3c36aa1c1837ebd94ae9f8a084
PHP
Monyancha/Online-Bus-Booking-Tracking-System
/Web Based Booking System/SLTB/controllers/systemUser.php
UTF-8
4,726
2.546875
3
[]
no_license
<?php class SystemUser extends Controller { function __construct() { parent::__construct(); Session::init(); } /* * View System User pages. */ function index() { if (Session::get('privilege') == 'Admin' || Session::get('privilege') == 'Operator') { $this...
true
404f20178c5cab643a6f575d871e500d92ba26bb
PHP
ckhero/guava
/admin/services/DashboardService.php
UTF-8
2,155
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ckhero * Date: 2019/3/16 * Time: 5:59 PM */ namespace admin\services; use Carbon\Carbon; use common\consts\OrderConst; use common\models\Order; use common\models\User; class DashboardService extends BaseService { const DAY = 5; public function index() { ...
true
3fb3fe6b0e37cee36f566c9086d121e3a7dfdb98
PHP
SalihaZ/Nesti_php
/app/entity/Article.php
UTF-8
3,010
3.265625
3
[]
no_license
<?php class Article{ private $id_extern; private $name; private $date_creation; private $price; private $quantity_by_unit; private $type; private $user_article_name; private $stock; //type /** * Get the stock of an article */ public function getStock() { return $this->stock; } /**...
true
bb27188b8fa01dea991c765bc7459fe961c03018
PHP
jamiehoward/hunt
/app/Http/Controllers/CampaignController.php
UTF-8
2,200
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Campaign; use Illuminate\Http\Request; class CampaignController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data = [ 'campaign...
true
f6fc2f0d68c2188262cd0f4c74f55c11cadb9a68
PHP
iwansafr/perpusda
/article/views/pencarian-lanjut/_bookingList.php
UTF-8
468
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php if(isset($booking)){ ?> <table class="table table-bordered"> <tr> <td> no </td> <td> Judul Buku </td> <td> Expired </td> </tr> <?php $i=1; foreach($booking as $data){ echo" <tr> <td> ".$i." </td> <td> ".$data->Title." </td> <td> ...
true
d3b78ba0491e0c93e7eb387e9deb61a0a958c364
PHP
Bertrand-Arnaud/PHPWebService
/WebService.class.php
UTF-8
4,388
3.140625
3
[]
no_license
<?php class WebService { private $_auth; // Authentification Key. private $_WSDataPath; // Path to the JSON file containing the queries dictionnary. private $_WSData; // Associative array containing the different queries and all the relative datas. public $_HTTPRequest; // Associative array with th...
true
a3c33247b71150171244a298df9b769a47724102
PHP
BAleksiev/Onixia
/core/App.php
UTF-8
1,806
2.625
3
[]
no_license
<?php include_once 'controllers/Buildings.php'; include_once 'controllers/Flights.php'; include_once 'controllers/Messages.php'; include_once 'controllers/Planet.php'; include_once 'controllers/Resources.php'; include_once 'controllers/Ships.php'; include_once 'controllers/Sciences.php'; include_once 'controllers/User....
true
ef7ac48cc24079b6bc445393518ccd0736c12fd1
PHP
LCD344/Kirby-userManager-panel-extention
/Panel/Stubs/UserMailer.php
UTF-8
756
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: lcd34 * Date: 24/9/2016 * Time: 4:53 PM */ namespace lcd344\Panel\Stubs; class UserMailer { private $user; public function __construct($user) { $this->user = $user; } public function topbar($topbar) { $topbar->append(purl('userManagement'), "Use...
true
b6073aeac467888b0a8c85b311c04ea667154629
PHP
Akash-manna/sabd
/database/seeds/AuditsTableSeeder.php
UTF-8
1,766
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Audit; class AuditsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $sync_data = [1=>['base_price' => 10000, 'vat' => 1500, ], 2=>['base_price' => 15000, 'vat' => 1500, ], 3=>['b...
true
f81799c5a6ecbbe6a8f19269aeb61089ada4795e
PHP
chabior/jtimer
/src/chabior/jTimer/Model/ParserInterface.php
UTF-8
227
2.78125
3
[]
no_license
<?php namespace chabior\jTimer\Model; /** * Description of ParserInterface * * @author chabior */ interface ParserInterface { /** * * @param array $tokens */ public function parse(array $tokens); }
true
5e491e26977c967f2c3c235baa30c7488bc9eee9
PHP
ergoz/oliver
/src/Reply/Ping.php
UTF-8
525
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Oliver\Reply; class Ping implements ReplyInterface { public function __construct() { } public function handle(array $event): array { $ping = $event['request']['original_utterance'] === 'ping'; if ($ping) { return [ ...
true
d2ad6b9abd82e08b9066730203dd62a2afd47001
PHP
gudenn/sapti2
/_inc/clases/Inscrito.php
UTF-8
2,243
2.78125
3
[]
no_license
<?php /** * Esta clase es para guardar los datos de los estudiantes inscritos en una materia * * @author Guyen Campero <guyencu@gmail.com> */ class Inscrito extends Objectbase { /** si es profecional o no */ const E_CERRADO = "CR"; const E_ACTUAL = "AC"; /** * Codigo identificador de la evaluacion ...
true
387213a9bd5ffe47ac9857f68d6aebd3ed0908b4
PHP
async-aws/aws
/src/Service/MediaConvert/src/ValueObject/MsSmoothAdditionalManifest.php
UTF-8
2,439
2.859375
3
[ "MIT" ]
permissive
<?php namespace AsyncAws\MediaConvert\ValueObject; /** * Specify the details for each additional Microsoft Smooth Streaming manifest that you want the service to generate for * this output group. Each manifest can reference a different subset of outputs in the group. */ final class MsSmoothAdditionalManifest { ...
true
99d1b740c3fcbc1cf4930918d4c5e97bff283e5a
PHP
Mauriinf/Dino-oj
/includes/funcs.php
UTF-8
10,164
2.625
3
[]
no_license
<?php function isnullDatosRegistroUsuario($nick,$password,$nombre,$apellido,$email,$ubicacion,$escuela){ if(strlen(trim($nick)) < 1 || strlen(trim($password)) < 1 || strlen(trim($nombre)) < 1 || strlen(trim($apellido)) < 1 || strlen(trim($email)) < 1|| strlen(trim($ubicacion)) < 1|| strlen(trim($escuela)) < 1) { ...
true
77e875c462ab4eebd17cb7a71bc2f7a3a6ea8e79
PHP
elazar/phpcs-kohana
/test/PHP_CodeSniffer/CodeSniffer/Standards/Kohana/Tests/ControlStructures/SwitchUnitTest.inc
UTF-8
203
2.703125
3
[]
no_license
<?php switch (true) { case 1: echo 'indented'; break; case 2: echo 'not indented'; break; case 3: case 4: echo 'multiple cases'; break; case 5; default: echo 'default case'; break; }
true
ba40b6a9afad35ce1fc389048612d0ea7d25b0da
PHP
mutedalien/conspect
/PHP_1/Less_5/adminka.php
UTF-8
3,967
2.75
3
[]
no_license
<!-- Делаем админку для редактирования данных --> <!-- Скрипт на Аяксе. Кликая на кн "Сохранить" --> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <!-- Импортируем jquery --> <script> function f(id){ // Функция, запускаемая кнопкой "Сохранить", принимающая ID товара // alert(id); // Так ...
true
356bd2217a14c651929f7fb117c727944fcc503f
PHP
evanhsu/siskiyourappellers
/flighthour_data.php
UTF-8
5,362
2.8125
3
[]
no_license
<?php //include charts.php to access the SendChartData function include_once("includes/charts/charts.php"); require_once("classes/mydb_class.php"); //Determine which 5 years to display on the chart $query = "SELECT max(year) as year FROM flighthours"; $result = mydb::cxn()->query($query); if(mydb::cxn()->error != ...
true
0a6d09d686a399162e5c5711d13e32a551da9c2e
PHP
youssef-farhat/DS21-poo-with-php
/classes/client.class.php
UTF-8
2,023
3.078125
3
[]
no_license
<?php require 'database.class.php'; class Client { private $pdo; public function __construct() { $conn = new Database(); $this->pdo = $conn->getConnection(); } public function getAllClients() { try { $sql = "SELECT * FROM clients"; $query = $th...
true
0c0b71dde1b29904e5f2f58281b3b0778504a719
PHP
baobaohui/PHP
/day13/SIMS/App/Home/Controller/NewsController.class.php
UTF-8
1,403
2.671875
3
[]
no_license
<?php //包含基础控制器类 //require_once ("./BaseController.class.php"); //定义最终的信息控制类 final class NewsController extends BaseController { public function index() { //创建学生模型 $modelObj = FactoryModel::getInstance("NewsModel"); //获取多行数据 $arrs = $modelObj->fetchAll(); //包含学生首页视图文件 ...
true
be03173ed2ac96a6b827394f0a5c1741216fe12a
PHP
ebo2007/GESTRH
/control/connexion.php
UTF-8
1,915
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: e.bouh * Date: 30/10/2017 * Time: 15:40 */ //namespace control; class connexion { public $cnx; private $servername = "10.100.1.2"; private $db = "amgrh"; private $username = "ebouh"; private $password = "ebo"; functio...
true
299c2a280cf81544d7024b2d34e5e02dc403ab25
PHP
amazhara/camagru
/camagru/app/controllers/Posts.php
UTF-8
7,029
2.78125
3
[]
no_license
<?php /* * Posts controller * Snap photos * Add posts * Comment posts * Like posts */ class Posts extends Controller { private $userModel; private $postModel; public function __construct() { $this->userModel = $this->model('User'); $this->postModel = $this->model('Post'); }...
true
b550697d56c8ba829c8833687d77fc27d2962ffd
PHP
freyo/laravel-queue-cmq
/src/Queue/Driver/CMQExceptionBase.php
UTF-8
926
2.796875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Freyo\LaravelQueueCMQ\Queue\Driver; use RuntimeException; class CMQExceptionBase extends RuntimeException { /* @type code: int @param code: 错误类型 @type message: string @param message: 错误描述 @type data: array @param data: 错误数据 */ public $code; public $message; ...
true
9f331412993cfce7423775343395fd44989aa945
PHP
shadowdestiny/dockenizacion
/src/apps/web/vo/PaymentWeight.php
UTF-8
479
2.734375
3
[]
no_license
<?php namespace EuroMillions\web\vo; class PaymentWeight { protected $value; public function __construct($value) { if(!is_integer($value)) { throw new \InvalidArgumentException('Value should be an integer'); } $this->value= $value; } public functio...
true
d33133b3ff9a76bfef256e5a7b22880d3dba382f
PHP
Letonade/Hitema-M1x2-Projet-2018-2019
/LeSite/assets/php/DAO/ModuleElectricite.DAO.php
UTF-8
2,998
2.53125
3
[]
no_license
<?php function ModuleElectricite_Insert($obj) { $connQuery = new APP_BDD; $sql = 'INSERT INTO module_electricite VALUES ( '.sqlIntNull($obj->IdModuleElectricite()).' , '.sqlFloatNull($obj->Consommation()).' , '.sqlDateNull($obj->DateChangement()).' , '.sqlIntNull($obj->IdContainer()).')'; if ($res = $co...
true