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
8105d6b8df373ebbc54fa2d41ccb27543e8794b5
PHP
nosleitores/nosleitores-tainacan-theme
/wp-content/plugins/tainacan/classes/metadata-types/core-title/class-tainacan-core-title.php
UTF-8
2,840
2.65625
3
[ "GPL-2.0-or-later", "GPL-3.0-only", "MIT" ]
permissive
<?php namespace Tainacan\Metadata_Types; use Tainacan\Entities\Metadatum; defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); /** * Class TainacanMetadatumType */ class Core_Title extends Metadata_Type { function __construct(){ // call metadatum type constructor parent::__construct()...
true
bbd1ba3c8ac932a8bbedcfa618a9b2d8a999037a
PHP
codingandcommunity/Learn-With-Coding-And-Community
/moodle/lib/horde/framework/Horde/Mime/Headers/ContentParam/ContentDisposition.php
UTF-8
2,290
2.546875
3
[ "GPL-1.0-or-later", "GPL-3.0-only", "MIT" ]
permissive
<?php /** * Copyright 2015-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @category Horde * @copyright 2015-2017 Horde LLC * @license http://www.horde.org/licenses/lgpl2...
true
f1db2f099c1c999841c7bf3f76b2201cea945123
PHP
castiron/cicbase
/Classes/Structures/Set.php
UTF-8
1,901
3.3125
3
[]
no_license
<?php namespace CIC\Cicbase\Structures; /** * A basic Set implementation. Simply uses php array keys as hashes, * but guarantees uniqueness. * * NOTE: Right now, this is only for simple values (integers, strings, ...) that * can be listed as a key for an array. See array_unique for restrictions. * * Class Set ...
true
e0fdd772413a49cea5c71501d8041f3bc6269966
PHP
zackneff2/belodoc
/lib/cls/Setting.php
UTF-8
619
2.84375
3
[]
no_license
<?php class Setting { public function __construct($array) { if (isset($array['email'])) { $this->email = $array['email']; } if (isset($array['phone'])) { $this->phone = $array['phone']; } if (isset($array['address'])) { $this->address = $array['address']; } if (isset($array['city'])) { $thi...
true
b092d5d08ed9f7f4f6195e39a75a17ef53c57732
PHP
verdonarthur/HEIG_MEDIA_MDT_ProjetAssurance
/app/Models/Couverture.php
UTF-8
4,397
3.03125
3
[]
no_license
<?php namespace App\Models; use App\Lib\Message; use Illuminate\Database\Eloquent\Model; use Validator; class Couverture extends Model { /** * Définition des règles de validation pour une nouvelle Couverture * @var array */ public static $rules = [ // Numéro du dossier du contrat : mêm...
true
d0f706d8aa438dd4ff8554d024b9fba25e292469
PHP
gianluca-venturini/oauth2-bank-simulation
/bank1/transfer.php
UTF-8
1,987
2.609375
3
[]
no_license
<?php // include our OAuth2 Server object require_once __DIR__.'/server.php'; $request = OAuth2\Request::createFromGlobals(); $response = new OAuth2\Response(); $scopeRequired = 'request_transfer'; // this resource requires "postonwall" scope // Handle a request for an OAuth2.0 Access Token and send the respon...
true
c2d3198100e81ba37dc0733217d0ec783a0559b3
PHP
mlrahman/NEUB_RPS
/includes/faculty/cgpa_graph.php
UTF-8
13,330
2.59375
3
[]
no_license
<?php try{ require("../includes/faculty/logged_out_auth.php"); } catch(Exception $e) { header("location:index.php"); die(); } ?> <p class="w3-bold w3-left w3-xlarge w3-text-teal w3-bottombar" style="margin:0px 0px 15px 0px;width:245px;"><i class="fa fa-line-chart"></i> CGPA Statistics</p> <p class="w...
true
9f882360be97a7dc14d0aaba3ec64fb79e1733cb
PHP
danschmidt5189/yii-rest
/behaviors/hal/HALLink.php
UTF-8
1,377
2.90625
3
[]
no_license
<?php /** * HALLink class file. * * @copyright 2013 by iWorldServices, Inc. * @author Dan Schmidt <danschmidt5189@gmail.com> */ Yii::import('yii-rest.behaviors.hal.*'); /** * Represents a HAL link. * * @package rest * @subpackage hal */ class HALLink extends CMap { /** * @var string link uri value....
true
f08bdb12a608ad058abc81df00fd543da6bda244
PHP
DylanBaine/teamup
/app/Models/ScheduledActivity.php
UTF-8
976
2.796875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; class ScheduledActivity extends Model { protected $fillable = [ 'type', 'time', 'day', 'week', 'schedulable_type', 'schedulable_id' ]; public function shouldRunNow(){ $today = date('l'); $week ...
true
d67f51b21ac93367159eb97e4dcc453e1f05f030
PHP
isabella232/symfony-application-tests
/tests/Webfactory/Util/DataProviderArgumentIteratorTest.php
UTF-8
1,812
2.984375
3
[ "MIT" ]
permissive
<?php namespace Webfactory\Util; use PHPUnit\Framework\TestCase; /** * Tests the argument iterator. */ class DataProviderArgumentIteratorTest extends TestCase { /** * Checks if the iterator is traversable. */ public function testIsTraversable() { $this->assertInstanceOf('Traversable',...
true
a55519943cab8f5868c828cceaac15b8d27a61d1
PHP
Sywooch/eshop-crm
/yii2/models/KladrSearch.php
UTF-8
4,267
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Kladr; /** * KladrSearch represents the model behind the search form about `app\models\Kladr`. */ class KladrSearch extends Kladr { /** * @inheritdoc */ public function rules() { r...
true
d7fb87ef0e14bd8c849481d51b25424b2f09392a
PHP
labomatik/calendar-links
/src/Generators/Yahoo.php
UTF-8
1,379
2.703125
3
[ "MIT" ]
permissive
<?php namespace Labomatik\CalendarLinks\Generators; use DateTimeZone; use Labomatik\CalendarLinks\Link; use Labomatik\CalendarLinks\Generator; /** * @see https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/blob/master/services/yahoo.md */ class Yahoo implements Generator { public function...
true
00aef2df36e315fc7b3753999f1388b4e0884502
PHP
ttpotato/shopimooc
/admin/listAdmin.php
UTF-8
1,631
2.59375
3
[]
no_license
<?php require_once '../include.php'; $page = $_REQUEST['page']?(int)$_REQUEST['page']:1; $pageSize = 2; $table = "imooc_admin"; $rows = getResultByRows($page, $pageSize, $table); $sql = "select * from imooc_admin"; $totalRows = getResultNum($sql); $totalPage = ceil($totalRows/$pageSize); ?> <html> <head> <meta h...
true
a08afcb97e72342314ea114b46643a8a9934b4dc
PHP
Phantas0s/playground
/clojure/modern-cljs/modern-javascript/ch15/htdocs/ajax/bid.php
UTF-8
1,662
3.03125
3
[]
no_license
<?php # view.php // This page handles the bid form via Ajax! // Returns JSON. // Always need the configuration file: require('../includes/config.inc.php'); // Script returns JSON: header('Content-Type: application/json'); // Default response: $data = array('status' => 'error', 'message' => 'An invalid bid was submit...
true
44ec3aeccc52569209a6dc2f707879af9e5db2d9
PHP
ondrej-petr/jednouzacas.cz
/application/models/Event/Mapper.php
UTF-8
1,126
2.5625
3
[]
no_license
<?php class App_Model_Event_Mapper extends OPLib_Model_Mapper_Abstract { protected $_tableClass = 'App_Model_Event_Table'; protected $_modelClass = 'App_Model_Event'; //========================================================================== /** * Vrati posledni probehlou udalost pro danou akci. * * @pa...
true
4ababd3beb3c5ac64ddbdb74c159acb646ee3b01
PHP
Nicolas-Chourot/Contacts-Manager
/models/contact.php
UTF-8
5,274
3.09375
3
[]
no_license
<?php require 'modelUtilities.php'; class Contact extends Record { private $_id; private $_name; private $_email; private $_phone; public function setId($id) { $id = (int)$id; if ($id > 0) $this->_id = $id; } public function setName($name) ...
true
d01b7c176d244bb467912806931fda48b4c40fd6
PHP
titenis/commission
/src/Calculate/CommissionCalculateInterface.php
UTF-8
649
2.828125
3
[]
no_license
<?php namespace Commission\Calculate; use Commission\Entity\Payment; use Commission\Entity\PaymentsCache; use Commission\MathInterface; /** * Interface CommissionCalculateInterface * * @package Commission\Calculate */ interface CommissionCalculateInterface { /** * @param \Commission\Entity\Payment ...
true
08aa5229c010ad99de3450ab114d2dd7bf6222cd
PHP
apa-narola/cakephpaccount
/app/Controller/AppController.php
UTF-8
2,427
2.84375
3
[]
no_license
<?php /** * Application level Controller * * This file is application-wide controller file. You can put all * application-wide controller-related methods here. * * @link http://cakephp.org CakePHP(tm) Project * @package app.Controller * @since CakePHP(tm) v 0.2.9 */ App::uses('Controlle...
true
c2c465c466e5291751abe228a7438420e2ed443a
PHP
ericsergio/trivia
/pages/trivia.php
UTF-8
8,563
2.90625
3
[]
no_license
<?php class Trivia { protected function do_config($num) { $config=file_get_contents('config'); $config_values = []; $arr = explode(',', $config); $val_arr = ['/^h:/', '/^d:/', '/^u:/', '/^p:/']; $dsn_parts = []; foreach($arr as $current) { for($i = 0;$i < count($val_arr); $i++) { if(preg_m...
true
ddb732b378992a2055f72645de74936e2bdc3f0b
PHP
rainmakeross/apptracer
/protected/controllers/FacebookController.php
UTF-8
1,905
2.625
3
[]
no_license
<?php class FacebookController extends Controller { var $user, $loginUrl; protected function afterRender($view, &$output) { parent::afterRender($view,$output); //Yii::app()->facebook->addJsCallback($js); // use this if you are registering any $js code you want to run asyc Yii::app()-...
true
159073d3cf0ac9c617e02f920df72dd358318742
PHP
ovr/php-web-benchmarks
/serialize.php
UTF-8
1,907
2.90625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ovr * Date: 06.12.15 * Time: 22:26 */ use Lavoiesl\PhpBenchmark\Benchmark; use Ovr\Bench\AssignOrNot\ReturnAfterAssignProperty; use Ovr\Bench\AssignOrNot\ReturnWithoutAfterAssignProperty; include_once __DIR__ . '/vendor/autoload.php'; function bench($value, $n = 1000000)...
true
be61ca379cb2007f0a0ae78749f34ba9f7e8025e
PHP
avshatalov48/bitrix24-core-corp
/modules/crm/lib/integrity/volatile/type/bankdetailfield.php
UTF-8
3,248
2.53125
3
[]
no_license
<?php namespace Bitrix\Crm\Integrity\Volatile\Type; use Bitrix\Crm\BankDetailTable; use Bitrix\Crm\EntityBankDetail; use Bitrix\Crm\Integrity\Volatile\FieldCategory; use Bitrix\Crm\RequisiteTable; use Bitrix\Main\Entity\Query; use Bitrix\Main\Entity\ReferenceField; use CCrmOwnerType; class BankDetailField extends Ba...
true
00942e05303007e2e3461cdc4d2658929e8e6052
PHP
sorceresslulu/php-leagueoflegends-api
/src/LolAPI/Service/CurrentGame/Ver1_0/SpectatorGameInfo/DTO/Observer.php
UTF-8
529
2.71875
3
[ "MIT" ]
permissive
<?php namespace LolAPI\Service\CurrentGame\Ver1_0\SpectatorGameInfo\DTO; class Observer { /** * Key used to decrypt the spectator grid game data for playback * @var string */ private $encryptionKey; function __construct($encryptionKey) { $this->encryptionKey = $encryptionKey; ...
true
deadd8e1421b1012a2210f3784f724a461bbb8d2
PHP
petarbaykov/events
/app/Http/Controllers/CustomizerController.php
UTF-8
396
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Services\Customizer; class CustomizerController extends Controller { protected $customizer = null; public function __construct(){ $this->customizer = new Customizer; } public function save(Request $request){ $sa...
true
f02e04a49783278e93988578aa9e6d94bd838840
PHP
CodingBridz/final
/admin/edit-post.php
UTF-8
7,996
2.5625
3
[]
no_license
<?php require_once('../inc/db.php'); ?> <?php session_start(); if(!isset($_SESSION['username'])){ header("Location:login.php"); } $session_username = $_SESSION['username']; $session_role = $_SESSION['roll']; $session_author_image = $_SESSION['author_image']; if (isset($_GET['edit'])) { $edit_id = $_GET['e...
true
0558260bfcf74d2e4f5832e34b7028e9bbeeaa8e
PHP
cclaudiu123/ajax
/chat/chat.class.php
UTF-8
3,023
3
3
[]
no_license
<?php require_once ('config.php'); require_once ('error_handler.php'); class Chat { private $mMysqli; function __construct() { $this->mMysqli = new mysqli(DB_HOST,DB_USER,DB_PASSWORD,DB_DATABASE); } public function __destruct() { $this->mMysqli->close(); } public func...
true
71ee2ce712f16c5199510ea6df0132a890ed292a
PHP
andrewmarcus/Group-Planner
/classes/PAttendee.inc
UTF-8
9,128
2.78125
3
[]
no_license
<? class PAttendees { const ATTENDEES_DIR = '_attendees'; protected static $events = array(); public $eventKey; public $members = array(); /** * Get all the attendees for an event. * * @return PAttendees */ public static function getEventAttendees($eventKey, $refresh = false) { if ...
true
59382ca5b9455218ee1a23189ca0b15bd59691f0
PHP
jaimeefrainguira/mis-proyectos
/sistema web cuerpo de bomberos/borrarLuego/clases/Contribuyente.php
UTF-8
3,281
2.9375
3
[]
no_license
<?php class Contribuyente { //put your code here private $idcontribuyente; private $tipo_documento; private $razon_social; private $direccion; private $telefono; private $email; private $fecha_ingreso; private $especial; private $patente; private $fecha_importacion; priv...
true
fc3b17bb459c36556a0c53714432c3093cc38439
PHP
obj007/iModule.module.sm
/ModuleSm.class.php
UTF-8
15,071
2.625
3
[]
no_license
<?php /** * 이 파일은 iModule 숙명여대 연동모듈의 일부입니다. (http://www.coursemos.kr) * * 숙명여대 시스템 접근 및 숙명여대 전용 위젯 및 컨텍스트를 처리한다. * * @file /modules/sm/ModuleSm.class.php * @author Arzz (arzz@arzz.com) * @license MIT License * @version 3.0.0 * @modified 2018. 9. 27. */ class ModuleSm { /** * iModule 및 Module 코어클래스 */ p...
true
9fd82576e925e6ad0a17c98892e1ffd0e8785f71
PHP
lukakavlelashvili11/nuxt-laravel-ecommerce
/api/app/Repositories/BrandsRepository.php
UTF-8
278
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Brand; class BrandsRepository{ private $brand; public function __construct(Brand $brand){ $this->brand = $brand; } public function get(){ return $this->brand->with('product')->get(); } }
true
9c67e5320f4e0299785acf2e445e4ffdc3f5652d
PHP
JorgeGT616/Coyoteria
/dynamics/catalogo.php
UTF-8
5,056
2.53125
3
[]
no_license
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>El Coyote Hambriento</title> <link rel="icon" href="../Statics/Img/Logo.png"> <link rel="stylesheet" href="../Statics/css/Diseño.css"> </head> <body> <?php session_name("ElCoyote"); session_id("3141592653")...
true
a1bd793f6fbd9b0f4aa7a9d2fae54fb943d7973a
PHP
dramaticlly/internet-forum
/register.php
UTF-8
1,368
2.984375
3
[]
no_license
<?php session_start(); // REGISTER.PHP // PRIMARY USER: Everyone // PURPOSE: Displays a registration form for users to create accounts // on the forum. If the user is already signed in, returns an error. // If not, the form is displayed and POSTS to confirm-registration.php include 'header2.php'; //checks to see if ...
true
3b0490cbcde910c2cf0764e2dcacbf3748649b7f
PHP
PEPSIASAS/RollingCurl
/src/RollingCurlService/RollingCurlRequest.php
UTF-8
1,732
3.25
3
[ "MIT" ]
permissive
<?php namespace RollingCurlService; class RollingCurlRequest { private $url; private $options; private $attributes; private $addToGlobalOptions = false; private $fileToWrite; public function __construct(string $url, Array $options = null, Array $attributes = null) { $this->url ...
true
8804cf49641eb28abf00a6f565e4861c9a41c2a3
PHP
laradic/php-build-tools
/phing/tasks/GitBumpTask.php
UTF-8
1,242
2.546875
3
[ "MIT" ]
permissive
<?php /** * Part of the Laradic PHP Packages. * * Copyright (c) 2017. Robin Radic. * * The license can be found in the package and online at https://laradic.mit-license.org. * * @copyright Copyright 2017 (c) Robin Radic * @license https://laradic.mit-license.org The MIT License */ class GitBumpTask extends Git...
true
a8561aee838ed7edbadd525150f87f119cd0a405
PHP
letrunghieu/calos
/application/migrations/2013_06_06_155306_create_activity_table.php
UTF-8
979
2.6875
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class Create_Activity_Table { /** * Make changes to the database. * * @return void */ public function up() { Schema::create('activities', function($table) { $table->increments('id'); $table->string('title'); $table->text('description'); $table->integer(...
true
cb934198725412d8adc73f7d3fa424be3b786a4c
PHP
EduardF1/php-practice
/intro/implode/index.php
UTF-8
508
2.890625
3
[]
no_license
<?php $names = array('Alex', 'Kevin', 'Josh'); echo implode(',', $names); // collect and process data $name = 'Eduard'; $email = 'edfis@edfis.com'; $message = 'PHPnamite'; $telephone = 50221333; $data = array( 'name' => $name, 'email' => $email, 'message' => $message, 'telephone' => $telephone ); $fi...
true
f907c24f8ae36c70a3935bab67d0c7a5c41acae3
PHP
MaximTumanov/ANONSADMIN
/administrator/components/com_films/helper.php
UTF-8
2,740
2.625
3
[]
no_license
<?php class FilmsHelper { /** * выводит список select * @param array $array массив 'значение' => текст * @param string $id атрибут ID * @param string $text текст нулевого индекса * @param int $active ID активного */ function selectList($array, $id, $text, $active = NULL, $style = 'style="width:200px"') { ...
true
046309954b526069d0d4d9bd340d92e168985fb7
PHP
kukurykum/szkola
/php/wia/edit.php
UTF-8
1,158
2.734375
3
[]
no_license
<!DOCTYPE html> <html lang="pl"> <head> <title>edit formats</title> <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../style/style.css?v=<?php echo time(); ?>"> </head> <body> <header> <?php $nazwa = $_GET['id']; echo "...
true
587c82a1ca30166d4a9b429b6987c191c119bd13
PHP
scriptotek/simplemarcparser
/src/Parser.php
UTF-8
2,046
2.65625
3
[ "MIT" ]
permissive
<?php namespace Scriptotek\SimpleMarcParser; use Danmichaelo\QuiteSimpleXmlElement\QuiteSimpleXmlElement; use SimpleXmlElement; class Parser { public function __construct() { } /** * @param QuiteSimpleXmlElement|SimpleXmlElement $record */ public function parse($record) { i...
true
1250d4130a5503c0d6a113175c347502fbb26e4a
PHP
dimitri-moeson/poo
/Core/Controller/Picture.php
UTF-8
1,399
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * UserEntity: admin * Date: 22/05/2019 * Time: 22:42 */ namespace Core\Controller; use Core\Config; class Picture { /** * readfile */ public function __construct($path) { $this->path = Config::VIEW_DIR.'/Assets/Pictures/'.$path ; } /** ...
true
1d9cd873d1bb4f0ef75a346c18c4a2d9bac51b1c
PHP
KrzysztofCzerwinski/ExcelImporterBundle
/src/Twig/ClassHelperExtension.php
UTF-8
2,257
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Kczer\ExcelImporterBundle\Twig; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; use function count; use function end; use function explode; use function key; class ClassHelperExtension extends AbstractExtension { /** * @inheritDoc */ public functi...
true
90adebab842186053592284ea5c98dade9d00dd8
PHP
Sam-Daniel/Forum
/register.php
UTF-8
1,472
2.703125
3
[]
no_license
<?php // register.php - setter opp et form for at bruker skal kunne registerer seg include 'funksjoner.php'; include 'header.php'; $conn = connect(); echo '<h3>Sign up</h3>'; if($_SERVER['REQUEST_METHOD'] != 'POST') { // skriver form hvis det ikke er postet noe echo '<form name="registrerForm" method="post...
true
f6c574b3fae630d2e9b5de195c287acc38c88075
PHP
morkitz/laracasts-tutorials
/php7_up_and_running/04_spaceships/spaceships.php
UTF-8
266
2.90625
3
[]
no_license
<?php $games = ['Mass Effect', 'Super Mario Bros', 'Zelda', 'Fallout', 'Metal Gear']; usort($games, function($a, $b) { //return $a <=> $b; // -1, 0, 1 // order alphabetically return strlen($a) <=> strlen($b); // order by string length }); var_dump($games);
true
fa8296fa18a8803e59bb214a907965e540357982
PHP
felixgilles/SyliusElasticsearchPlugin
/src/Model/SearchFacets.php
UTF-8
1,606
2.65625
3
[ "MIT" ]
permissive
<?php /* * This file was created by developers working at BitBag * Do you need more information about us and what we do? Visit our https://bitbag.io website! * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career */ declare...
true
18af7675564126bb828d27e52f38bb8a9f48e1e0
PHP
albertyw/printer-web-frontend
/src/include/doPrint.php
UTF-8
1,190
2.734375
3
[ "MIT" ]
permissive
<?php /** This file sends a pdf to the printer **/ // Get the variables $inputDir = '/var/www/codes/printer/uploads_pdf/'; $inputFileName = $_GET['filename']; if(strpos($inputFileName, '/')!==false || strpos($inputFileName,'\\')!==false){ echo '0'; die(); } $inputFileNameWithoutSuffix = substr($inputFileName,...
true
db35db314d6991b5aa0497c8912d5c4966c6451f
PHP
Ztaoufiq/snake-cube
/domain/Shape/src/Entity/Cube.php
UTF-8
800
3.1875
3
[]
no_license
<?php namespace Domain\Shape\Entity; class Cube { private $dimension; private $segment; public function __construct(array $dimension, array $segment) { $this->dimension = $dimension; $this->segment = $segment; } /** * @return array */ public function getDimension...
true
bfcfcbe171d41d2024b77945b7ace46721b54479
PHP
mimolette/ripaille-box
/src/RipailleBoxBundle/Service/DAO/RepasDao.php
UTF-8
2,839
2.609375
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace RipailleBoxBundle\Service\DAO; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use RipailleBoxBundle\Entity\Repas; use RipailleBoxBundle\Exception\RipailleBoxException; use RipailleBoxBundle\Repository\RepasRepository; /** * Class RepasDao * @package Ripa...
true
ddae7d174d0d33cb60d70c5ca2ceae1c240f6615
PHP
GrzegorzJaworski/game
/tests/Model/Battle/RoundTest.php
UTF-8
2,520
2.765625
3
[]
no_license
<?php namespace Tests\Model\Battle; use App\Model\Battle\Round; use App\Model\Character\Beast; use App\Model\Character\Hero; use App\Model\Skill\MagicShield; use App\Model\Skill\RapidStrike; use PHPUnit\Framework\TestCase; class RoundTest extends TestCase { public function testGetHistoryWithDefenderLuckyTrue() ...
true
a7d7a81bd387bd6234b8461900759ab64fd1ec56
PHP
Focalworks/intranet
/workbench/focalworks/grievance/src/controllers/GrievanceController.php
UTF-8
10,798
2.5625
3
[ "MIT" ]
permissive
<?php class GrievanceController extends BaseController { /** * Defining the master layout. * * @var string */ protected $layout = 'sentryuser::master'; /** * Calling the constructor to execute any code on load of this class. */ public function __construct() { ...
true
3113cf7a51414e6c63ff35e2bfb08cbd01aa769b
PHP
jepl4052/bose-soundtouch-php
/src/Actions/KeyPress.php
UTF-8
1,675
3.328125
3
[ "MIT" ]
permissive
<?php class KeyPress { /* It is according to the Bose Soundtouch API documentation good practice to send 2 discrete requests to a Bose speaker when using /Key. Create 2 objects of this class and send both: - one with $state = press - one with $state = release */ private $state;...
true
cde8d74315c52b50209fc6f5f8e2b1cf57147ab6
PHP
brogoeh/onlineshop
/module/pesanan/detail.php
UTF-8
2,931
2.578125
3
[]
no_license
<?php $pesanan_id = $_GET['pesanan_id']; $query = "SELECT pesanan.nama_penerima, pesanan.nomor_telepon, pesanan.alamat, pesanan.tanggal_pemesanan, user.nama, kota.kota, kota.tarif FROM pesanan JOIN user ON pesanan.user_id=user.user_id JOIN kota ON kota.kota_id=.pesanan.kota_id WHERE pesanan.pesanan_id='$pesanan_...
true
8e3944836b2b1a0e75d5dee3b22b632365a4a7fc
PHP
moonorongo/lavarrap2
/script/services/cuentaCorrienteService.php
UTF-8
2,741
2.796875
3
[]
no_license
<?php class CuentaCorrienteService { private $cuentaCorriente = null; function __construct($cuentaCorriente) { $this->cuentaCorriente = $cuentaCorriente; } public function listAll($codigoCliente, $month = -1, $year = -1) { $lista = ...
true
b6b0e52613a635bd68055e0112d2874a7c1bbedd
PHP
wpj590246/demo
/test/classes/Captcha.class.php
UTF-8
6,802
2.96875
3
[]
no_license
<?php define('CAPTCHA_SESSION_ID', 'captcha'); class Captcha { private $aFonts; private $iWidth; private $iHeight; private $bUseColour; private $iNumLines; private $iNumChars; private $sCode; private $aCharSet; private $iMinFontSize = 16; private $iMaxFontSize = 25; privat...
true
a9c531ade1eddded61ffc4605e105e3aa321bce0
PHP
backjack/classroom
/vendor/bin/db/migrations/20181015123245_add_video_library_permissions.php
UTF-8
2,659
2.65625
3
[]
no_license
<?php use Phinx\Migration\AbstractMigration; class AddVideoLibraryPermissions extends AbstractMigration { /** * Change Method. * * Write your reversible migrations using this method. * * More information on writing migrations is available here: * http://docs.phinx.org/en/latest/migra...
true
93f77d9d951f1d5213abdb3289f367fd42f8368e
PHP
liem04/Algorithms
/src/KMin/UsingMinHeap.php
UTF-8
695
3.125
3
[]
no_license
<?php namespace Algorithms\KMin; use Algorithms\Sorting\ArrayHelper; use Algorithms\Sorting\MinHeap; /** * Class UsingMinHeap * @package Algorithms\KMin */ class UsingMinHeap implements KMinInterface { use ArrayHelper; /** * @param array $a * @param int $k * @return array */ pu...
true
5dee8aee243ffd8064fb1fac8cf1dc8dab8e06e7
PHP
nakaken12/original-28375-php
/edit.php
UTF-8
6,888
2.6875
3
[]
no_license
<?php session_start(); require('dbconnect.php'); if (empty($_POST)) { // ログインしていないと入れない if (!isset($_SESSION['id']) && !isset($_SESSION['time'])) { header('Location: index.php'); exit(); } // ログインしていないと入れない if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { $post_id = $_REQUEST['id']; ...
true
1e5ff0c77ec263420799fd014c08c4a658966ed1
PHP
concretecms/concretecms
/concrete/src/Application/UserInterface/Sitemap/TreeCollection/TreeCollectionTransformer.php
UTF-8
960
2.78125
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Application\UserInterface\Sitemap\TreeCollection; use League\Fractal\TransformerAbstract; class TreeCollectionTransformer extends TransformerAbstract { /** * Convert an entry to an array * @param \Concrete\Core\Application\UserInterface\Sitemap\TreeCollection\Entry\EntryIn...
true
05c622aa26741814c5d8c6cb07834557b6ad3c4c
PHP
vkruglikov/pastry-cook-website
/src/modules/Lessons.php
UTF-8
5,678
2.703125
3
[]
no_license
<?php namespace App\Modules; use voku\helper\URLify; const MOCK_PATH = __DIR__ . DIRECTORY_SEPARATOR . 'lessonMocks' . DIRECTORY_SEPARATOR; class Lessons { function getById(int $id) { $mock_path = MOCK_PATH . 'lesson_' . $id . '.php'; $data = @include $mock_path; return $data ?? nu...
true
d755d7459406232c42f28244962d2e20d41d568d
PHP
liyan19921229/dianshang
/common/models/Attribute.php
UTF-8
1,073
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "five2_attribute". * * @property integer $attr_id * @property integer $cate_id * @property string $attr_name * @property integer $attr_input_type * @property string $attr_values */ class Attribute extends \yii\db\ActiveRecord { ...
true
f1fcfe51fb862ff960c55be5ec582a70329a4153
PHP
Vicdeabreu/tarefasPHPatualizado
/tarefas/tarefa08/upload.php
UTF-8
1,166
3.109375
3
[]
no_license
<?php $arquivo = $_FILES["imagem"]; if($_FILES){ $nomeArquivo = $arquivo["name"]; $tmpLocal = $arquivo["tmp_name"]; $direccion = "uploads"; $caminhoCompleto = $direccion."/".$nomeArquivo; //salvar em caso de o arquivo nao existir if (!file_exists($direccion.$nomeArquivo)) { $deuC...
true
742b929375ca2de8a04c870a91ec912f10d41830
PHP
nzolt/netsuite
/src/SearchMoreRequest.php
UTF-8
602
2.796875
3
[]
no_license
<?php namespace Nzolt\NetSuite; class SearchMoreRequest { /** * @var int $pageIndex */ protected $pageIndex = null; /** * @param int $pageIndex */ public function __construct($pageIndex) { $this->pageIndex = $pageIndex; } /** * @return int */ publ...
true
a66ae8f2c2f2ac72f7902f0e7b57aac3dec41f46
PHP
andyfusniak/landing-page-engine
/src/Gm/LandingPageEngine/Entity/DeveloperDatabaseProfile.php
UTF-8
1,721
2.84375
3
[]
no_license
<?php /** * Landing Page Engine * * @package Gm\LandingPageEngine * @subpackage Entity * @link https://bitbucket.org/sudtanadevteam/landing-page-engine * @copyright Copyright (c) 2016 */ namespace Gm\LandingPageEngine\Entity; class DeveloperDatabaseProfile { /** * @var string */ protected $pro...
true
f6a235a99b1adf023476efffec4ed2e299438b53
PHP
mssmanishaggarwal/all-backups
/eventus/database/migrations/2016_02_18_120700_create_location_table.php
UTF-8
1,116
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLocationTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('location', function (Blueprint $table) { ...
true
7ea7941ef2e04dee666e5a4cb2b4e7240f5419e7
PHP
reformo/backendbase-core
/src/BackendBase/Domain/Administrators/Persistence/Doctrine/QueryObject/GetUserById.php
UTF-8
1,568
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace BackendBase\Domain\Administrators\Persistence\Doctrine\QueryObject; use BackendBase\Domain\Administrators\Exception\UserNotFound; use BackendBase\Domain\Administrators\Persistence\Doctrine\ResultObject\User; use BackendBase\Domain\Shared\Exception\InvalidArgument; use Backend...
true
dbfbf371d91692e1103d5e02a9b23f323b0abfee
PHP
William-N-Havard/Chunker
/chunks.php
UTF-8
40,116
2.859375
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); //on récupère les valeurs de paramètrage //on définit ce qui se passe après la fermeture d'un chunk, soit retour à la ligne, soit rien if(isset($_POST['apresChunk'])){ $apresChunk="<br>\n"; }else{ $apresChunk=""; } /...
true
c6afeb668b7689ce15ee88c54ebc47a1e8a59be2
PHP
symfony-cmf/block-bundle
/src/Templating/Helper/EmbedBlocksParser.php
UTF-8
1,712
2.78125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Symfony CMF package. * * (c) 2011-2017 Symfony CMF * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Cmf\Bundle\BlockBundle\Templating\Helper; /** * Finds all the embedded blo...
true
00e9d7ea99a0cc746352955c35ac270ee2880c24
PHP
encrypticus/mvccms
/engine/Service/Router/Provider.php
UTF-8
1,002
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Александр * Date: 01.08.2018 * Time: 20:58 */ namespace Engine\Service\Router; use Engine\Service\AbstractProvider; use Engine\Core\Router\Router; class Provider extends AbstractProvider{ /** * @var string имя сервиса(зависимости). По сути станет ключом элемент...
true
bd001626bd25a1f3a985197934cc831271277fda
PHP
khotim/restore
/apis/v1/controllers/CustomerController.php
UTF-8
5,438
2.578125
3
[]
no_license
<?php namespace api\v1\controllers; use Yii; use yii\data\ActiveDataProvider; use yii\helpers\Url; use yii\rest\Controller; use yii\web\NotFoundHttpException; use yii\web\ServerErrorHttpException; use yii\web\UnauthorizedHttpException; use api\v1\models\Customer; use api\v1\models\Order; class CustomerController exte...
true
4b943873ede4e8f2baa109c6436cdc6e72acd74d
PHP
kalel1500/proyecto05_DIT_EcoCycling
/0_Erix/infouserparaalejandro/inicio.php
UTF-8
893
2.84375
3
[ "MIT" ]
permissive
<?php include "../conection.php"; //!!!!IMPORTANTE¡¡¡¡ //ahora pongo un id a mano porque desconozco la variable de la sesion //luego pondremos el id mediante la variable de la sesion $query="SELECT * FROM tbl_usuario INNER JOIN tbl_nivel ON tbl_usuario.nivel_id=tbl_nivel.nivel_id WHERE usuario_id=3"; $consulta=mysqli_...
true
a7e9b7a948198b71fd1b3acf6d90d052fe13ea92
PHP
vtthuan/rtf
/src/AppBundle/Entity/UpdatableEntity.php
UTF-8
1,525
2.5625
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Description of UpdatableEntity * * @author asus khadija */ /** @ORM\MappedSuperclass */ abstract class UpdatableEntity { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Colu...
true
d57f9b126221478c5629d2a0e52ed92835a32063
PHP
chobie/kokuban
/Kokuban/Entity.php
UTF-8
260
2.6875
3
[ "MIT" ]
permissive
<?php namespace Kokuban; class Entity { public $id; public $registered_at; public $updated_at; public function __construct($id) { $this->id = $id; $this->registered_at = time(); $this->updated_at = time(); } }
true
549d64d1497792e024edbdfd9eff285d4a2f5e5a
PHP
vanthinhit310/devphpjunior
/app/Model/DailyLog.php
UTF-8
543
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Model; use App\User; use Illuminate\Database\Eloquent\Model; /** * @method static create(array $array) */ class DailyLog extends Model { // protected $table = 'app_daily_logs'; protected $fillable = [ 'title', 'private_author', 'public_author', 'cre_d...
true
8e67cc9d9bc9315ad9d3c04074254f72914527e6
PHP
guohao214/xinya
/application/libraries/CartUtil.php
UTF-8
903
2.875
3
[]
no_license
<?php /** * 购物车工具 * User: GuoHao * Date: 2015/12/27 * Time: 13:02 */ class CartUtil { private $cart; private $cartSign = '__xinya_cart_project'; /** * CartUtil constructor. */ public function __construct() { $this->cart = &$_SESSION; if (!isset($th...
true
89d6be6fcc126e7d584ab50b147659668e78f6aa
PHP
arecaps/serious
/college_data/database_files/create.php
UTF-8
462
2.5625
3
[]
no_license
<?php $host = 'localhost'; $user = 'root'; $pass = 'pcs12345'; try { $DBH = new PDO("mysql:host=$host;", $user, $pass); } catch (PDOException $e) { echo $e->getMessage(); } //$DBH->query('DROP DATABASE IF EXISTS project'); $DBH->query('CREATE DATABASE project'); $DBH->query('DROP TABLE IF EXISTS project.enrollme...
true
bd990c9f51cda5cbbe20415ad3d81bf40fe579f7
PHP
aagusti/geo
/htdocs/php/mailing_labels.php
UTF-8
5,555
2.671875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /*Copyright (c) 2009-2011, Dan "Ducky" Little & GeoMOOSE.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
true
2904352274b3b08d9727b866fa1a01cc89d06914
PHP
neoteknic/Phue
/library/Phue/Command/SetScheduleAttributes.php
UTF-8
1,217
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Phue: Philips Hue PHP Client * * @author Michael Squires <sqmk@php.net> * @copyright Copyright (c) 2012 Michael K. Squires * @license http://github.com/sqmk/Phue/wiki/License */ namespace Phue\Command; use Phue\Client; use Phue\Transport\TransportInterface; /** * Set schedule attributes comma...
true
1c54183a8866a144aa713fe6925bfea1f08176f2
PHP
28harishkumar/blog
/vendor/phpspec/phpspec/src/PhpSpec/Console/Command/DescribeCommand.php
UTF-8
2,040
2.734375
3
[ "MIT" ]
permissive
<?php /* * This file is part of PhpSpec, A php toolset to drive emergent * design by specification. * * (c) Marcello Duarte <marcello.duarte@gmail.com> * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with t...
true
1fdd24cdbf963f873171416b3343a1f280954d64
PHP
PrestaShop/PrestaShop-1.4
/modules/fianetfraud/lib/common/CertissimControl.class.php
UTF-8
1,352
2.6875
3
[]
no_license
<?php class CertissimControl extends CertissimXMLElement { public function __construct() { parent::__construct("<control fianetmodule='api_prestashop_certissim' version='3.0'></control>"); } /** * add the child <crypt> to <wallet> * * @param string $crypt crypt value * @param string $vers...
true
e3400d8ab58d255166a1a2bb6b5ea981ae38ce00
PHP
youssefbriouza/crud
/reclamation.php
UTF-8
736
2.796875
3
[ "CC-BY-3.0", "CC-BY-4.0" ]
permissive
<?PHP class Reclamation { private $id_client; private $lettre; private $date_rec; private $num_telc; function __construct($id_client,$lettre){ $this->id_client=$id_client; $this->lettre=$lettre; } function getid_client () { return $this->id_client; } function getnum_telc(){ return $t...
true
ca899d916d6eab6dd4caf5f518fa16ac4c3b1a48
PHP
Szczurowsky/NothingToHide
/model/encryptionClass.php
UTF-8
1,986
3
3
[ "MIT" ]
permissive
<?php use JetBrains\PhpStorm\Pure; class encryption { private static array $encryptionData; private static string $serverDecIV; private static string $serverDecKey; #[Pure] private function randomNumber($length): string { $result = ''; for($i = 0; $i < $length; $i++) { ...
true
9ecf6b030126006ea439a89bed7aa0eeba2cc5ae
PHP
devprom-dev/sdk
/app/core/classes/user/Invitation.php
UTF-8
964
2.546875
3
[]
no_license
<?php include "InvitationIterator.php"; class Invitation extends Metaobject { function __construct( $registry = null ) { parent::__construct('pm_Invitation', $registry); foreach( $this->getAttributes() as $attribute => $data ) { $this->setAttributeVisible($attribute, false); $this->se...
true
fe19fe2353c328ebbb8a5cda2ef903f877d42cee
PHP
samwolf1982/de-shop-base-game
/console/migrations/m171121_013154_create_tournament_table.php
UTF-8
1,988
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `tournament`. */ class m171121_013154_create_tournament_table extends Migration { /** * @inheritdoc */ public function up() { $tableOptions = null; if ($this->db->driverName === 'mysql') { // http://sta...
true
5ff554c3da1bf36407cb1b48ac18abda61a5382e
PHP
joseph-walker/vector-functors
/src/Data/Identity.php
UTF-8
1,311
2.90625
3
[]
no_license
<?php namespace Vector\Data; use Vector\Core\Module; use Vector\Typeclass\MonadInterface; /** * Class Identity * @package Vector\Data */ class Identity extends Module implements MonadInterface { private $heldValue; /** * Identity constructor. * @param $value */ private function __const...
true
29e672a7cb6f46b0546acb849d6481ee13d330ea
PHP
Alexn123/vp
/tund3/classes/Generic_class.php
UTF-8
609
3.359375
3
[]
no_license
<?php class Generic{ //muutujad, klassis omadused (properties) private $mysecret; public $yoursecret; function __construct(){ $this->mysecret = mt_rand(0, 100); $this->yoursecret = mt_rand(0, 100); echo "loositud arvude korrutis on: " .$this->mysecret * $this->yoursecret; $this->tellse...
true
419d263e0655f8d27bf68be46c268f86058cd24e
PHP
josepaz20/gimnasioactualizado
/module/Configuracion/src/Configuracion/Modelo/Entidades/Barrio.php
UTF-8
2,516
2.859375
3
[]
no_license
<?php namespace Configuracion\Modelo\Entidades; class Barrio { private $idBarrio; private $idZona; private $barrio; private $observacion; private $estado; private $registradopor; private $modificadopor; private $fechahorareg; private $fechahoramod; public function __construct...
true
0528630f851412ba9fd1576de8a91d554fcb0f05
PHP
tio-dsp/Data-Project-Belajar-BBLK-Bekasi
/setio/strukturData/formLingkaran.php
UTF-8
1,895
3.03125
3
[]
no_license
<?php include_once 'myFunction.php'; if(isset($_GET['jari'])){ $r = $_GET['jari']; $luas = hitungLuasLingkaran($r); $kel = hitungKelLingkaran($r); }else{ $luas = 0; $kel = 0; } if (isset($_POST['submit2'])){ $sisi = $_POST['sisi']; $luas_persegi = luasPersegi($sisi); $kel_persegi = KelPersegi($sisi); }else{ ...
true
8737ba409d80cd8d1b8d9ff483f442ed418a0480
PHP
leosu1218/PHP_EC_SkyGo
/framework/models/GeneralActivityHasRelationProductDiscount.php
UTF-8
1,864
2.953125
3
[]
no_license
<?php require_once( FRAMEWORK_PATH . 'system/models/PermissionDbModel.php' ); require_once( FRAMEWORK_PATH . 'collections/EC/UnifiedDiscount.php' ); class GeneralActivityHasRelationProductDiscount extends PermissionDbModel implements UnifiedDiscount { /* Methods of ECDiscount interface. */ /** * Check ...
true
c72ec51448af438accc299620c71d76fe968a22c
PHP
StacyGru/php2-exam
/manage_questions.php
UTF-8
3,205
2.84375
3
[]
no_license
<!DOCTYPE html> <html lang="ru"> <head> <title>Управление вопросами сессии</title> <meta charset="utf-8"> <style> <?php require "style.css"; ?> </style> <link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=...
true
251da35df9744ddbbf8ab0241b1346642a2a5ed6
PHP
njalsson/Gru1
/Login/update_database.php
UTF-8
8,459
2.53125
3
[ "MIT" ]
permissive
<?php session_start(); //Þessi skrá heldur utan um allar tengingar við gagnagrunn. if (isset($_POST['subnyskra'])) {//Ef ýtt er á Nýskrá þá er allt kennitala, nafn, lykilorð, tölvupóstur og sími sett í post arrayið. $kt = $_POST['kt']; $nafn = $_POST['user']; $pass = hash("Sha512",($_POST['password'])); $email = $_P...
true
c94dbb1df0a0f2fa19cf420908db5c9ac93ecabe
PHP
ItaloFaud/Projeto-Lab.-Web
/DAO/usuarioDAO.php
UTF-8
1,036
2.828125
3
[]
no_license
<?php /** * */ include "Classes/conexao.php"; include "Classes/usuario.php"; class UsuarioDAO { function Cadastrar(Usuario $u){ $pdo = new Conexao; $con = $pdo->Conectar(); $CadastraU = $con->prepare("INSERT INTO usuario VALUES (DEFAULT,?,?,?,?)"); $CadastraU->bindValue(1,$u->getNome(),PDO::PARAM_STR); ...
true
f9153379dc144cfafd9b6b19e659436ea6da0ff2
PHP
kakuilan/php-helper
/src/Util/MacAddress.php
UTF-8
2,800
2.984375
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2020/12/8 * Time: 14:35 * Desc: 物理地址类 */ namespace Kph\Util; use Kph\Helpers\OsHelper; use Kph\Helpers\RegularHelper; use Kph\Helpers\StringHelper; /** * Class MacAddress * @package Kph\Util */ class MacAddress { /** * 命令输出 * @va...
true
76a3876608601ee3b757a3dc1cc5e55857214577
PHP
StealthedDev/Cosmic-v2
/Cosmic/App/Models/Shop.php
UTF-8
2,158
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use QueryBuilder; class Shop { public static function getOffers() { return QueryBuilder::table('website_paypal_offers')->get(); } public static function getOfferById($id) { return QueryBuilder::table('website_paypal_offers')->where('id', $id)->first...
true
a20f2864cd22d9155b00a667a1a25a963c37ae21
PHP
autowp/external-login-service
/src/AbstractService.php
UTF-8
620
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Autowp\ExternalLoginService; abstract class AbstractService { /** @var array */ protected array $options; abstract public function getState(): string; abstract public function getLoginUrl(): string; abstract public function getFriendsUrl(): string; ...
true
b3d8e2d8ea49af2ede46ea67589e9e301bc7b51f
PHP
elblinkin/RagTag
/phplib/Raggle/Scm/Git/Action/Validate.php
UTF-8
2,174
2.703125
3
[]
no_license
<?php namespace Raggle\Scm\Git\Action; use Raggle\Scm\Repository; use RagTag\Executor; use RagTag\Logger; class Validate { const FETCH_URL = "@Fetch URL: (\S+)@"; const REMOTE_START = "@Remote branch(es)?:@"; const BRANCH = "@(\S+)\s+tracked@"; private $root_dir; private $exec; private $logg...
true
39b2976fa1606e88b006b72622fc029c8340120e
PHP
thephpleague/omnipay-braintree
/src/Message/PlanResponse.php
UTF-8
440
2.5625
3
[ "MIT" ]
permissive
<?php /** * PlanResponse class. */ namespace Omnipay\Braintree\Message; class PlanResponse extends Response { /** * Returns array of Braintree_Plans objects with available plans * If there aren't any plans created it will return empty array. * * @return array */ public function getPl...
true
c8b282aed3f7fd287774e28c0b03ca5426c2dd74
PHP
y0y00700/studyFront
/JavaScript_workspace/js/ajaxdb/ajaxDB3.php
UTF-8
1,155
2.640625
3
[]
no_license
<?php header("access-control-allow-origin: *"); header("Content-Type: text/json; charset=UTF-8"); $mysql_hostname = 'localhost'; $mysql_username = 'pjs'; $mysql_password = '17djej**'; $mysql_database = 'pjs'; $mysql_port = '3306'; $mysql_charset = 'utf8'; //1. DB 연결 $connect = mysqli_connect($mysql_hostname, $mysql_...
true
acd00d48b5f32dc3b47e17055f3f1a7dd43efe61
PHP
trivago/rumi
/src/Docker/VolumeInspector.php
UTF-8
1,859
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright 2016 trivago GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
true
c95be4ec33da8d40015c0027206c6f7c8033afa7
PHP
sdong49/biere-en-stock
/app/Controllers/Front/ControllerArticle.php
UTF-8
1,875
2.703125
3
[]
no_license
<?php namespace Projet\Controllers\Front; use Projet\Models\Front\ArticleManager; use Projet\Models\Front\CategorieManager; class ControllerArticle { private $produitManager; private $categorieManager; public function __construct(){ $this->produitManager = new ArticleManager(); $this->ca...
true
cc61d10fe7a1150ecc6c788308cca47116422262
PHP
SoftwarePunt/superoffice-webapi-php-sdk
/tests/Collections/CollectionTest.php
UTF-8
2,839
2.578125
3
[ "MIT" ]
permissive
<?php namespace SoftwarePunt\SoWebApiTests\Collections; use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; use Psr\Http\Message\RequestInterface; use SoftwarePunt\SoWebApi\Client; use SoftwarePunt\SoWebApi\Collections\Collection; use SoftwarePunt\SoWebApi\Config; use SoftwarePunt\SoWebApiTests\Mock\MockCli...
true
22cedad6b584a7ffc0113356f1e5e5e48baa935e
PHP
DSGilfillan/TechTest
/database/migrations/2020_01_23_202656_create_jobs_table.php
UTF-8
870
2.546875
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateJobsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('candidates_jobs', ...
true