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
a6dc3d862a8cf6d1ff879a99f62191864d4c9600
PHP
swangoframework/swango-sql
/src/InsertMulti.php
UTF-8
2,801
2.703125
3
[ "Apache-2.0" ]
permissive
<?php namespace Sql; use Sql\Adapter\Platform\PlatformInterface; use function Swlib\Http\stream_for; class InsertMulti extends ReplaceMulti implements \countable { const SPECIFICATION_INSERT = 'insert'; protected array $specifications = [ self::SPECIFICATION_INSERT => 'INSERT INTO %1$s (%2$s) VALUES (%...
true
c9e341d54b7488ca1eaf735ebbd9a7c071ff6da6
PHP
baileyp/advent-of-code-2017
/php/tests/Solution/Day04SolutionTest.php
UTF-8
894
3.0625
3
[]
no_license
<?php namespace App\Test\Solution; use App\Test\SolutionTestCase; class Day04SolutionTest extends SolutionTestCase { public function test_part1() { $line1 = "aa bb cc dd ee"; $line2 = "aa bb cc dd aa"; $line3 = "aa bb cc dd aaa"; $this->mockReader ->shouldReceive(...
true
b2cbb5f1fd16c57ecbede98f745b925ed5ea9d8a
PHP
DaTerra/sentis
/app/models/Topic.php
UTF-8
801
2.53125
3
[ "MIT" ]
permissive
<?php class Topic extends Eloquent { protected $fillable = array('title', 'content', 'status', 'user_id', 'filter_type'); public function user() { return $this->belongsTo('User'); } public function keywords() { return $this->hasMany('Keyword'); } /* | Many to Many relatioships */ public f...
true
5734769aead943eae7efb347c614d8d3f0a284e2
PHP
izleads/ccm-consul-acl-package
/src/Interfaces/TokenInterface.php
UTF-8
2,580
2.578125
3
[]
no_license
<?php namespace ConsulConfigManager\Consul\ACL\Interfaces; use ArrayAccess; use JsonSerializable; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Routing\UrlRoutable; use Illuminate\Contracts\Queue\QueueableEntity; use Illuminate\Contracts\Broadcasting\H...
true
1753821d2a76ed4a28fc776673352c9dc10d0748
PHP
openyapp/openy
/openyapi/module/Openy/src/Openy/Traits/XMLlintTrait.php
UTF-8
779
2.578125
3
[]
no_license
<?php namespace Openy\Traits; use Openy\Core\Functions\XMLFunctions; trait XMLlintTrait{ protected function XMLlint($xml){ $arrxml = explode("\n", $xml); libxml_use_internal_errors(true); $doc = simplexml_load_string($xml); if (!$doc) { $errors = libxml_get_errors(); ...
true
14be15cd1cbb03f498f98af1685ece75185564b4
PHP
bamboo0079/shopcart
/admin/model/design/random_news.php
UTF-8
527
2.734375
3
[]
no_license
<?php class ModelDesignRandomNews extends Model{ public function insertRandom($huge,$child){ $this->db->query("INSERT INTO random_news SET large_session='".$huge."', small_session='".$child."'"); } public function getRandomNews(){ $query = $this->db->query("SELE...
true
67345b3b7e7e6b0871e5c9c9927987372f52bc14
PHP
Jonathanlight/Symfony4-BETA-skeleton-3.3
/demo/src/Entity/Users.php
UTF-8
583
2.5625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="users") */ class Users { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ public $id; /** * @ORM\Column(type="string", length=100) */ pu...
true
b194cb926b9480278098de060fa16e28951cf459
PHP
AbrarAhmed2122/web-fall2020-project
/admin/my-profile.php
UTF-8
2,268
2.734375
3
[]
no_license
<?php require_once "common-codes/session-code.php"; $admins = simplexml_load_file("data.xml"); $admin = $admins->user; foreach ($admin as $user) { if ($user->username == $_SESSION['username']) { $fullname = $user->fname; $email = $user->email; $gender = $user->gender; $contact = $...
true
68522f8ee68dc3b189d672d5b13b62980a9746cf
PHP
amenis/eneaware
/funciones.php
UTF-8
521
3.1875
3
[]
no_license
<?php function mes($mes){ /* setlocale(LC_TIME, 'spanish'); $nombre=strftime("%B",mktime(0, 0, 0, $mes, 1, 2000)); */ $meses = array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); $nombre = $meses[$mes-...
true
b6f83ca2d14fcba940ae90e581e4123370e0f2f5
PHP
ChichiHuang/labspace-upload-api
/src/Services/Image/Base64Source.php
UTF-8
1,820
2.75
3
[]
no_license
<?php namespace Labspace\UploadApi\Services\Image; use Illuminate\Http\Request; use Exception; use Labspace\UploadApi\Services\Image\ImageInterface; use Image; use Storage; class Base64Source implements ImageInterface { public $filename=null; protected $url; protected $request; public function __cons...
true
dc71f262cafeaa6a239ab5a42379e93ea65e0885
PHP
spencersensus/testWebsite
/Gather.php
UTF-8
1,173
2.625
3
[]
no_license
<DOCTYPE html> <html> <head> <link href="HomeStyle.css" rel="stylesheet" type="text/css" /> <meta charset="utf-8" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link rel="s...
true
cd6d74b1f019a2d4efa3543838c9b9e013f538c2
PHP
mcadare/FlashMessageHandler
/Service/FlashMessageEventHandlerInterface.php
UTF-8
603
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: meven.cadare * Date: 22/07/2015 * Time: 10:32 */ namespace MCadare\FlashMessageHandler\Service; use MCadare\FlashMessageHandler\Event\FlashMessageAwareInterface; /** * Interface FlashMessageEventHandlerInterface * @package MCadare\FlashMessageHandler\Service */ interf...
true
7a1e3e3130d8af15121607051ff0bde6b6b41b9e
PHP
groothuis/iphp
/Tree/Adapter/AdjacencyList.php
UTF-8
2,889
3.203125
3
[]
no_license
<?php require_once dirname(__FILE__) . '\Abstract.php'; require_once dirname(__FILE__) . '\..\Node.php'; require_once dirname(__FILE__) . '\..\Exception.php'; /** * A common representation of the adjacency list model which * consists of pairs of nodes, each pair represents a * parent-child relationship. * * @p...
true
24b6c66378b3f0a04edf33fdb2f9cb4f0aa319e5
PHP
ainsleyclark/php-framework
/framework/Core/bootstrap.php
UTF-8
890
2.515625
3
[]
no_license
<?php // Include required files require_once __DIR__ . '/../../vendor/autoload.php'; require_once 'global_functions.php'; /** * Configure auto class loading for namespace resolution */ spl_autoload_register(function ($class) { $class = explode('\\', $class); $class = end($class); if ($class !== '') { ...
true
e39defda32711ae46cbe1efe3c0a443286eb9ea0
PHP
digitalowlnyc/blue-nest-functions
/src/classes/RoostEvent.php
UTF-8
296
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: work * Date: 9/12/18 * Time: 16:38 */ class RoostEvent { private $data = null; function __construct($data) { if(is_string($data)) { $data = ["message" => $data]; } $this->data = $data; } function getData() { return $this->data; } }
true
20e039a7e6b3d9eaee2a7adb43789fa13fc7365e
PHP
KandarpD9ithub/RestVue
/database/migrations/2018_01_01_044759_create_discounts_table.php
UTF-8
1,307
2.625
3
[ "MIT" ]
permissive
<?php /** * @package App * * @class CreateDiscountsTable * * @author Kandarp Pandya <kandarp.d9ithub@gmail.com> * */ use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDiscountsTable extends Migration { /** * Run th...
true
6f7e07072eb23d4f364183ac776ba0b3a4dd2979
PHP
christophercurtisdev/jobSite
/app/Listeners/Backend/Skill/SkillEventListener.php
UTF-8
1,553
2.734375
3
[]
no_license
<?php namespace App\Listeners\Backend\Skill; /** * Class SkillEventListener. */ class SkillEventListener { /** * @param $event */ public function onCreated($event) { $user = auth()->user()->name; $newitem = $event->skill->name; \Log::info('User ' . $user . ' has cr...
true
b581108057c6cb6f4b8d5d5b3e1431ceaf2540a5
PHP
pioniro/example-gene
/src/AppBundle/Entity/Gamete.php
UTF-8
803
3.328125
3
[]
no_license
<?php namespace AppBundle\Entity; class Gamete { /** @var Allele[] */ protected $alleles; /** * Gamete constructor. */ public function __construct() { $this->alleles = []; } /** * @return Allele[] */ public function getAlleles(): array { retur...
true
52c9afb1a38ac962e2606c9f7501190d7c054ede
PHP
steemd/phonebook
/app/App.php
UTF-8
449
2.59375
3
[]
no_license
<?php namespace App; use Silex\Application; use App\Routes\Routes; use App\DI\Service; class App extends Application { public function init() { session_start(); Service::set('config', include __DIR__.'/../config/config.php'); Service::set('app', $this); try{ $this->loadRoutes(); } catch (\Exception...
true
39f5c1f07eb748d06e836b29745b0d62fd4fee0e
PHP
IlyaKavko/my_last_project_php
/storage/pragma/modules/categories_to_stores/CategoryStoreLinkStruct.php
UTF-8
709
2.984375
3
[]
no_license
<?php namespace Storage; class CategoryStoreLinkStruct implements ICategoryStoreLinkStruct { private int $store_id; private int $category_id; private int $link_status; function __construct(array $model) { $this->store_id = $model['store_id']; $this->category_id = $model['category_id']; $this->link_status...
true
7e4df81bc9387b451519555cf32d6cd4237849a0
PHP
nihalshetty/CSCI571HW2
/editfoodtype.php
UTF-8
5,651
2.609375
3
[]
no_license
<?php ob_start();session_start(); ?> <!DOCTYPE html> <?php if( !(isset($_SESSION['Type_id']) && $_SESSION['Type_id'] == 3) ) { header('Location: login.php'); } ?> <html> <head> <title> editfoodtype.com </title> <link rel="stylesheet" type="text/css" href="nihal_emp_support.css"/> </head> <...
true
1da903505908ca33848f919605360e13c525ca79
PHP
vijaynallagatla/FTP_Automation_Dashboard
/searchFromAccession.php
UTF-8
3,810
2.515625
3
[]
no_license
<?php /* Author : Vijay Kumar N */ //POST Data from Form downloadWorkflow.php $accessionNumber=$_REQUEST['accessionNumber']; $url = "a1.xml"; $xmlStr = file_get_contents($url); $xml = simplexml_load_file("a.xml")or die("Cannot create object"); $xmlAccession = $xml->SampleCorrelationID; // Check for Accessio...
true
d569b68f2f8b62c77bb14117dc495833d6161752
PHP
rjaten/AgonCritic
/model/model.php
UTF-8
6,176
2.671875
3
[]
no_license
<?php function getDBConnection() { $dsn = 'mysql:host=localhost;dbname=s_rjaten_agoncritic'; $username = 's_rjaten'; $password = 'DestinyRulez69'; try { $db = new PDO($dsn, $username, $password); } catch (PDOException $e) { $errorMessage = $e->getMessage(); include '../view/errorMessage.php'; d...
true
7e8fae256974e6b35c646df57b4ae6b2fb673310
PHP
avantassel/Gmail-API-PHP-test
/tests/ParseMessageTest.php
UTF-8
607
2.640625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class ParseMessageTest extends TestCase { protected $message = null; public function __construct(){ $this->message = new ParseMessage(['subjects'=>['Netflix', 'Home Depot', '1800flowers']]); } public function testSubjectCount() { $subjects = $t...
true
067fd72ef6b190c56b88a095b1b58778ed6c31fc
PHP
joindin/callingallpapers-cli
/src/Subcommands/Sessionize/Parser/EntryParser.php
UTF-8
3,582
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); /** * Copyright Andrea Heigl <andreas@heigl.org> * * Licenses under the MIT-license. For details see the included file LICENSE.md */ namespace Callingallpapers\Subcommands\Sessionize\Parser; use Callingallpapers\Entity\Cfp; use Callingallpapers\Service\ServiceContainer; use Calli...
true
f1beb5ecc8778eb0b2351bb06c6b04436f60a1e3
PHP
gjyuan/commonLib
/Db/Dao.php
UTF-8
4,137
2.734375
3
[]
no_license
<?php /** * dao基类提供了如下功能: * 1. 配置中心接入 * 2. 读接口的软负载均衡 * 3. 分库分表的支持 * 4. mysql和redis实例的维护 */ namespace Db; abstract class Dao { private static $masterConf = array(); private static $slaverConf = array(); private static $dbCount = 10; private static $tbCount = 10; private $mysql; ...
true
fe3274ded7baade13fe64d857bfe30074746c3ac
PHP
cmfirst/exty_old
/exty_old/Exty/ExtyFilterForm.php
UTF-8
360
2.53125
3
[]
no_license
<?php class ExtyFilterForm extends ExtyFormpanel{ /* Add a button to submit the values to filter grid panel * @param string $text The text to be displayed on the button * @return \ExtyFilterForm */ public function addBtnSubmit($text){ parent::_addBtn(ExtyButton::BUTTON_FILTER_SUBMI...
true
328cc3108887cb1551e5668bf97969f9d697bee1
PHP
u95306/course
/Ch12/Ch12-03.php
UTF-8
751
3.671875
4
[]
no_license
<?php require_once('Calendar/Day.php'); // 引用 Calendar_Day 類別 $day= new Calendar_Day(2008,1,1); // 建立 2008年1月1日的日期物件 header("Content-type:text/html;charset=UTF-8"); echo 'thisHour(true):'; // 取得2008年1月1日0時0分0秒的時間戳記 echo $day->thisHour(true).'<br/>'; // 呼叫任一個 thisXXX() 方法均可 // 改用 mktime() ...
true
123a3c2af6824439caa3a4422551d77671f29440
PHP
RunOpenCode/form-types-bundle
/src/Type/DateRange.php
UTF-8
1,444
3.078125
3
[ "MIT" ]
permissive
<?php namespace RunOpenCode\FormTypes\Type; use RunOpenCode\FormTypes\Contract\DateRangeInterface; final class DateRange implements DateRangeInterface { /** * @var \DateTimeInterface */ private $from; /** * @var \DateTimeInterface */ private $to; public function __construct(...
true
2aa26e2a5e27fb66b4baf4046669343fb63addac
PHP
wangluyu/nowcoder_answer
/PHP/剑指offer/02.替换空格.php
UTF-8
454
3.515625
4
[]
no_license
<!-- 替换空格 时间限制:1秒 空间限制:32768K 热度指数:454485 本题知识点: 字符串 PHP(7.1) 题目描述 请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 --> <?php function replaceSpace($str) { // write code here return str_replace(' ','%20',$str); } // 运行时间:16ms // 占用内存:2316k
true
792d5ebd28accfec48d6d91c65cdf550497be742
PHP
phunkie/phunkie
/spec/Phunkie/Types/TupleSpec.php
UTF-8
1,875
2.8125
3
[ "MIT" ]
permissive
<?php namespace spec\Phunkie\Types; use Phunkie\Cats\Functor; use Md\Unit\TestCase; use function Phunkie\Functions\function1\compose; use function Phunkie\Functions\functor\allAs; use function Phunkie\Functions\functor\asVoid; use function Phunkie\Functions\functor\fmap; use function Phunkie\Functions\functor\zipWith...
true
6944358a0803daf8c7c247f30a08aae8833ea58a
PHP
Fiser12/Social-Recipes
/Recipes/src/Application/Command/Book/AddRecipeToBook.php
UTF-8
2,900
2.6875
3
[ "MIT" ]
permissive
<?php namespace Recipes\Application\Command\Book; use LIN3S\SharedKernel\Exception\Exception; use Recipes\Domain\Model\Book\Book; use Recipes\Domain\Model\Book\BookId; use Recipes\Domain\Model\Book\BookRepository; use Recipes\Domain\Model\Recipes\Recipe; use Recipes\Domain\Model\Recipes\RecipeId; use Recipes\Domain\M...
true
6608eb34065f8094255e0910cb2e44ef1128a497
PHP
misbachim/core
/app/Business/Dao/AssignmentReasonDao.php
UTF-8
4,965
2.515625
3
[]
no_license
<?php namespace App\Business\Dao; use App\Business\Model\Requester; use Illuminate\Support\Facades\DB; use Carbon\Carbon; /** * @property Requester requester */ class AssignmentReasonDao { public function __construct(Requester $requester) { $this->requester = $requester; } /** * Get al...
true
8b2c9f145013381a5c6d18ecebbf998107f298a6
PHP
jeandev84/symfony-skills-beginners
/Skills/src/Services/Fetcher.php
UTF-8
1,165
2.8125
3
[]
no_license
<?php namespace App\Services; use Symfony\Component\DependencyInjection\ContainerInterface; use Psr\Log\LoggerInterface; /** * Class Fetcher * @package App\Services */ class Fetcher { /** LoggerInterface $logger , public function __construct(LoggerInterface $logger) {} */ /** \Swift_Mailer $mailer , publi...
true
e7439ec6a58788a442ae99895f28490b3d3940cb
PHP
ZelFramework/Router
/src/RouteCollection.php
UTF-8
529
3.09375
3
[ "MIT" ]
permissive
<?php namespace ZelFramework\Router; class RouteCollection { static $collection = []; /** * @return Route[] */ public static function getRoute() { return self::$collection; } /** * @param Route $route */ public static function addRoute(Route $route) { self::$collection[] = $route; } pu...
true
598b7adb350007c3c430c063c7876448a7eeda52
PHP
Lakshika-Luck/Teachers-Management-System
/information.php
UTF-8
3,761
2.640625
3
[]
no_license
<?php $sql3 = "SELECT * FROM school"; $view = mysqli_query($connection,$sql3)or die("Error in sql3".mysqli_error($connection)); echo '<div class="row"> <div class="col-lg-12"> <div class="panel panel-primary"> <div class="panel-heading"> <h4> School Teachers</h4> </div> <div class="panel-b...
true
47e64c6f055149d54a7b8d870054fef874ce184a
PHP
fc13240/table_watcher
/modules/watcher/Base.class.php
UTF-8
3,322
2.5625
3
[]
no_license
<?php /* 监控表抽象类 作者:tonny<wodexintiao@gmail.com> */ error_reporting(E_ALL ^ E_NOTICE); require_once(realpath(dirname(__FILE__)).'/../../confs/cache.php'); require_once(realpath(dirname(__FILE__)).'/../../libs/DB.class.php'); require_once(realpath(dirname(__FILE__)).'/../../libs/cache/Store_Memcache.class.php'); /*用接口定义...
true
e47fae32dca956a47115c21a92c065df89705a64
PHP
helenlawrance/daily_assignment
/Laravel Daily Task/app/Http/Controllers/StudController.php
UTF-8
2,547
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Stud; use Illuminate\Http\Request; class StudController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $stud= Stud::all(); return view('Stude...
true
442f94dca426ba466b21fcfc76d1b478fd8dedcd
PHP
marmotz/Dumper
/src/Marmotz/Dumper/Proxy/ArrayProxy.php
UTF-8
2,664
3.171875
3
[]
no_license
<?php namespace Marmotz\Dumper\Proxy; use Marmotz\Dumper\Dump; /** * Array proxy * * @package Dumper * @author Renaud Littolff <rlittolff@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License * @link https://github.com/marmotz/Dumper */ class ArrayProxy implements \Iterato...
true
54be429fc5766960ed6524e90465591b9a6719c1
PHP
MaLKaVeS/EventosDeportivos
/Web/application/controllers/api/Encuentros.php
ISO-8859-1
6,736
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); // This can be removed if you use __autoload() in config.php OR use Modular Extensions require APPPATH . '/libraries/REST_Controller.php'; /** * Controlador para gestionar los datos de las actividades * * @package CodeIgniter * @subpac...
true
7db53d37bddcb398538b57a72f323ba8829a5fe6
PHP
alaarezk1989/aykhedma
/app/Listeners/BranchProductListener.php
UTF-8
1,096
2.640625
3
[]
no_license
<?php namespace App\Listeners; use App\Events\BranchProductCreatedEvent; use App\Events\BranchProductDeletedEvent; use App\Events\BranchProductEditedEvent; use App\Http\Services\LogsService; class BranchProductListener { protected $logsService; public function __construct(LogsService $logsService) { ...
true
b4d21307b370e73e8c0e54efe0ced0f29ea11c3b
PHP
Katemare/Entlink2
/modules2/Template/TemplateCompiler/CodeParser.php
UTF-8
2,747
2.859375
3
[]
no_license
<? namespace Pokeliga\Template; abstract class CodeParser extends Subparser { const COMMAND='replace_me', RECOGNIZE_EX='/replace_me/'; public static function compile_processed($data, ParserCommon $common) { return '$this->command('.$data['codefrag_id'].');'; } } class CodeParser_echo extends CodeParser {...
true
33af86bcd1e128712b2de5bc387c1b5e3149d468
PHP
miladsssh/condoManagement
/app/controllers/CondoController.php
UTF-8
2,304
2.6875
3
[ "MIT" ]
permissive
<?php use Cygnus\Commands\Condominium\CondoDeleteCommand; use Cygnus\Commands\Condominium\CondoRegisterCommand; use Cygnus\Commands\Condominium\CondoUpdateCommand; use Cygnus\Core\CygnusResponse; use Cygnus\Forms\CondoRegistrationValidation; use Cygnus\Repo\Condominium\CondoRepo; /** * Class CondoController */ cla...
true
2cee5f126f9678a2e84d9d477feccd49f1fbcc86
PHP
bloodlinejp/monja
/PHPWork/save_state.php
UTF-8
1,110
2.84375
3
[]
no_license
<?php if(!(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')){ die("安全な接続でないため使用できません。"); } if(isset($_POST['bgcolor'])){ setcookie('bgcolor', $_POST['bgcolor'], time() + (60 * 60 *24 *7)); } if(isset($_POST['bgcolor'])){ $backgroundName = $_POST['bgcolor']; } elseif(isset($_COOKIE['bgcolor'])){ $backgroundN...
true
855111d56ce15e58a2d3e97f92897aa0d1b1ff60
PHP
TearKnow/LeetCode
/518.php
UTF-8
1,000
3.484375
3
[]
no_license
<?php class Solution { /** * @param Integer $amount * @param Integer[] $coins * @return Integer * * f[i][j] 表示前i个数的和为j * f[i][j] 等价于 f[i-1][j - n次*coins[i-1]] 所有组合的合计,这里的n次,表示从0,1,2,3...开始取值 */ function change($amount, $coins) { $base[0][0] = 1; for($i = 1; ...
true
f850a07050b7af42e4670ce67881f314b7fd6b2d
PHP
bazo/translation-ui
/app/model/documents/ActivityLog.php
UTF-8
2,166
2.59375
3
[]
no_license
<?php use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; /** * Log * * @author martin.bazik * @ODM\Document(repositoryClass="Repositories\ActivityLogRepository") */ class ActivityLog { /** * @ODM\Id */ private $id; /** * @ODM\String * @ODM\Index */ private $activity; /** * @ODM\String * @...
true
b59c0f629f2eea3b91cd37b6dd3ce18cf38a9590
PHP
wangyoukun/algorithm020
/Week1/66.plus-one.php
UTF-8
563
3.890625
4
[]
no_license
<?php class Solution { /** * 数组 O(n) O(1) * @param Integer[] $digits * @return Integer[] */ function plusOne($digits) { $count = count($digits); for ($i = $count - 1; $i >= 0; $i--) { if($digits[$i] < 9) { $digits[$i]++; retur...
true
0a68dd48761678c03f832704efb13714f279414f
PHP
marcubn/messagebird
/src/Service/SmsOutput.php
UTF-8
3,067
3
3
[]
no_license
<?php namespace MessageBird\Service; use MessageBird\Client; use MessageBird\Objects\Message; /** * Class SmsOutput * @package MessageBird\Service */ class SmsOutput { /** * Private key for the account */ const KEY = 'PRIVATE_KEY_INSERT_HERE'; /** * Max length for concatenated sms ...
true
7ac331042d2709f2c2fb80cb8a48e22c15700315
PHP
gitgrupoift/ift-comercial
/wp-content/plugins/ift-at/vendor/wsdltophp/phpgenerator/src/Element/GenerableInterface.php
UTF-8
1,214
3.09375
3
[ "MIT" ]
permissive
<?php namespace WsdlToPhp\PhpGenerator\Element; interface GenerableInterface { /** * @var string */ const INDENTATION_CHAR = ' '; /** * @var string */ const BREAK_LINE_CHAR = "\n"; /** * opening a function/class * @var string */ const OPEN_BRACKET = '{'; ...
true
0533a3e153b113053c896e25a7a9e8d4521a74ca
PHP
Dheia/demo-shopping-cart
/src/Contracts/IRepository.php
UTF-8
556
2.90625
3
[]
no_license
<?php namespace Isswp101\ShoppingCart\Contracts; interface IRepository { /** * @param string $id * @return bool */ public function has($id); /** * @param string $id * @return ICartItem */ public function get($id); /** * @return ICartItem[] */ public fun...
true
520ea3457c74ec27380a758d7c5be813cbfdde50
PHP
TheFixerDevelopment/StaffChatPE2
/src/StaffChatPE/Commands/Commands.php
UTF-8
8,242
2.71875
3
[ "MIT" ]
permissive
<?php namespace StaffChatPE\Commands; use pocketmine\command\Command; use pocketmine\command\CommandExecutor; use pocketmine\command\CommandSender; use pocketmine\permission\Permission; use pocketmine\Player; use pocketmine\plugin\PluginBase; use pocketmine\utils\TextFormat; use StaffChatPE\Main; class Commands ext...
true
e41109b930378b362df4c20ac02f307650001b68
PHP
AlexandrDobynda/Lesson05
/BasketDiscounts.php
UTF-8
512
3.3125
3
[]
no_license
<?php namespace Lesson05; /** * Class BasketDiscounts * @package Lesson05 */ trait BasketDiscounts { /** * @return int */ public function getUserDiscount() { return 10; } /** * @return int */ public function getSaleDiscount() { return 15; } ...
true
1c73b3ed1c6207c6f964b6df524d977db86feae1
PHP
kharuka/PGCampLesson3
/CAMP_PHPbase01/str_replace01.php
UTF-8
340
3.234375
3
[]
no_license
<?php $str_base = "PHP4_PHP5_PHP6"; // var_dump($str_base); $str=str_replace("PHP5","PHP5.5",$str_base); // var_dump($str); echo $str."<br>"; $ar_base = array("PHP4","PHP5","PHP6"); $ar_base[0]=str_replace($ar_base[0],"PHP4.1",$ar_base[0]); var_dump($ar_base); echo "<br>"; for($i=0;$i<3;$i++){ echo $ar_base...
true
d3d2e03e2683e0f1d4f373b2c73e794631d3a642
PHP
donwilson/rpi-distributed-file-conversion
/workers/convert.php
UTF-8
3,260
2.65625
3
[]
no_license
<?php require_once(__DIR__ ."/../config.php"); use Pheanstalk\Pheanstalk; define('TUBE_CONVERT', "rpi-convert-files"); define('MAX_ATTEMPTS', 5); try { $pheanstalk = new Pheanstalk(BEANSTALKD_HOST); if(!$pheanstalk->getConnection()->isServiceListening()) { throw new Exception("beanstalkd server not...
true
19ee20ab325be74de9ebf19e81dab7edb815a502
PHP
Comunidadphp/TalleresPHP
/26-Ene-2013/php-mysqli_2.php
UTF-8
1,616
2.953125
3
[]
no_license
<?php /* * Segunda Sesion taller de PHP con Mysqli * 26 de Enero de 2013 * Realizo Claudio Morales (@pronuer) * www.comunidadphp.org */ //Establecer conexion a base de datos $conexion = new mysqli('localhost','root','pronuer','tallerPHPMysqli'); if($conexion->connect_errno) { echo "fallo la conexion"; die(...
true
5a6280fbc5f1424301932ac5b750a9df58ef13e1
PHP
yaowenz/hjl-tv-web
/remote.php
UTF-8
2,901
2.5625
3
[]
no_license
<?php if(file_exists('config.php')) { include('config.php'); } class RemoteService { public static function httpGet($url, $params) { $params = self::filterParams($params); $params['sign'] = self::calcSignature($params); $url .= '?'; $url .= http_build_query($p...
true
5b58f1c3fae85d9dfeb6b399b353e8d2fbe090a9
PHP
workleo/Playpit
/src/code/classes/Playpit.php
UTF-8
933
2.859375
3
[]
no_license
<?php class Playpit { private $_individuums; public function addIndividuum($individuum) { $this->_individuums[] = $individuum; } public function move_all() { $strResult = ''; foreach ($this->_individuums as $_individuum) { /** @var Individuum $_individuum...
true
69b088ff0667a7b08e19de67d70f6a90e357abb0
PHP
Abdelhafiez/Web-Project
/examinations.php
UTF-8
878
2.625
3
[]
no_license
<?php include("designtemplate.php"); include("database.php"); include("validation.php"); verify_authorization("admin"); connect(); ?> <?php if (isset($_POST['add_exam'])){ $exam_name = $_POST['exam_name']; add_exam($exam_name); } ?> <html> <head> <title> Examinations </title> ...
true
b969663e2cd580405762467c9ac2829820aac93f
PHP
electric-eloquence/fepper-drupal
/backend/drupal/core/lib/Drupal/Core/Entity/TranslatableRevisionableStorageInterface.php
UTF-8
1,764
2.671875
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Drupal\Core\Entity; /** * A storage that supports translatable and revisionable entity types. */ interface TranslatableRevisionableStorageInterface extends TranslatableStorageInterface, RevisionableStorageInterface { /** * Creates a new revision starting off from the specified entity object. ...
true
fadaec24a6431f43198cd7b344951c448c3618c4
PHP
fdai3105/laravel_pesdb
/app/Models/Player.php
UTF-8
3,050
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Database\Factories\PlayerFactory; use Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; /** * App\Models\Player * * @property int $id * @property string ...
true
57d4acaab0195fe7b9c903600c841371e7e5354f
PHP
RundizBones/ModuleAdmin
/Models/UserPermissionsDb.php
UTF-8
20,883
2.609375
3
[ "MIT" ]
permissive
<?php /** * @license http://opensource.org/licenses/MIT MIT */ namespace Rdb\Modules\RdbAdmin\Models; /** * User permissions DB. * * @since 0.1 */ class UserPermissionsDb extends \Rdb\System\Core\Models\BaseModel { /** * @var string Cache folder path. */ protected $cachePath = STORAGE_PAT...
true
79f5ec3f5dc7a5bc834c67a037f8f93118da3716
PHP
kmmm/wizualizacja
/tables/tableDevice.php
UTF-8
3,390
3.046875
3
[]
no_license
<?php require_once('connectDb.php'); $connectDB = new connectDb(); class tableDevice { function instert($port, $type, $value, $get_value, $set_value) { $row = $this->selectRecord($port, $type); if (empty($row)) { $query = "INSERT INTO device values ('','$port', '$type', '$value', '$ge...
true
270ab45c849603173b47360a56605959e861c234
PHP
jwh315/resource-query-language
/test/ExprTest.php
UTF-8
3,182
2.609375
3
[ "MIT" ]
permissive
<?php namespace Cekurte\Resource\Query\Language\Test; use Cekurte\Resource\Query\Language\Expr; class ExprTest extends \PHPUnit_Framework_TestCase { public function dataProviderIsValidExpression() { return [ ['between'], ['eq'], ['gte'], ['gt'], ...
true
8873a6a17eddee1c8c7e919930326f061d0195f0
PHP
prufrock/flowerbug
/tests/Unit/Domain/SaleNotifierTest.php
UTF-8
2,144
2.625
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit\Domain; use Tests\TestCase; use Mockery as m; class SaleNotifierTest extends TestCase { public function testNew() { $this->assertInstanceOf(\App\Domain\SaleNotifier::class, new \App\Domain\SaleNotifier()); } public function testSuccessfulNotify() { $or...
true
9035f031ac249c52fb76d71ce97acca8bb8e9863
PHP
BruceTomLi/GhostSystem
/Model/UserManager.php
UTF-8
7,084
2.84375
3
[]
no_license
<?php require_once(__DIR__."/User.php"); require_once(__DIR__."/../classes/MysqlPdo.php"); /** * 这个“用户管理员”类主要用来修改用户的角色 */ class UserManager extends User{ /** * 加载所有的用户信息 */ function loadAllUserInfo(){ global $pdo; $sql="call pro_getUsersHasRoles()"; $users=$pdo->getQueryResult($sql); ret...
true
33f15bf7cd97dbe4454331a39a4cad22e339f3ae
PHP
arnoldapg/Lumen-RESTful-API-Boilerplate
/crudapi/app/Http/Controllers/PostsController.php
UTF-8
1,103
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Post; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class PostsController extends Controller{ /*to restrict unauthorized users*/ function __construct(){ $this->middleware('auth', ['only' => ['add', 'index']]); } /*list of post*/ public function...
true
fe5bfe95329b3bacbf441638f84f41d4dc129763
PHP
connexxiontelecom/statehouse-igov
/app/Database/Migrations/2021-08-24-105532_Reminders.php
UTF-8
1,164
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Database\Migrations; use CodeIgniter\Database\Migration; class Reminders extends Migration { public function up() { $this->db->disableForeignKeyChecks(); $this->forge->addField( [ 'reminder_id' =>[ 'type' => 'INT', ...
true
82376da0090b54726aef1af90daf867f60291411
PHP
thephpleague/uri-components
/Components/HierarchicalPathTest.php
UTF-8
27,414
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * League.Uri (https://uri.thephpleague.com) * * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace League\Uri\Components; use ArrayIterator; use League\Uri\Contr...
true
a00f432a65c6c43651fa39a4b8fbee6f2c41370c
PHP
Urzzard/proyectofinal
/database/migrations/2021_06_18_225546_create_profesionals_table.php
UTF-8
866
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProfesionalsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('profesiona...
true
dd8839c04b6f1cb59b13d9e36d5f22a86a8f8573
PHP
thibmat/projetjuin2019
/formulaire/functions_formulaire.php
UTF-8
2,754
3.359375
3
[]
no_license
<?php function checkPostText (string $key, int $max):string { if (!array_key_exists($key, $_POST) || empty($_POST[$key])){ $message = "Merci de saisir une valeur"; }elseif (strlen($_POST[$key])> $max) { $message = "La saisie est trop longue (Max : $max caractères)"; } return ...
true
318c97b61b60da59c8abbd77ea1773c95407e89f
PHP
softsquad-git/movie
/app/Services/Stories/StoryService.php
UTF-8
1,305
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Services\Stories; use App\Helpers\Status; use App\Interfaces\Stories\StoryServiceInterface; use App\Models\Stories\Story; use Illuminate\Support\Facades\Auth; use \Exception; class StoryService implements StoryServiceInterface { /** * @var string */ const RESOURCE_TYPE = 'STORY'...
true
c3a191e73bad9c6e550d44ee8d010c840d49683d
PHP
Ocramius/Storm
/Storm/Storm/Drivers/Base/Object/Properties/Proxies/DevelopmentProxyGenerator.php
UTF-8
8,440
2.5625
3
[]
no_license
<?php namespace Storm\Drivers\Base\Object\Properties\Proxies; use \Storm\Core\Object; class Null__Proxy implements IProxy { use \Storm\Core\Helpers\Type; use EntityProxyFunctionality; public function __construct() { return call_user_func_array([$this, '__ConstructProxy'], func_get_args(...
true
db0a7d1a9f0a4bd8f1ac7f0976e0f8baf38c2f6a
PHP
niemubarok/rebot
/app/Traits/timeTrait.php
UTF-8
17,089
2.828125
3
[]
no_license
<?php namespace App\Traits; use DateTime; use App\Traits\messageTrait; use Illuminate\Support\Str; trait timeTrait { use messageTrait; function dayDate($day) { return new DateTime($day); } public function hariKeTgl($day) { //tanggal pendaftaran $date = date('Y-m-d'); $hari = $day; ...
true
acebaba26f24e1f9f1968a20b120ca142a10e343
PHP
qq272775425/demo5
/php2016/day4/test13.php
UTF-8
210
3.09375
3
[]
no_license
<?php for($i=1;$i<1000;$i++){ $arr=true; for($j=2;$j<$i;$j++){ if($i % $j==0){ $arr=false; break; } if($arr){ echo $i; echo "<br />"; } } echo $i; } ?>
true
edebca44e174cef6d35e944b9c3274a013500e6c
PHP
kherop/EjemplosPHP
/EjemploOBJ/index.php
UTF-8
581
2.65625
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php require ...
true
30c48f7b06fc8efe3bcacb93f9415214ff976b72
PHP
s4fawolz/codeigniterRepo
/app/Models/ReiterModel.php
UTF-8
611
3.046875
3
[]
no_license
<?php namespace App\Models; use CodeIgniter\Model; class ReiterModel extends Model { // globally accessible variable for database connection, referenced with $this->db protected $db, $projekte; public function __construct() { // Wir verbinden uns zur Datenbank $this->db = \Config\Database...
true
ad41342beaa7fc126c7a0428536f660c95d5eab0
PHP
sdev911/Gui_project
/app/model/User.class.php
UTF-8
4,514
3.203125
3
[]
no_license
<?php class User extends DbObject { // name of database table const DB_TABLE = 'user'; // database fields protected $id; protected $username; protected $password_hash; protected $first_name; protected $last_name; protected $email; protected $user_type; protected $bio; ...
true
eb2baa7c2ffab798c510e06eb63a1e766981cd53
PHP
SirVenger/sakhTest
/application/src/Service/TransferLog.php
UTF-8
565
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: venger * Date: 28.01.19 * Time: 2:49 */ namespace App\Service; use Monolog\Logger; use Monolog\Handler\StreamHandler; use Monolog\Handler\FirePHPHandler; class TransferLog { public function writeLog(string $message) { // Create the logger $logger ...
true
a23e2ddfb4c08c65af566a5775dd3f464b94acec
PHP
laminas/laminas-crypt
/test/Symmetric/Padding/NoPaddingTest.php
UTF-8
661
2.515625
3
[]
permissive
<?php namespace LaminasTest\Crypt\Symmetric\Padding; use Laminas\Crypt\Symmetric\Padding\NoPadding; use PHPUnit\Framework\TestCase; class NoPaddingTest extends TestCase { /** @var NoPadding */ protected $padding; public function setUp(): void { $this->padding = new NoPadding(); } pu...
true
589382750e088dde3091f352f329e819938c684d
PHP
isabella232/GridManager
/src/RavenTools/GridManager/QueueInterface.php
UTF-8
439
2.890625
3
[]
no_license
<?php namespace RavenTools\GridManager; interface QueueInterface { /** * adds a message to the queue */ public function send(WorkItem $message); /** * dequeues $num messages */ public function receive($num = 1); /** * delete message from queue */ public function delete($handle); /** * return ...
true
9855199a1bab2810271979ce06d465c3e641efdc
PHP
ixis-james/php-paymo-api-wrapper
/class-cache.php
UTF-8
2,490
3.203125
3
[]
no_license
<?php /** * Cache - Class to cache things into a file. * * @package paymo-api */ /** * Main caching class * @package paymo-api */ abstract class Cache { public $cache_file; public $cache_time; public $mod_time; /** * Class construct for the cache class * @param string $cache_file * @param string $...
true
6460f45e1f18e89a1087da37804645900ee6f8e3
PHP
hw233/xiangjingchuangshuo_server-c-
/trade/proto/RO/Cmd/BlobGGvg.php
UTF-8
6,179
2.59375
3
[]
no_license
<?php // DO NOT EDIT! Generated by Protobuf-PHP protoc plugin @package_version@ // Source: GuildCmd.proto namespace RO\Cmd { class BlobGGvg extends \DrSlump\Protobuf\Message { /** @var int */ public $partin_time = 0; /** @var int[] */ public $partin_users = array(); /** @var int *...
true
72e35b37e33e74a5fb4a67e2a3158111068f420a
PHP
iBekzod/edu_focus
/app/Models/Score.php
UTF-8
572
2.625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** @property bigint $student_id student id @property varchar $scores scores @property bigint $subject_id subject id @property timestamp $created_at created at @property timestamp $updated_at updated at */ class Score extends Model { ...
true
b6157cbdb921ef17897520188c81ceb3cf53e345
PHP
ArtARTs36/SwaggerMerger
/src/Info.php
UTF-8
1,028
2.90625
3
[]
no_license
<?php namespace ArtARTs36\SwaggerMerger; class Info { protected $tagsPrefix; protected $descriptionPrefix; public function __construct(string $tagsPrefix = '', string $descriptionPrefix = '') { $this->tagsPrefix = $tagsPrefix; $this->descriptionPrefix = $descriptionPrefix; } ...
true
91ad8c981da84b99f27687cf767c40cffda59cdb
PHP
mitko-janeski/Pulsar
/www/bazi/index.php
UTF-8
2,303
2.921875
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php ...
true
1c2ef96e229133ca59e49912c9bf1eba8cd94431
PHP
apsg/reservations
/app/Domains/Reservations/States/ReservationState.php
UTF-8
381
2.734375
3
[]
no_license
<?php namespace App\Domains\Reservations\States; use App\Domains\Reservations\Models\Reservation; abstract class ReservationState { /** @var Reservation */ protected $reservation; public function __construct(Reservation $reservation) { $this->reservation = $reservation; } public func...
true
f08a64e8cbe9c7ff97422684722c1fa47cbea67c
PHP
vivekdutt/sumazi
/branches/live/frontend/classes/classes/press.php
UTF-8
1,226
3.109375
3
[]
no_license
<?php /** * @author Rakesh * @copyright 2011 */ Class press { private $imageName; private $title; private $id; private $shortDesc; private $externaleUrl; private $publishDate; public function __construct($data){ $this->setId($data['$id']); $this->setTitle($data['title']); $this->setShortDesc($data[...
true
b3065b3f025416972d385d067761d81b28fc8d27
PHP
ptfcpro/Lightning
/App/Mail.php
UTF-8
1,512
3.3125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace App; /** * Mail class * * PHP version 7.2 */ class Mail { /** * Send an email message * * @param string $to * @param string $subject * @param string $text * @param string $html * * @return boolean */ public static function send(string $to, string $su...
true
8c2ee89145d295441b60120583e319878224e64a
PHP
slackie9/phpdasar2
/pertemuan7/latihan1.php
UTF-8
1,567
3.390625
3
[]
no_license
<?php // variable Scope // $x =10; // function showX(){ // global $x; // echo $x; // } // showX(); //superglobal // global PHP's variable // constitute array associative // $_GET $mahasiswa = [ [ "nama" => "Slackie", "nim" => "062406104", "email" => "slackie@mail.com", ...
true
e222a867819b73cae53e39b34bbaa62fe60d8346
PHP
castorland/hu-holidays
/src/Traits/Holidays/Gyereknap.php
UTF-8
634
2.84375
3
[ "MIT" ]
permissive
<?php namespace Castorland\HUHolidays\Traits\Holidays; use Castorland\HUHolidays\Carbon; trait Gyereknap { /** * Setting Gyereknap holiday for given year * * @param int $year The year to get the holiday in */ private function setGyereknap(int $year) { return new Carbon(sprintf...
true
6223bb8065aa2e3bbfe6bcee5243acc6bb1119dd
PHP
SavchukDev/arrays_loop
/25.php
UTF-8
434
3.796875
4
[]
no_license
<?php //25. Ваше задание создать массив, наполнить это случайными значениями (функция rand), найти максимальное и минимальное значение и поменять их местами. $array = range(0, 100); echo 'Min: ' . min($array) . ' Max: ' . max($array); list($array[0], $array[100]) = array($array[100], $array[0]); print_r($array);
true
c9fea58bc54fddc7a9be1398c23d0ceef9944f0f
PHP
Shoplo/shoplo-php-v2
/src/Shoplo/AuthStoreAbstract.php
UTF-8
284
2.65625
3
[]
no_license
<?php namespace Shoplo; abstract class AuthStoreAbstract { abstract public function authorize(); abstract public function getOAuthToken(); abstract public function getOAuthTokenSecret(); abstract public function setAuthorizeData($oauth_token, $oauth_token_secret); }
true
25aeb6311f6e87b0f2d4b29318c6b0c98e2566ae
PHP
RidickSossela/Clientes
/src/model/PessoaFisica.php
UTF-8
2,582
2.75
3
[]
no_license
<?php require_once('Cliente.php'); class PessoaFisica extends Cliente { private $clientes_p_fisica; private $cpf; private $nome; private $data_nascimento; public function __get($atrib) { return $this->$atrib; } public function __set($atrib, ...
true
ee56c55899082b72b44cd50e08a3c26a750082b0
PHP
Yurii1989/Articles-project
/ArticlesProject/php/admin.php
UTF-8
4,286
2.90625
3
[]
no_license
<?php session_start(); include "dbconnect.php"; include "header.php"; if (empty($_SESSION)) { echo "Get the hell out from this page"; } else { echo "<h4>Welcome back, ".$_SESSION['username'].".</h4> <form method='post'> <input type='hidden' name='logout' value='123'> <button type='submit' c...
true
8f0514deae681398830211a007bc25a70a3c8be2
PHP
zombiexq/zimbra-api
/src/Zimbra/Admin/Request/DeleteDataSource.php
UTF-8
1,591
2.6875
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * This file is part of the Zimbra API in PHP library. * * © Nguyen Van Nguyen <nguyennv1981@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Zimbra\Admin\Request; use Zimbra\Struct\Id; /** * Delete...
true
00fd3948721864dacaf526c20bf8f83e94e0e7af
PHP
Sarah-Lettmann/orodirs-notebook
/site/src/Com/KlosedSource/APIFramework/Permissions/PermissionResolver.php
UTF-8
6,500
3.03125
3
[]
no_license
<?php namespace Com\KlosedSource\APIFramework\Permissions; use Com\KlosedSource\APIFramework\Database\DatabaseConnector; class PermissionResolver { private $config; private $permissionSource; private $dataSource; private $connection; public function init($config) { // Store the current config object ...
true
11d0f70af0eacbd9cac5830084f2d1fadf5e1cc9
PHP
sb204119/test
/index.php
UTF-8
2,854
2.828125
3
[]
no_license
<?php require_once('db.php'); function Generate($length = 5) { $symbols = "abcdefghijklmnopqrstuvwxyz0123456789"; if($length <= 0) $length = 5; else if($length > strlen($symbols)) $length = strlen($symbols); $key = str_split($symbols); $result = ""; do { $el = rand(0, count($key)); ...
true
356ac4f7f6af63fab595fa2e535c6e691b64f50d
PHP
paul-awity/pos-cathedral-bookshop
/app/Http/Middleware/Authenticate.php
UTF-8
739
2.625
3
[]
no_license
<?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; use Illuminate\Support\Facades\Storage; class Authenticate extends Middleware { //add an array of routes to skip santize check /** * Get the path the user should be redirected to when they are not authentic...
true
86fd60f26fc33d8ea1729ff24acb25acceccb305
PHP
newfront/dojophp
/week_four/week_eight_materials 3/week_2/str_length.php
UTF-8
177
3.5
4
[]
no_license
<?php /* How long is a String? How many characters make up the whole word or words? */ $str = "This is a line of text with a certain number of characters"; echo strlen($str); ?>
true
ae5e6e4ab13e540f579ae612ca6ba0292780e211
PHP
cherry-framework/request
/src/HttpUtils/Request.php
UTF-8
3,192
3.125
3
[ "MIT" ]
permissive
<?php /** * The file contains Request class * * PHP version 5 * * @category Library * @package Cherry * @author Temuri Takalandze <takalandzet@gmail.com> * @license https://github.com/ABGEO07/cherry-request/blob/master/LICENSE MIT * @link https://github.com/ABGEO07/cherry-request */ namespace Cherry\...
true