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
7cb806d2bc86a97cb5604219e42078de68abcde2
PHP
Bronskiy/Companies-Reviews
/application/modules/companies/models/CouponReviewTable.php
UTF-8
1,396
2.59375
3
[]
no_license
<?php /** * Companies_Model_CouponReviewTable * * This class has been auto-generated by the Doctrine ORM Framework */ class Companies_Model_CouponReviewTable extends Doctrine_Table { /** * Returns an instance of this class. * @return object Companies_Model_CouponReviewTable */ p...
true
ad9e1331438f439b9496e1e4122ef8202bdc2228
PHP
thiagovictor/TestesAutomatizadosTDD
/tests/src/TDD/Componentes/QuebraTest.php
UTF-8
507
2.78125
3
[]
no_license
<?php namespace TDD\Componentes; class QuebraTest extends \PHPUnit_Framework_TestCase{ private $quebra; public function setUp() { $this->quebra = new Quebra(); } public function testVerificaSeEUmaInstanciaValidaDeComponentesDeInterface() { $this->assertInstanceOf(...
true
11768823bfc4b337a5fe1c4fc41b5df4af8d3795
PHP
originphp/log
/src/Engine/ConsoleEngine.php
UTF-8
2,482
2.875
3
[ "MIT" ]
permissive
<?php /** * OriginPHP Framework * Copyright 2018 - 2021 Jamiel Sharief. * * Licensed under The MIT License * The above copyright notice and this permission notice shall be included in all copies or substantial * portions of the Software. * * @copyright Copyright (c) Jamiel Sharief * @link https://www....
true
a0049b22a4e6f82306bf07f9d72bc5a1c3754cb8
PHP
gegeturambar/silex_rest_api
/src/Controller/LangueController.php
UTF-8
2,533
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * Langue: jsimonney * Date: 23/08/2017 * Time: 10:19 */ namespace Controller; use Entity\Langue; use Silex\Application; use Symfony\Component\HttpFoundation\Request; class LangueController { public function indexAction(Application $app, Request $request) { $lang...
true
c8ec9ca4a54361eebcad83b6f731928e7c15a020
PHP
karlozz157/control
/Controller/Controller.php
UTF-8
503
2.84375
3
[]
no_license
<?php abstract class Controller { public function __construct() { $this->className = str_replace('Controller', '', get_class($this)); } /** * @param string $fileName * @param array $vars */ protected function view($fileName, array $vars = array()) { $file = "./Vi...
true
ba4ed3056ccd4063b7420134fcd7e383e674a9fb
PHP
jesusdiez/codeeval
/easy/simple-or-trump/simple-or-trump.php
UTF-8
1,354
3.265625
3
[]
no_license
#!/usr/bin/php <?php $lines = file($argv[1]); $sum = function ($a, $b) { return $a + $b; }; foreach ($lines as $line) { list($hand1, $hand2, $trump) = parse($line); $hand1Value = calculateHandValue($hand1, $trump); $hand2Value = calculateHandValue($hand2, $trump); if ($hand1Value > $hand2Value) { ...
true
172fe104f2fae0231fef83ad09beb27b50141f5e
PHP
nehuenfack142/ProyectoA
/signup_user.php
UTF-8
1,788
2.578125
3
[]
no_license
<?php include("include/connection.php"); if(isset($_POST['sign_up'])){ $name=htmlentities(mysqli_real_escape_string($con, $_POST['user_name'])); $pass=htmlentities(mysqli_real_escape_string($con, $_POST['user_pass'])); $email=htmlentities(mysqli_real_escape_string($con, $_POST['user_email'])); $conutry=htmlen...
true
15a8d8d386b7530b30bc2d611a61b969e9ba03c0
PHP
Aleyx4/Fundamentals-of-Software-Engineering-Spring-2018
/submitelection.php
UTF-8
1,071
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: teagenkiel * Date: 4/29/18 * Time: 10:55 AM */ include('session.php'); $username = $_POST['username']; $electionid = $_POST['electionid']; $sql = "INSERT INTO electionparticipants (username , electionID) VALUES ('$username', '$electionid')"; if ($db->query($sql...
true
0f7f6913283473e862add671fd1210eed4ada3f2
PHP
contributte/oauth2-server
/tests/fixtures/Repositories/AccessTokenRepository.php
UTF-8
958
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Tests\Fixtures\Repositories; use League\OAuth2\Server\Entities\AccessTokenEntityInterface; use League\OAuth2\Server\Entities\ClientEntityInterface; use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface; final class AccessTokenRepository implements AccessToken...
true
cf6223615fae38e1993837846fa458b257f128b0
PHP
StevenGreen1/ProtoDUNE_Cron
/Website/Cron_MicroBooNE/cron_diff.php
UTF-8
1,200
2.671875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Pandora MicroBooNE Validation</title> <h1>Pandora MicroBooNE Validation</h1> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> <?php $date1 = $_POST['Date1']; $date2 = $_POST['Date2']; $myversion1 = $_POST['SoftwareVersion1']; $myversion2 = $_POST['SoftwareVersion...
true
4e37a9761a53c9c1d78d231156ece27a32e1f43e
PHP
kuc-arc-f/php-test01
/php-test01/libs/ComFunc.php
UTF-8
6,587
2.96875
3
[]
no_license
<?php //------------------------------------ // @calling // @purpose : 共通番号TBLから、Noを取得する。 // @date // @argment : $date_str=yyyymmdd+hhmmss, $i_num=rand() // @return : -1 =NG //------------------------------------ function CM001_def_no( $date_str, $i_num, $sys_id, $uid){ $i_def_id =0; $db =new ComMysql(); ...
true
72f10c81f27f41a28e551969470d2b527e3e6c93
PHP
300rub/300rub
/code/tests/phpunit/controllers/user/DeleteSessionsControllerTest.php
UTF-8
3,621
2.546875
3
[]
no_license
<?php namespace ss\tests\phpunit\controllers\user; use ss\models\user\UserSessionModel; use ss\tests\phpunit\controllers\_abstract\AbstractControllerTest; /** * Tests for the controller DeleteSessionsController */ class DeleteSessionsControllerTest extends AbstractControllerTest { /** * Test * ...
true
e2b9dfbff24a52f18fa0cbce439f272b1ecbd1ba
PHP
IlchCMS/ilch2-build
/functions.php
UTF-8
3,528
2.578125
3
[]
no_license
<?php function logRequest($message = null, $errorFile = null, $errorLine = null) { global $config; if (!isset($config['logDir']) || !is_dir($config['logDir']) || !is_writable($config['logDir'])) { return; } $logFile = $config['logDir'] . '/' . date('Ymd-His') . '.log'; $fh = fopen($logFile,...
true
03e8c41b9d90c1a775e6735bf4937b01e77d6817
PHP
j-grynkiewicz/wu
/app/Http/Controllers/LectureController.php
UTF-8
3,229
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Lecture; use App\User; class LectureController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $lectures = Lecture::all...
true
388c69ab8f79c6702a3cfba4cbb7d1d7964463bf
PHP
sunzhenvip/laravel
/app/models/ApiPayCallBack.php
UTF-8
13,899
2.625
3
[ "MIT" ]
permissive
<?php /** * 所有回调调用的方法model * @author:wang.hongli * @since:2016/05/25 */ class ApiPayCallBack extends ApiCommon{ private $orderid; private $order_info; private $good_info; private $time; private $apiTianLaiGoods; /** * 构造方法 * @param number $orderid 订单id * @param array $order_info 订单信息 * @param arra...
true
651c77f4c1d3fad2dc45c2c01689c62cc1c51259
PHP
Muhammad-Rizal-Supriadi/praktikum-git
/v2/model/Pelanggan.php
UTF-8
4,529
3.109375
3
[]
no_license
<?php class Pelanggan{ // database connection and table name private $conn; private $table_name = "pelanggan"; // object properties public $id_pelanggan; public $nama_pelanggan; public $alamat; public $telepon; public $email; public $tgl_lahir; // cons...
true
56a34b9ebd8954ba4103d3b90d05180c2e6a4138
PHP
fossabot/Scriptlog
/src/lib/dao/MediaDao.php
UTF-8
15,178
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Class Media extends Dao * * * @category Dao Class * @author M.Noermoehammad * @license MIT * @version 1.0 * @since Since Release 1.0 * */ class MediaDao extends Dao { const TIME_BEFORE_EXPIRED = 8; public function __construct() { parent::__construct(); } /** * Find All Media * ...
true
e0db634cfa4d20577ae548af7e05eadef327f86e
PHP
RomeoVargas/evaluationSystem
/resources/Navigation.php
UTF-8
4,854
2.53125
3
[]
no_license
<?php namespace resources; class Navigation { private static $allowedUris = [ 'home', 'aboutus', 'teachers', 'contactus', 'teacherlogin', 'studentlogin' ]; private static $adminAllowedUris = [ 'adminhome', 'adminteachers', 'adminstudents', 'adminadmins', 'adminteacherstude...
true
40132898383e588599861f2a2342be2aa308acb7
PHP
remi-turini/JobBoard
/API/companies/readAllCompanies.php
UTF-8
608
2.53125
3
[]
no_license
<?php $db = new PDO('mysql:host=localhost;dbname=jobboard', 'root','root'); $db->exec('SET NAMES "UTF8"'); $requete = " SELECT * FROM companies "; $stmt = $db->prepare($requete); $stmt->execute(); /*$tableau = array(); ...
true
9e315c73a838477970e224707248b4c39f5c171d
PHP
wcaraza/iwonder
/library/CM/Carrito.php
UTF-8
2,043
2.65625
3
[]
no_license
<?php class CM_Carrito { public function addItem($item, $cantidad = 'cantidad') { if (!isset($_SESSION['carrito'])) { $_SESSION['carrito'] = array(); $_SESSION['carrito']['items'] = array(); } if (!array_key_exists($item['id'], $_SESSION['carrito']['items...
true
866d4492ff2873b543ca9e186b60e7b7c8faae6a
PHP
cezarzaleski/commonsphp
/library/Commons/Pattern/Meta/SelfAwareness.php
UTF-8
442
2.515625
3
[]
no_license
<?php namespace Commons\Pattern\Meta; /** * Auto-conhecimento. */ interface SelfAwareness { /** * Retorna a instância do alterego do objeto ou o próprio objeto. * Função de atribuir qualitativamente o uso de interfaces associadas ao objeto * ou recuperação de proxies, delegadores ou interceptador...
true
74b4dac34cb9eaa8617da21cbac6f4861ad1260f
PHP
sahiljain2497/Infocom-Web
/app/Http/Controllers/Admin/CircleController.php
UTF-8
2,707
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Circle; use Validator; class CircleController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(...
true
b1b1e074a168570e99ad5b136b4bffb6c0b77301
PHP
longnh299/book-management-php-it4409
/php/update-data.php
UTF-8
576
2.53125
3
[]
no_license
<?php include "connection.php"; session_start(); if(isset($_POST["submit"])){ $id=$_POST["id"]; $name=$_POST["name"]; $publisher=$_POST["publisher"]; $price=$_POST["price"]; $sql="UPDATE books SET name='{$name}',publisher='{$publisher}',price={$price} WHERE id={$id}"; $run_sql=mysqli_query($...
true
97731293d331f9a4e12421ad2cfa0abb81415a04
PHP
joliveroizquierdo/Blog_PDO
/index.php
UTF-8
570
2.5625
3
[]
no_license
<?php /*require_once 'modelos/usuarioModelo.php'; $objetoUsuario = new usuarios(); $datos = $objetoUsuario->listarUsuarios(); foreach($datos as $dato){ echo $dato['nombres']; echo '<br>'; }*/ //Enrutado de la aplicacion if(!empty($_GET["accion"])){ $accion=$_GET["accion"]; }else{...
true
2f54d08d41df9bc05353de60efec4e0f1f1b716a
PHP
Oktopost/DeepQueue
/src/DeepQueue/Exceptions/DecoratorNotExistsException.php
UTF-8
223
2.734375
3
[ "MIT" ]
permissive
<?php namespace DeepQueue\Exceptions; class DecoratorNotExistsException extends GenericException { public function __construct($className) { parent::__construct(2, "Queue decorator $className does not exists!"); } }
true
273be4ff9a1249fa0bcf278592d5865e3e98fed3
PHP
phpcfdi/sat-catalogos
/src/CFDI40/RegimenFiscal.php
UTF-8
824
2.875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace PhpCfdi\SatCatalogos\CFDI40; use PhpCfdi\SatCatalogos\Common\AbstractEntryIdentifiable; class RegimenFiscal extends AbstractEntryIdentifiable { /** @var bool */ private $aplicaFisica; /** @var bool */ private $aplicaMoral; public function __construct( ...
true
9d5e6aa26c55f4210fe6ebb9235156fce4e403fe
PHP
WaiMaungMaung/PhotoMarathon-1
/app/View/Components/Helper.php
UTF-8
504
2.578125
3
[ "MIT" ]
permissive
<?php function getCMPID($old_cmp){ $return_id =""; if($old_cmp != null){ $divided_id = preg_split("/(,?\s+)|((?<=[a-z])(?=\d))|((?<=\d)(?=[a-z]))/i", $old_cmp); $increment_value = $divided_id[1]+1; $increment_id = str_pad($increment_value,4,"0",STR_PAD_LEFT); ...
true
01c315480a727ff8478234c1c484e0cbcb986537
PHP
niravkothari91/bq
/app/Http/Middleware/GenerateMenus.php
UTF-8
1,451
2.671875
3
[]
no_license
<?php namespace App\Http\Middleware; use App\Category; use App\Subcategory; use Closure; class GenerateMenus { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure ...
true
2ceb8e6f49482cddef080d68e5a7aef7b0810507
PHP
gluck59/TestWork-1207199
/app/Http/Controllers/ListController.php
UTF-8
1,272
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; class ListController extends Controller { /** * return all records * @return \Illuminate\Contracts\View\Factory|\Illuminate\Foundation\Application|\Illuminate\View\View */ public function index() { $it...
true
4e64188854050b89246c0dbae1dd906f91777f36
PHP
blackdragon610/moneq-dev
/app/Libs/PushClass.php
UTF-8
6,444
2.65625
3
[]
no_license
<?php namespace App\Libs; use App\Models\PushType; use App\Models\User; use App\Models\UserToken; use Illuminate\Support\Facades\Auth; use LaravelFCM\Facades\FCM; use LaravelFCM\Message\OptionsBuilder; use LaravelFCM\Message\PayloadDataBuilder; use LaravelFCM\Message\PayloadNotificationBuilder; /* * Pushの共通処理 */ cl...
true
1808b29c3497acb9490aad85587823169b65799c
PHP
abrahamrkj/Drupal-8-CTA-Button-Field-module
/src/Plugin/Field/FieldType/CtaButton.php
UTF-8
2,065
2.734375
3
[]
no_license
<?php namespace Drupal\cta_button\Plugin\Field\FieldType; use Drupal\Core\Field\FieldItemBase; use Drupal\Core\TypedData\DataDefinition; use Drupal\Core\Field\FieldStorageDefinitionInterface as StorageDefinition; /** * Plugin implementation of the 'cta_button' field type. * * @FieldType( * id = "CtaButton", *...
true
800273a09254e764ddd36a39954a9a748dd43bef
PHP
Catrisa/minimal-mvc-framework
/mvc/Controller.php
UTF-8
1,024
2.96875
3
[]
no_license
<?php namespace Mvc; /** * Base class for controllers. */ abstract class Controller { protected $request; /** * Create a new controller and store the incoming request data. */ public function __construct($request) { $this->request = $reques...
true
4448114f16069c13752aaa92c577114bbd2c95f0
PHP
ashinpaugh/classplan-platform
/src/Entity/Course.php
UTF-8
4,206
2.734375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use ForceUTF8\Encoding; use JMS\Serializer\Annotation as Serializer; /** * @ORM\Entity() * @ORM\Table(name="course", indexes={ * @ORM\Index(name="idx_number", columns={"number"}) * }) */ class Course...
true
40d22a4c6ecf86ebe638b09d97432be48f7eeac0
PHP
Cancer-Expert-Now/prismic-client
/src/Document.php
UTF-8
1,306
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Prismic; use DateTimeInterface; use Prismic\Document\Fragment\DocumentLink; use Prismic\Value\DocumentData; use Prismic\Value\Translation; interface Document { /** The document unique identifier */ public function id(): string; /** * The unique user documen...
true
6600dbb65f6792c156c9c5c825ab3c0b62e138c2
PHP
techstunts/drivesforfree
/f3/dff/modules/storageprovider/models/storageabstract.php
UTF-8
426
2.8125
3
[]
no_license
<?php namespace storageprovider\models; abstract class storageabstract{ protected $_provider; public function __call($name, $arguments) { if(method_exists($this->_provider, $name)){ return call_user_func_array(array($this->_provider, $name), $arguments); } throw new \Exc...
true
42dfd1703d7d54431a5110fa9e75bcbabbcb83c4
PHP
criscosg/LogbookREST
/src/EasyScrumREST/UserBundle/Event/UserEvent.php
UTF-8
443
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace EasyScrumREST\UserBundle\Event; use EasyScrumREST\UserBundle\Entity\RecoverPassword; use Symfony\Component\EventDispatcher\Event; class UserEvent extends Event { private $recover; public function __construct(RecoverPassword $recover) { $this->recover = $recover; } /** ...
true
f3f3d109a0594b06a724fbeba2c25e93f661aea7
PHP
jswebschmiede/doc.php
/lib/wiki.class.php
UTF-8
2,466
2.921875
3
[ "WTFPL" ]
permissive
<?php class Wiki{ public static function makeLink($array,$num=null){ $link=ROOT_FILE; if(defined(HTACCESS)&&HTACCESS){ if(is_numeric($num)){ $link.=".".$array->getPathTo($num); }else{ $link.=$array; } }else{ if(is_numeric($num)){ $link.="?"; for($i=0;$i<$num;$i++){ ...
true
ba4aac826cd721bf8cac9aa4e1d4aa5b44d42d53
PHP
nobody5607/srr
/common/models/Contents.php
UTF-8
1,764
2.75
3
[]
no_license
<?php namespace common\models; use Yii; /** * This is the model class for table "tbl_contents". * * @property int $id * @property string $name * @property string $ description * @property int $section_id tbl_section * @property int $rstat * @property int $public ห้อง public, private * @property string $con...
true
db02f9446a750dc7c529bdaad4ceb92917246c3a
PHP
mibexx/php-time-tracking
/src/Mibexx/TimeTracking/TimeTrackingFacadeInterface.php
UTF-8
356
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Mibexx\TimeTracking; interface TimeTrackingFacadeInterface { /** * @param string $name */ public function track(string $name): void; /** * @param string $name */ public function stop(): void; /** * @return array */ publi...
true
b520821211a9120bed2839fffeb13e5926144a72
PHP
bakasajoshua/performance
/app/Exports/SurgeFullExport.php
UTF-8
1,623
2.515625
3
[]
no_license
<?php namespace App\Exports; use DB; use App\SurgeColumn; use App\SurgeColumnView; use App\Lookup; class SurgeFullExport extends BaseExport { protected $week; protected $modalities; protected $gender_id; protected $ages; function __construct($week, $modality) { parent::__construct(); $this->...
true
bf10acba355ede19bb32cc4a49c7207d58f574c3
PHP
cleverage/CleverAgeSyliusColissimoPlugin
/src/Model/Shipping/Letter/Addressee.php
UTF-8
1,591
2.65625
3
[ "MIT" ]
permissive
<?php namespace CleverAge\SyliusColissimoPlugin\Model\Shipping\Letter; class Addressee extends BaseAddress { private string $lastName; private string $firstName; private ?string $mobileNumber = null; private ?string $email = null; public function getLastName(): string { return $this->...
true
90fd2237f29523da17b2d7662c91e6a9b78baebc
PHP
Elya92/library
/admin.php
UTF-8
4,726
2.65625
3
[]
no_license
<?php //форма добавления книги и кнопки перехода на страницу удаления книг $cntnt = " <form method=\"post\" enctype=\"multipart/form-data\" action=\"admin.php\"> <br><br> Введите автора: <br> <input type=\"text\" name=\"atr\" size=\"30\"> <br><br> Введите название книги: <br> <inp...
true
8bc3d9ea030ab5bab64ce6447cc340e831fdc515
PHP
GrigoryGerasimov/laravel-weather
/src/Objects/Marine/Marine.php
UTF-8
2,325
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace GrigoryGerasimov\Weather\Objects\Marine; use GrigoryGerasimov\Weather\Contracts\WeatherCollection\WeatherMarineInterface; use GrigoryGerasimov\Weather\Objects\Forecast\{ForecastCommon, ForecastDay, ForecastAstro}; use Illuminate\Support\Collection; final readonly class Marin...
true
238d1a1b6f33ea314f94db9dd8e9caeacf620925
PHP
exxxar/crypto-core-package
/src/middleware/XApiVersionMiddleware.php
UTF-8
952
2.625
3
[]
no_license
<?php namespace Cryptolib\CryptoCore\Middleware; use Closure; use Illuminate\Http\Request; class XApiVersionMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $requ...
true
2352ee6c735cdea92379ccdb3fe9ce7ca0766e56
PHP
FlyingWings/helpful-tools
/commands/ssh.php
UTF-8
6,395
2.671875
3
[]
no_license
<?php /** * 搭建本地隧道到目标地址 */ function cli_build_ssh_direct(){ $arguments = [ "alexfu.cc", "root" ]; $name = ["addr", "user"]; //获取命令行参数 $argu_new = func_get_args()[0]; foreach($arguments as $key=>$value){ if($key == count($argu_new)){ break; } ...
true
2f3758e876e627afeb52981f70b90b3b09e857a5
PHP
MonsterSunFuck/agency
/get.php
UTF-8
861
2.5625
3
[]
no_license
<?php //Списко стран - городов require('list.php'); //Принимаем POST данные $type = $_POST["type"]; $size = intval($_POST["size"]); $act = $_POST["act"]; //Получения списка размеров типов рекламы $dimensions = mysql_fetch_array(mysql_query("SELECT * FROM dimensions")); switch($act){ //Cтавим страну и возвращаем го...
true
ff3f32da052d4f8aea2b9cced8ebbd3d31cd29e8
PHP
gho999/silver-giggle
/customer/functions/functions.php
UTF-8
8,501
2.78125
3
[]
no_license
<?php $con = mysqli_connect("localhost","root","","project"); if(mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } //getting the user ip address function getIp() { $ip = $_SERVER['REMOTE_ADDR']; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVE...
true
fae65065f2108c47287c1c00d6c65447f440878e
PHP
shutrit/swift-mailer
/individual_addressed_emails.php
UTF-8
1,569
2.609375
3
[]
no_license
<?php require_once'includes/config.php'; //config.php has the email addresses for $recipients $recipients = [ $testing=>'Test Account 1', $test2, $test3=>'Test Account 3', $secret ]; try { //prepare email $message = Swift_Message::newInstance() ->setSubject('FARBRENGEN/comm...
true
55cdf136342a8af1507025df15eda6eb28b1ba9f
PHP
max-gryshin/parts-processing
/src/DataFixtures/ToolFixtures.php
UTF-8
1,448
2.671875
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Tool; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class ToolFixtures extends Fixture { public function load(ObjectManager $manager) { $tool = null; foreach (static::getInfo() as $item) { $tool...
true
4d78fb584c014f47b3a3eed7589495b64e64dd1d
PHP
mottor/events
/src/Events/EventBus.php
UTF-8
6,392
2.875
3
[]
no_license
<?php namespace Mottor\Events; /** * Class EventBus * @package Mottor\Events */ class EventBus { /** * @var string путь к файл с указанием самого файла */ protected $logFileName = 'event.log'; /** @var array */ protected $eventListeners = []; /** * @param string $fileName ...
true
d214060bea583c64aec58551f0b4ce9f59b2a4dd
PHP
FoolCode/asagi-toolkit
/fuuka-to-asagi-migration-tool/resources/parameters.php
UTF-8
3,193
3.21875
3
[]
no_license
<?php if(PHP_SAPI != 'cli') { die('This file must be accessed via command line.'); } /********************************************** * Simple argv[] parser for CLI scripts * Diego Mendes Rodrigues - S�o Paulo - Brazil * diego.m.rodrigues [at] gmail [dot] com * May/2005 *********************************...
true
0098d2011a44c23a0c6098f9ac2db1b1212e5787
PHP
geodesicsolutions-community/geocore-community
/src/classes/PEAR/PayPal/Type/ExecuteCheckoutOperationsRequestDetailsType.php
UTF-8
2,528
2.6875
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @package PayPal */ /** * Make sure our parent class is defined. */ require_once 'PayPal/Type/XSDSimpleType.php'; /** * ExecuteCheckoutOperationsRequestDetailsType * * @package PayPal */ class ExecuteCheckoutOperationsRequestDetailsType extends XSDSimpleType { /** * On your first invocatio...
true
e4ba9f0d7999fbadc4d228fb44ad6943af6c8020
PHP
cier-centro/edu-unica
/service/BaseJornadaUnicaMerge.php
UTF-8
1,459
2.765625
3
[]
no_license
<?php class BaseJornadaUnicaMerge { /** * @type Reader * @type Level * @type Word */ protected $reader; protected $baseJornadaUnica; public function setReader($reader) { $this->reader = $reader; } public function setBaseMide($baseJornadaUnic...
true
dc2a073d3ae839ae311740ed2dd5a5770befb7fc
PHP
meratroksin/emotion
/libs/ProjectOxfordEmotion.php
UTF-8
899
2.5625
3
[]
no_license
<?php require_once 'HTTP/Request2.php'; class ProjectOxfordEmotion { protected $data; protected $emotion; protected $headers = [ 'Content-Type' => 'application/json', 'Ocp-Apim-Subscription-Key' => '7f3bc9352a584d06b3f681a5d2b93112', ]; public function __construct($data) { ...
true
1aca41001a34015d284608b192f14540b47f6b6c
PHP
albertcht/notion-ai
/src/Concerns/HasPrompts.php
UTF-8
5,348
3.046875
3
[ "MIT" ]
permissive
<?php namespace AlbertCht\NotionAi\Concerns; use AlbertCht\NotionAi\Enums\Languages; use AlbertCht\NotionAi\Enums\PromptTypes; use AlbertCht\NotionAi\Enums\Tones; use AlbertCht\NotionAi\Exceptions\InvalidEnumException; use AlbertCht\NotionAi\Exceptions\InvalidPromptException; trait HasPrompts { protected array $...
true
6ed97cca33bb1dd3331498a8a588be6439ed8e85
PHP
fjmn2001/laravel-onboarding
/src/SaleOrder/Application/DeleteSaleOrderUseCase.php
UTF-8
455
2.921875
3
[ "MIT" ]
permissive
<?php namespace Src\SaleOrder\Application; use Src\SaleOrder\Domain\Contracts\SaleOrderRepositoryContract; use Shared\Domain\ValueObject\Id; final class DeleteSaleOrderUseCase { private $repository; public function __construct(SaleOrderRepositoryContract $repository) { $this->repository = $repository; } pub...
true
47fb6afbf76518d0e4c27c8191ccdcf9676c543f
PHP
Time-travelers/php-test
/data_structure/tree_link.php
UTF-8
4,210
3.203125
3
[]
no_license
<?php /* *@author:xu.weishuai *@Time:2019/10/30 15:51 */ /* * 8(0) * 7(1) 9(2) * 5(3) 6(4) 1(5) 2(6) * * */ /* * 类 node * 属性 pre leftNode rightNode index data * 类 tree * 属性 size r_root * * */ class node{ // public $pre; public $leftNode; ...
true
35c6414961512454db528617cbe4578c1d0febf2
PHP
Jbru95/BummerPHP
/lib/LoginController.php
UTF-8
923
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Mingkai * Date: 2018/4/3 * Time: 15:29 */ namespace Bummer; class LoginController{ public function __construct(Site $site, array &$session, array $post) { $users = new Users($site); $email = strip_tags($post['email']); $password = strip_...
true
27b039f874e9c734cf0d77b1fbe583a19e204ecf
PHP
gdbots/common-php
/tests/Common/Util/DateUtilsTest.php
UTF-8
1,620
2.671875
3
[ "Apache-2.0" ]
permissive
<?php namespace Gdbots\Tests\Common; use Gdbots\Common\Util\DateUtils; class DateUtilsTest extends \PHPUnit_Framework_TestCase { public function testUtcZuluWithMicroseconds() { $expected = '2012-12-14T20:24:01.123456Z'; $date = \DateTime::createFromFormat(DateUtils::ISO8601_ZULU, $expected); ...
true
54ede549fb8a4565930c25543dbf771a8838568a
PHP
augustincharly/Business-case-back
/src/Controller/LoginController.php
UTF-8
1,889
2.5625
3
[]
no_license
<?php namespace App\Controller; use Symfony\Component\HttpFoundation\Request; use App\Entity\User; use App\Repository\UserRepository; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\Routing\Annotation\Route; use Symfony\Compone...
true
54ee256b3ae24322ba0299a23bd1d961ac46ea73
PHP
zx648383079/PHP-ZoDream
/Module/Disk/Domain/Repositories/StatisticsRepository.php
UTF-8
700
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Module\Disk\Domain\Repositories; use Module\Disk\Domain\Model\FileModel; use Module\Disk\Domain\Model\ServerModel; final class StatisticsRepository { public static function subtotal(): array { $todayStart = strtotime(date('Y-m-d 00:00:00')); $server_count ...
true
0cb76715278f8ce4b05ced39464462783555b544
PHP
fidransky/letters
/pluginy/clanky/frontend/archive.php
UTF-8
2,400
2.5625
3
[]
no_license
<?php $first = true; $odd = true; foreach ($articles as $i => $article) { $article["meta"]["permalink"] = $lrs["address"]."/".$article["alias"]; $article["meta"]["cas"] = date($datetime_format, strtotime($article["cas"])); if (!empty($article["kategorie"])) { include_once (PLUGINS_DIR."clanky/scripts/...
true
1dd0dc80b0c873e48478c877973995f6bd81f6df
PHP
hanh01/hanh2101
/PHP/Session3/snippet7.php
UTF-8
302
3.328125
3
[]
no_license
<?php namespace aptech; class Boston{ function say(){ echo "Boston\n"; } } class NewYork{ function say(){ echo "NewYork\n"; } } function foo1() { echo "This is foo1() \n"; } function foo2() { echo "This is foo2()\n"; } ?>
true
6ca6dfcd92d66d8940d76afac001ecd771c4d4ea
PHP
hige-itapps/Grant_Management_System
/server/Application.php
UTF-8
2,818
2.984375
3
[]
no_license
<?php /* Holds information for an application; these fields should be mostly self-explanatory, they mirror the fields in the database. */ class Application{ public $id; // id of application (INT) public $broncoNetID; // applicant's broncoNetID (STRING) public $dateSubmitted; // date submitted (DATE) ...
true
1e58e8d2b6c95de5e57433bcbaeb732fe2e91a18
PHP
zhuxxx/important
/common/model/touch/register.model.php
UTF-8
5,993
2.671875
3
[]
no_license
<?php /** *新用户注册 */ class registerModel extends model { public function __construct() { parent::__construct(C('db_default'), 'customer_contact'); } /* * 用户注册 * @access public * @param array $param 用户信息(mobile,password) * @return bool */ public function register($param=array()){ /...
true
0d101ea51d4730c81b16451b10e8ab717dba811f
PHP
vali4ka/admin
/classes/Colors.php
UTF-8
1,533
2.859375
3
[]
no_license
<?php class Colors implements ICRUD_IMG{ private $db; public function __construct($db){ $this -> db = $db; } public function add(IItem $item){ $sql = ' INSERT INTO colors (products_id, colors, images, promo) VALUES ( "'.$item -> products_id.'", "'.$item -> colors.'", "'.$item -> image...
true
74e860af18a0ee774b5fbb488d8e437b5d01edcc
PHP
cueBlog-Club/config
/src/Config.php
UTF-8
909
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CuePhp\Config; use CuePhp\Config\ConfigRepository; use CuePhp\Config\Exception\LoaderException; use CuePhp\Config\Loader\File\FileLoaderInterface; class Config extends ConfigRepository { public function __construct($values, $parser = null) { $this->loadFrom...
true
6d2f704e2535247347128b5edf2d24d9062d7f8e
PHP
andreyrork/jarcash
/classes/Filter/Encrypt/Cookie.php
UTF-8
1,447
2.53125
3
[]
no_license
<?php class Filter_Encrypt_Cookie implements Zend_Filter_Encrypt_Interface { /** * Encrypts $value with the defined settings * * @param string $value Data to encrypt * @return string The encrypted data */ public function encrypt($value) { $chain = new Zend_Filter(); $subnet =...
true
efe28bb9f37950c1a70751f547b82c2a89731c01
PHP
Lavaei/Raman-Framework
/View/Helper/Rate.php
UTF-8
7,597
2.671875
3
[]
no_license
<?php /** * Implement the jqxRating * * @author Mostafa Lavaei <lavaei@ramansoft.co> * @version 1.0 */ class Raman_View_Helper_Rate { /** * Html tag name. it will generate automatically * @var string */ protected $TagName; /** * Scripts dependencies * @var array */ protected $Dependencies;...
true
4c77e34e74c2f51df1184b4449d47af74a606f66
PHP
PhyrusFramework/framework
/phpcli/modules/watcher.php
UTF-8
5,141
2.78125
3
[]
no_license
<?php class CLI_Watcher extends CLI_Module { public function command_create() { if (sizeof($this->params) == 0) { echo "\nWatcher name not specified.\n"; return; } $name = $this->params[0]; $folder = Path::root() . '/' . Definitions::get('watcher'); ...
true
ec9dc60a9483d79999cb3c1668d83b8cf130a3f1
PHP
yishengjiang99/PhotoRewards-Backend
/tools/trends/web/search.php
UTF-8
2,113
2.625
3
[]
no_license
<?php session_start(); include('header.php'); include('searchform.php'); include('../share/config.php'); include('../share/MySqlUtil.php'); if (isset($_GET['keyword']) && isset($_GET['date']) && isset($_GET['total'])) { $mySqlUtil = new MySqlUtil(); $keyword = $_GET['keyword']; $date = $_GET['date']; ...
true
fd68d9f90324b0e56fd7ff7f1f5664b17ea8ac14
PHP
lqllife/tp5
/application/common.php
UTF-8
1,468
3.125
3
[ "Apache-2.0" ]
permissive
<?php /** * print_r()函数优化 * * @param $str */ function p($str){ echo '<div style="border: 1px solid bisque;border-bottom-color:red;border-right-color:red;color:green;background-color: bisque;"><pre>'; print_r($str); echo '</pre></div>'; } /** * var_dump()函数优化 * @param $str */ function v($str){ ...
true
37f52a8b2da504ce324bf69538656870274e192b
PHP
Chatter-Laravel/core
/src/Models/Discussion.php
UTF-8
2,986
2.546875
3
[ "MIT" ]
permissive
<?php namespace Chatter\Core\Models; use Str; use Auth; use Chatter\Core\Models\Post; use Chatter\Core\Traits\TimeAgo; use Chatter\Core\Models\Category; use Chatter\Core\Traits\Reactionable; use Illuminate\Database\Eloquent\Model; use Cviebrock\EloquentSluggable\Sluggable; use Illuminate\Database\Eloquent\SoftDeletes...
true
58a874f0e1cf76ccc1d2411d0df770f635b43852
PHP
charles-owen/site-cl
/src/Site/ViewAux.php
UTF-8
2,081
3.09375
3
[ "MIT" ]
permissive
<?php /** * @file * @brief Abstract base class for auxiliary views. */ namespace CL\Site; /** * Abstract base class for auxiliary views. * * An auxiliary view class is a view that is used by another page view class. * A view is for a page. An auxiliary view is for some component used by the * p...
true
a8c839a11f12e9bf70e06c76fa8742b2bb906095
PHP
waqarjan333/dhqhospital
/application/controllers/Profile.php
UTF-8
4,108
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Profile extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('Profiles'); } public function user_profile($id) { if(isset($_POST['save'])) { $fname = $thi...
true
237d6e0274a4787ae43d596bb732f186f2bd12a1
PHP
EdisonLabs/janrain_capture
/includes/janrain_capture.widget.inc
UTF-8
18,094
2.703125
3
[]
no_license
<?php /** * @file * Widget-related functions */ /** * Check if the screens are hosted remotely */ function _janrain_capture_widget_is_remote_screens() { $screenPath = variable_get('janrain_capture_screens_folder', NULL); return (strpos($screenPath, 'http') === 0); } /** * Update the local cache of remote JT...
true
cf7443b67f67c4576b87f11bf7c02aeeef539383
PHP
yiisolutions/yii2-last-lesson
/models/Group.php
UTF-8
1,489
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "group". * * @property integer $id * @property string $name * @property integer $teacher_id * * @property Teacher $teacher * @property Lesson[] $lessons */ class Group extends \yii\db\ActiveRecord { /** * @inheritdoc ...
true
9e5975996384dade7359b6cb5c38248d0ceb9872
PHP
farestakorabt/carrousel
/firstDay/7.2_exos.php
UTF-8
1,077
3.296875
3
[]
no_license
<?php // function continuer() { // $i = 0; // while(true) // { // $reponse = readline("Voulez vous continuer ? \n"); // if($reponse === "non") // { // echo "salut !"; // return false; // } else { // $i++; // ...
true
7b5aa72414a05ec1ec5e5b21cf9b37d33b3823ab
PHP
SrirangaDigital/tattvaloka
/php/get-parts.php
UTF-8
1,273
2.65625
3
[]
no_license
<?php include("connect.php"); require_once("common.php"); if(isset($_GET['volume'])){$volume = $_GET['volume'];}else{$volume = '';} if(!(isValidVolume($volume))) { exit(1); } $query = "select distinct part,month,year from article where volume='$volume' order by part"; $result = $db->query($query); $num_rows = $re...
true
189ef5ee8e88fdaf872ceb1054e2e4207483015c
PHP
wenz/core
/tests/lib/ConfigTest.php
UTF-8
11,337
2.671875
3
[ "GPL-3.0-or-later", "BSD-3-Clause", "GPL-1.0-or-later", "AGPL-3.0-or-later", "MIT", "AGPL-3.0-only" ]
permissive
<?php /** * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ namespace Test; use Symfony\Component\EventDispatcher\GenericEvent; /** * Class ConfigTest * * @group DB * @package Test */...
true
3ceab9b36f47035f80d8b39fb1fbd1736739b227
PHP
deniskoronets/ZNU-Diploma
/app/Models/DatedLesson.php
UTF-8
715
2.53125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class DatedLesson extends Model { protected $table = 'dated_lessons'; public $timestamps = false; protected $fillable = [ 'user_id', 'faculty_id', 'group_id', 'lesson_type_id', 'discipline_id', 'year', 'semester', 'date_of', ]; public fu...
true
8a9ae759c6a95292a9be5f054de8a8105dbdb5df
PHP
salyus2/curso-php
/php7/declaraciones-tipo-escalar.php
UTF-8
460
3.90625
4
[]
no_license
<?php //Las declaraciones de tipo escalar se trata de un sistema para evitar que se pasen valores inadecuados a nuestras funciones function cuadrado(int $numero){ return $numero * $numero; } $numero = '2'; echo 'El cuadrado de ' . $numero . ' es ' . cuadrado($numero); //declare(strict_types=1); function cu...
true
4f1f180fce7a1444b982d79806a4594f3500cdf3
PHP
Moebiuxz/JardinMVC
/model/Usuario.php
UTF-8
252
3.125
3
[]
no_license
<?php class Usuario { public $rut; public $nombre; public $apellido; public function __construct($rut, $nombre, $apellido) { $this->rut = $rut; $this->nombre = $nombre; $this->apellido = $apellido; } }
true
691dbead71bd6ef85b2233f8123b004e2688e59e
PHP
algo13/php-eaw
/src/mb_eaw_wrap.function.php
UTF-8
1,235
2.90625
3
[ "MIT" ]
permissive
<?php /** * mb_eaw_wrap.function.php * * Copyright (c) 2015 algo13 * * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ if (!function_exists('mb_eaw_strwidth')) { require_once dirname(__FILE__).'/mb_eaw_strwidth.function.php'; } // string mb_wrap( string...
true
cadecd44d00fc19345c44fcedf1eeef7425f998e
PHP
exesser/cms-bundle
/Dashboard/Model/Grid/Row.php
UTF-8
3,984
2.71875
3
[]
no_license
<?php namespace ExEss\Bundle\CmsBundle\Dashboard\Model\Grid; use ExEss\Bundle\CmsBundle\Dashboard\Model\Grid; use ExEss\Bundle\CmsBundle\Dashboard\Model\StripEmptyOnEncodeTrait; class Row implements \JsonSerializable { use StripEmptyOnEncodeTrait; public const TYPE_EMBEDDED_GUIDANCE = 'embeddedGuidance'; ...
true
12e64e65c7b9df87a87db809efb204bdfb3eb07e
PHP
pleminh/magento2-blog-product
/Model/Article/Rss.php
UTF-8
1,388
2.515625
3
[ "MIT" ]
permissive
<?php namespace Gemtoo\Blog\Model\Article; use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Store\Model\ScopeInterface; use Magento\Framework\UrlInterface; use Magento\Store\Model\StoreManagerInterface; class Rss { /** * @var \Magento\Framework\App\Config\ScopeConfigInterface */ pr...
true
b23326f1b37b354db184109e4ad88b5d9867618c
PHP
ederius/oficinajuridica
/php/sql.php
UTF-8
3,083
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Eder * Date: 30/04/2015 * Time: 4:51 PM */ class Sql { private $host ="localhost"; private $usuario ="root"; private $contrasena =""; private $db ="db_juridica"; public function __construct(){ $this->conexion(); } pu...
true
95e7671d6c4968d4898afb47eb9704e9d926a7c3
PHP
kovalevich/hyip
/application/views/helpers/Getparams.php
UTF-8
1,331
2.59375
3
[]
no_license
<?php /** * * @author kovalevich * @version */ require_once 'Zend/View/Interface.php'; /** * Nicetime helper * * @uses viewHelper Zend_View_Helper */ class Zend_View_Helper_Getparams { /** * * @var Zend_View_Interface */ public $view; /** */ public function getparams () ...
true
cc48577bcf06c92d7c3a0772f3f3f5e8d6683d60
PHP
OlesKashchenko/Jarboe
/src/Yaro/Jarboe/Fields/Subactions/AbstractSubaction.php
UTF-8
400
2.65625
3
[ "MIT" ]
permissive
<?php namespace Yaro\Jarboe\Fields\Subactions; abstract class AbstractSubaction { protected $attributes; public function __construct($attributes) { $this->attributes = $attributes; } // end __construct public function getAttribute($ident) { return isset($this->attribute...
true
9cc98deadeb3f23460fc1c2afa6f573ff2a7313d
PHP
rahulyhg/Atriya-
/admin/application/Mailer.class.php
UTF-8
2,693
2.90625
3
[]
no_license
<?php require ("class.phpmailer.php"); class Mailer { function Mailer() { //session_start(); } function sendMail($to, $from, $subject, $message, $path, $file_name) { $host = $_SERVER['HTTP_HOST']; if( strpos( $host, "flexihire.co.in" ) !== false ) { $toArr = explode(",", $to); $to = $toArr[0]; $ma...
true
2e69666ffcfa8f4d42142d810d48c15f5a10f8bc
PHP
imochon7/aplicacion_discos
/proyecto/clases/ControllerGato.php
UTF-8
3,833
2.6875
3
[]
no_license
<?php class ControllerGato extends Controller { function viewinsert(Gato $gato = null) { $error=""; if($gato === null){ $gato = new Gato(); }else{ $error="Se ha producido un error"; } $nombre = $gato->getNombre(); $raza ...
true
60751587112d2ebd9e88750cc841b2f8ab5e9bd8
PHP
foxer-zt/mousehole
/source/Mouse/Stats.php
UTF-8
1,343
3.609375
4
[]
no_license
<?php namespace Irishdash\Mouse; class Stats { /** * @var int */ protected $hp; /** * @var int */ protected $strength; /** * @var int */ protected $baseDamage; /** * @var Stats */ protected static $_instance; /** * Damage multiplier ...
true
0d053574bb055baa984aeb7e009822d85fe90908
PHP
hubertj6/Projekt-WM
/model/KolekcjaAktualnosci.php
UTF-8
537
2.65625
3
[]
no_license
<?php class KolekcjaAktualnosci extends Aktualnosci{ var $TablicaAktualnosci; public function __construct(){ $this->TablicaAktualnosci = array(); } function dodaj($aktualnosci){ $this->TablicaAktualnosci[] = $aktualnosci; } function usun($aktualnosci){ $n = 0; w...
true
2a4124b03b1931edba675cc5885c5e29cc7f6f19
PHP
mmuniraju4444/loan
/app/Repositories/LoanRepaymentRepository.php
UTF-8
3,143
2.625
3
[]
no_license
<?php namespace App\Repositories; use App\Http\Resources\LoanRepayment\LoanRepayment as LoanRepaymentJson; use App\Http\Resources\LoanRepayment\LoanRepaymentIndex; use App\Interfaces\ILoanRepository; use App\Models\LoanApplication; use App\Models\LoanRepayment; use Exception; use Illuminate\Http\JsonResponse; use Ill...
true
77700408f27919e632adf2e3afa65573d54b1177
PHP
justupgrade/random-shop
/www/classes/Picture.php
UTF-8
3,031
3.390625
3
[]
no_license
<?php class Picture extends DBObject { private $id; private $path; private $itemID; static protected $table = 'pictures'; //WHAT DO I NEED THIS FOR? FOR CLARITY? Single responsibility principle protected function __construct($id,$path,$itemID){ $this->id=$id; $this->path = $path; $this->ite...
true
39031d65a522b131e5047705d723a2f73fdcd595
PHP
n0bisuke/Taxshare
/app/vendors/nikeplusphp_3_1_1.php
UTF-8
8,039
3.21875
3
[]
no_license
<?php /** * A PHP class that makes it easy to get your data from the Nike+ service * * NikePlusPHP v3.x requires PHP 5 with SimpleXML and cURL. * To get started you will need your Nike account information. * * @author Charanjit Chana * @link http://nikeplusphp.org * @version 3.1.1 */ class NikePlusPHP { ...
true
a7b84dd699069c8dbe650d94beffe39ea825ba2f
PHP
packaged/rwd
/src/Country/Countries/JPCountry.php
UTF-8
540
2.578125
3
[]
no_license
<?php namespace Packaged\Rwd\Country\Countries; use Packaged\Rwd\Country\CountryInterface; class JPCountry implements CountryInterface { public function getName() { return 'Japan'; } public function getIso2() { return 'JP'; } public function getIso3() { return 'JPN'; } public functi...
true
3d2d6500cb3fa3c5bec1c1b76c02b317bf8a9c76
PHP
anlutro/laravel-4-core
/src/Eloquent/RelationshipQueryJoiner.php
UTF-8
4,702
2.921875
3
[ "MIT" ]
permissive
<?php /** * Laravel 4 Core * * @author Andreas Lutro <anlutro@gmail.com> * @license http://opensource.org/licenses/MIT * @package l4-core */ namespace anlutro\Core\Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations; use Illuminate\Database\Eloquent\Relations\Relat...
true
e96e97e0bb201ff940751873c2c0ffd5d0a29d46
PHP
sophpie/modular-cd
/module/Repository/src/Repository/Model/RepositoryInterface.php
UTF-8
172
2.859375
3
[]
no_license
<?php namespace Repository\Model; interface RepositoryInterface { /** * Get repository name * * @return string */ public function getName(); }
true
911b5b4c6db6be0d82a0eb015abfb8926934e655
PHP
dr-matt-smith/hdip_web3_test_2017_SOLUTION
/src/model/Book.php
UTF-8
2,066
3.34375
3
[]
no_license
<?php namespace Itb\Model; /** * Class Book to represent book objects * @package Itb\Model; */ class Book { /** * isbn of book (unique primary KEY) * * example: * <code> * 1234 * </code> * @var integer */ private $id; /** * title of book * * examp...
true