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
b2b7dbad4764b363aa8bf1ba0ae6cf6519f24adc
PHP
BoBoGithub/PhpProject
/libs/utils/Timer.class.php
UTF-8
2,839
3.328125
3
[]
no_license
<?php /** * @brief 计时器 * **/ class Timer { /** * 用于存在时间数据:开始时间和结束时间 * @var array * { * start : 开始时间 * end : 结束时间 * } */ protected static $_arrData = array(); /** * 执行的时间,us。 * @var array * { * $strName => $intTimeUs * } */ protected static $_arrExecutionTime = array(); prot...
true
ed9ed30fe8b8231896e02a1bb612a998346e9e61
PHP
BeautyFastCode/patterns
/PHP/Behavioral/State/States/BattleState.php
UTF-8
1,155
3.125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * (c) BeautyFastCode.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHP\Behavioral\State\States; /** * BattleState. * * @author Bogumił Brzeziński <beautyfastcode@gmail.com> ...
true
cb16252aceb1a5d555de4d092f54fb69a6710016
PHP
deedy/phabricator
/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php
UTF-8
1,206
2.515625
3
[ "Apache-2.0" ]
permissive
<?php final class PhabricatorXHProfProfileController extends PhabricatorXHProfController { private $phid; public function willProcessRequest(array $data) { $this->phid = $data['phid']; } public function processRequest() { $file = id(new PhabricatorFile())->loadOneWhere( 'phid = %s', $...
true
b70b514bed1ec39ae66af784f682375aa1453c43
PHP
mohammedmatar/hr-php
/reports/rpt_countdetpemp.php
UTF-8
2,707
2.578125
3
[]
no_license
<?php include("../config.php"); /* ----------------------Day Report-----------------------------*/ $month=$_POST["month"]; $year=$_POST["year"]; if($month==02) $day=28; else $day=30; $rptdate=$year."-".$month."-".$day; $date=$year."-".$month."-"."1"; $datehol=$rptdate; /* -----------------------...
true
252a6cd27fe9d01e02a17c37ce08ddb22701e22f
PHP
KueroTecnologia/BackendChatbot
/painel/Middleware/RoutingMiddleware.php
UTF-8
1,030
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace KED\Middleware; use function KED\generate_url; use KED\Services\Http\Request; use KED\Services\Http\Response; use KED\Services\Routing\Router; class RoutingMiddleware extends MiddlewareAbstract { public function __invoke(Request $request, Response $response, $delegate =...
true
0c93ebe68fc48d89f1342bc6d0400c367bb75f68
PHP
ingridmarleen/Cursus
/Random_draw_card.php
UTF-8
838
3.421875
3
[]
no_license
<?php function drawCard (&$deck) { // The & preceding the input indicates a variable reference $suit = array_rand($deck); $card = array_rand($deck[$suit]); // Determine the face value of the card. // Face cards are worth 10 if ($card >=10){ $card_value = 1...
true
74a69ffa825cf92b7123a7ef56c76c9e09c85d8a
PHP
Elimane-Cisse/TP_ISI
/TP3/Class/FormManager.php
UTF-8
1,931
2.921875
3
[]
no_license
<?php class FormManager{ /**@brief génère la balise &lt;form&gt;avec méthode(Post,Get) et action(url)*/ public static function beginForm($method,$action,$css_class="",$extraOptions=""){ $css_class_option=""; if(!empty($css_class)){ $css_class_option="class=\"".$css_class."\""; } return"<form method=\"".$m...
true
4273d526029456017072c1b310a03306f831922c
PHP
Niks27/InstituteAutomationSystem
/studentlist1.php
UTF-8
2,692
2.65625
3
[]
no_license
<?php require_once("crud6.php"); $crudobj = new crud; if(isset($_POST['fname']) && $_POST['fname'] != NULL) { $fName = $_POST['fname']; } else { $fName = ""; } $resultArr = $crudobj->getAllStudent($fName); ?> <html> <head> <link rel="stylesheet" type="text/css" href="css/boots...
true
c6dd3a9ed4edc25161561620062cc0a1eb0fc5f5
PHP
sowmyashree03/survey_application
/del.php
UTF-8
1,356
2.53125
3
[]
no_license
<html> <head> <?php session_start(); //starts the session if($_SESSION['user']){ // checks if the user is logged in } else{ header("location: index.php"); // redirects if user is not logged in } $user = $_SESSION['user']; //assigns user value ?> <style> tr{ text-align: ce...
true
0f6c03435fc6f61832704776a78044e3a262fa17
PHP
rafgros91/php-lesson
/createsuperglobal.php
ISO-8859-1
730
2.921875
3
[]
no_license
<?php // On dmarre la session AVANT d'crire du code HTML session_start(); // On crit un cookie setcookie('pseudo', 'RafGros', time() + 365*24*3600, null, null, false, true); // On s'amuse crer quelques variables de session dans $_SESSION $_SESSION['prenom'] = 'Raf'; $_SESSION['nom'] = 'Gros'; $_SESSION['age'] = 25; ...
true
ca469d493b4e72c29d72c37a9b7eabd128c8df04
PHP
nolimits-exchange/website
/src/AppBundle/Form/Upload.php
UTF-8
2,262
2.625
3
[ "MIT" ]
permissive
<?php namespace Thepixeldeveloper\Nolimitsexchange\AppBundle\Form; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\Validator\Constraints as Assert; /** * Class Upload * * @package Thepixeldeveloper\Nolimitsexchange\AppBundle\Form */ cl...
true
d05f4f0d1368cf07876b3708c135aa15ef5b6b93
PHP
samtarmizi/arch
/app/Console/Commands/Make/ViewCommand.php
UTF-8
2,815
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands\Make; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; class ViewCommand extends Command { /** * The filesystem instance. * * @var \Illuminate\Filesystem\Filesystem */ protected $files; /** * T...
true
32db49a145cc68cce424377930336dff62652270
PHP
opachou/FormacioPICE
/php/bdo/php i ajax/joins/getOrders.php
UTF-8
671
2.609375
3
[]
no_license
<?php $con = new mysqli("localhost", "root", "", "northwind"); $query = "SELECT o.OrderID, cu.ContactName, e.FirstName, e.LastName, o.OrderDate, o.ShippedDate FROM orders o LEFT JOIN customers cu ON o.CustomerID = cu.CustomerID LEFT JOIN employees e ON o.EmployeeID = e.EmployeeID LIMIT 10"; $resu...
true
c2517099825525d3f5ea4a1f5c044903d1d9300d
PHP
ArtiomL/f5-app-sec
/artifacts/_h5ai/private/php/ext/class-thumb.php
UTF-8
8,116
2.671875
3
[ "CC-BY-4.0", "MIT" ]
permissive
<?php class Thumb { private static $FFMPEG_CMDV = ['ffmpeg', '-ss', '0:00:10', '-i', '[SRC]', '-an', '-vframes', '1', '[DEST]']; private static $AVCONV_CMDV = ['avconv', '-ss', '0:00:10', '-i', '[SRC]', '-an', '-vframes', '1', '[DEST]']; private static $CONVERT_CMDV = ['convert', '-density', '200', '-quali...
true
cfdabc86bc94774782d6e263aa96d0e4e60158c9
PHP
muzammalrahim/esic
/hoosk/views/admin/questions/templates/subQuestion.php
UTF-8
12,390
2.609375
3
[]
no_license
<?php if(isset($subQuestion) and !empty($subQuestion)){ $questionID = $subQuestion->QuestionID; $Question = $subQuestion->Question; $Solution = $subQuestion->Solution; $type = $subQuestion->Type; $answerID = $subQuestion->AnswerID; //Also Lets fetch the Provided Solution for the SubQuestion as...
true
14ec8334a07acff393f4120379e3d395a22682b3
PHP
HotelsByDay/Infinite
/modules/form/classes/appformitem/bool.php
UTF-8
884
2.765625
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * Formularovy prvek pro vyber 1 z N pomoci jQuery UI Button * * Config parametry tohoto prvku: (? znaci nepovinne, ! znaci povinne) * !'label' => <string> ... Label elementu ve formulari * ?'free' => <bool> ... Prida polozku '-- nezvoleno --...
true
cd6de8fbc6b1e146b831bcafd3cfd93b490c765e
PHP
cmd-space/gighub
/php/classes/test/PostTagTest.php
UTF-8
13,600
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace Edu\Cnm\GigHub\PostTag\Test; use Edu\Cnm\GigHub\{OAuth, ProfileType, Profile, Tag, Venue, Post, PostTag}; use Edu\Cnm\Gighub\Test\GigHubTest; // grab the project test parameters require_once("GigHubTest.php"); // grab the class under scrutiny require_once(dirname(__DIR__) . "/autoload.php"); /** * ...
true
a39b03c4aee7871bbe098d171d38832b56f4423e
PHP
response2shiv/mlm-registration
/app/Library/SaveOn/SaveOn.php
UTF-8
1,200
2.734375
3
[]
no_license
<?php class SaveOn { private $serviceURL; private $username; private $secret; private $type; public function __construct($level, $type) { $this->type = $type; $mode = Config::get('const.save_on.mode'); $this->serviceURL = Config::get('const.save_on.' . $mode . '.serv...
true
eae94c5d8e6462d55effd7ae40e99ff055f6e254
PHP
iroQQuois/OOPLearn
/Patterns/Patterns for flexible objects/Composite/Archer.php
UTF-8
168
2.59375
3
[]
no_license
<?php namespace OOPLearn\Patterns\PatternsForFlexibleObjects; class Archer extends Unit { public function bombardStrength(): int { return 4; } }
true
dc1faaa2dd634d4f42e4afc8bac8f6ebf8ab8bd9
PHP
azure7bit/pmd
/config/Migrations/20151202074852_create_admin.php
UTF-8
2,267
2.59375
3
[]
no_license
<?php use Migrations\AbstractMigration; class CreateAdmin extends AbstractMigration { /** * Change Method. * * More information on this method is available here: * http://docs.phinx.org/en/latest/migrations.html#the-change-method * @return void */ public function change() { ...
true
e5dbae79ba2b2948d3e5d499831bd66dfd4c9dbc
PHP
hyungju-lee/php
/php200project/signUp/174-signUpSave.php
UTF-8
5,021
2.734375
3
[]
no_license
<?php // 회원가입에 성공하면 바로 세션을 생성하기 위해 171-session.php 파일을 include 합니다. include $_SERVER['DOCUMENT_ROOT'].'/php200project/common/171-session.php'; // 데이터베이스에 접속하므로 163-connection.php 파일을 include 합니다. include $_SERVER['DOCUMENT_ROOT'].'/php200project/connection/163-connection.php'; // form 태그로 받은 데이터를 변...
true
d7442099edd23866efb20a2ecb9041c720a32004
PHP
zengyuxing007/wahz_admin
/framework/3rd/ShardQuery/Net/Gearman/Job/store_resultset.php
UTF-8
5,273
2.671875
3
[]
no_license
<?php #THIS JOB INSERTS DATA DIRECTLY INTO the tmp_shard #This job also uses an unbuffered query require_once 'Net/Gearman/Job.php'; function return_error($reason, $where, $info ) { if(!empty($reason)) print_r($reason); $where=(array)$where; $err = "$reason:$info"; echo $err . "\n"; return array('error' => $err...
true
65fd8b6d2f867ea78ddf59c778a3e35cf381ef35
PHP
YouZag/msm2020
/web/modules/contrib/physical/tests/src/Unit/TemperatureTest.php
UTF-8
2,083
2.65625
3
[ "GPL-2.0-only", "MIT" ]
permissive
<?php namespace Drupal\Tests\physical\Unit; use Drupal\physical\Temperature; use Drupal\physical\TemperatureUnit; use Drupal\Tests\UnitTestCase; /** * Tests the temperature class. * * @coversDefaultClass \Drupal\physical\Temperature * @group physical */ class TemperatureTest extends UnitTestCase { /** * T...
true
92e324b2eed63ca957e9d143464835614a07832c
PHP
kamalmstp/sia-stikes-cb
/application/modules/akademik/models/Ex_course.php
UTF-8
2,946
2.59375
3
[ "Apache-2.0" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Ex_course extends CI_Model { public function __construct() { parent::__construct(); $this->load->library(array('Excel/PHPExcel')); } /** * Export Data Mata Kuliah ke Excel * * @param Array (Mata Kuliah Result) ...
true
25fde65fabdc708f15efc625586de5fa23b7c2c3
PHP
manishkhanchandani/bootstrapProject
/svnprojects/projects/bayareacontractor/admin/ask.php
UTF-8
7,154
2.515625
3
[]
no_license
<?php require_once('../../../../Connections/connBayAreaCont.php'); include('../functions.php'); $Models_General = new Models_General(); $max = 5; $page = 0; if (isset($_GET['pageNum_rsView'])) { $page = $_GET['pageNum_rsView']; } $totalRows_rsView = 0; $totalPages_rsView = 0; $maxRows_rsView = $max; $pageNum_rsVi...
true
e97e28db913f28bf7aab13f7657197fa48f17a2a
PHP
Inigopees/PruebasPHP
/ejer4.php
UTF-8
257
3.3125
3
[]
no_license
<html> <head> <title>ejer5</title> </head> <body> <?php $cadena="oho"; $cadena2= strrev($cadena); if($cadena == $cadena2){ echo "La frase es palindroma"; } else { echo "La frase no es palindroma"; } ?> </body> </html>
true
2421c7f47b4aefd09631529ce421e1e1e62861d2
PHP
aglowbuffalo/Gateway
/app/Functional/GatewayApi/GetDataGatewayApi.php
UTF-8
5,745
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Functional\GatewayApi; use Illuminate\Support\Facades\Http; use Illuminate\Http\Client\ConnectionException; use function PHPUnit\Framework\isEmpty; class GetDataGatewayApi implements IGetDataGatewayApi { // public $url = 'http://hiring.rewardgateway.net/list'; // public $userName = 'hard...
true
7788f60e83e5b8bc9e55e30c5ebaf9cd359780d8
PHP
MisakaMikoto19090/write_codes
/LeetCode/4.Median_of_Two_Sorted_Arrays/PHP/Study_Answer/ans1.php
UTF-8
3,869
3.40625
3
[]
no_license
<?php class Solution { /** * @param Integer[] $nums1 * @param Integer[] $nums2 * @return Float */ //不看呢,实现的太复杂了. function findMedianSortedArrays($nums1, $nums2) { // $c1 = count($nums1); // $c2 = count($nums2); // if ($c1 > $c2) { // return self::find...
true
1aaa93f0b2b41f35adc93b07195d246da100a14b
PHP
dfwteinos/Ministry-of-Social-Affairs
/ypakp/routes/showprofile.php
UTF-8
974
2.65625
3
[]
no_license
<?php session_start(); $con = new mysqli('localhost','root','','ypakp'); if($con-> connect_errno){ echo "failed to connect to MySQL: ", $mysqli -> connect_errno; } $con -> select_db('ypakp') or die("cannot select DB"); $user = $_SESSION['sess_user']; $query = $con -> query("SELECT * FROM users WHERE usern...
true
b50492c2b6897b3c44460dbfa426e1d02714e8e0
PHP
lancasterSano/jlife
/php/class/do/People.php
UTF-8
4,439
2.734375
3
[]
no_license
<?php require_once '.htpaths'; require_once(PROJECT_PATH."/php/class/do/QueryStorageDO.php"); require_once(PROJECT_PATH."/php/class/QueryStorage.php"); abstract class ConnectDB { ### PRIVATE METHODS ### /** * Подключение к БД. * Examples: * $DB = self::connectToDB(['social'/'do'(...
true
02b71828018ebd4731d2d8eb1edf60a12c7ec069
PHP
SvenBibbs/travel_blog
/api/files.api.php
UTF-8
1,171
3.140625
3
[]
no_license
<?php // Liest alle Dateien im uploads Verzeichnis aus $files = scandir('../uploads'); // erstellen eines Arrays was als Antwort gesendet wird $response = array(); // Füllen des Arrays mit den Datei-Informationen foreach($files as $file) { // nicht gebrauchte Pfade ignorieren if ($file != ...
true
82d0a885b1dc738ed1b4f1d02ae3fd0a67833476
PHP
Galaaxy/fewo-manager
/classes/preis.php
UTF-8
3,031
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Freddy * Date: 26.08.2017 * Time: 13:36 */ class preis{ private $id; private $wohnung_id; private $date_von; private $date_bis; private $bezeichnung; private $aufschlag; /** * @return mixed */ public function getId() { return $this->id; } /** * @return...
true
ccc11160451841f259961df1842df6ce411d1c12
PHP
Xirtor/BasicTemplate
/app/models/User.php
UTF-8
318
2.765625
3
[]
no_license
<?php use Xirtor\Web\Model; class User extends Model{ public $id; public $name; public $email; public $hash; public function passwordToHash(){ $this->hash = password_hash($this->password, PASSWORD_DEFAULT); } public function passwordVerify(){ return password_verify($this->password, $this->hash); } }
true
258d06c6a5a8eaf34daee47cf5461fb76ff79d46
PHP
hastioapps/started-laravel8
/database/migrations/2021_09_07_163006_create_tcodes_table.php
UTF-8
838
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTcodesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tcodes', functio...
true
e6c0dc6e81a4bd63bdc3493022a50b41f268c9fa
PHP
dvijetel/phplesson7
/class.php
UTF-8
2,540
2.875
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <?php //mkd...
true
724df2207fb90c001c162c8699015aa53b07edcf
PHP
MiguelClavijoDAW/PHP
/Adicionales 10/Ejercicio 1/modificar.php
UTF-8
1,832
2.828125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php try { $conexion = new PDO("mysql:host=localhost;dbname=horariophp;charset=utf8", "root", ""); } ...
true
6a7964c03cbc621f8ef42d0dcfd123b4de7629f6
PHP
ulff/phpcon-demo
/blog/src/Domain/ReadModel/Projection/PostListProjection.php
UTF-8
1,137
2.984375
3
[]
no_license
<?php namespace Domain\ReadModel\Projection; use Domain\Aggregate\AggregateId\PostId; use Domain\ReadModel\Projection; class PostListProjection implements Projection { const PROJECTION_NAME = 'post-list'; /** * @var PostId */ private $postId; /** * @var string */ public $tit...
true
c48159343a0301dd7c5491a776f00993d622923b
PHP
sergiorpleon/cupon-laravel
/database/seeds/DatabaseSeeder.php
UTF-8
1,064
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; // Hacemos uso de los modelos de nuestra aplicación use App\User; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { // $this->call(UsersTableSeeder::class); //...
true
be2b61ba1b169bdd71b521f5c6a20d181e1e1fcb
PHP
aliirfaan/laravel-simple-jwt
/src/Http/Middleware/SimpleJwtVerify.php
UTF-8
1,163
2.703125
3
[ "MIT" ]
permissive
<?php namespace aliirfaan\LaravelSimpleJwt\Http\Middleware; use Closure; use aliirfaan\LaravelSimpleJwt\Services\JwtHelperService; class SimpleJwtVerify { protected $jwtServiceInstance; public function __construct(JwtHelperService $jwtHelperService) { $this->jwtHelperService = $jwtHelperService;...
true
8a417362605a0c7d3b65b7c79c611332efcc2ef6
PHP
yeddapenequito/Machinovate
/web/agents.php
UTF-8
2,510
2.515625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="styles/bootstrap.min.css"> <link rel="stylesheet" href="styles/flag-icon-css-master/css/flag-icon.min.css"> <link rel="stylesheet" href="styles/main.css"> ...
true
ce42c8c663ee23a2808349d3b3898c473f2b8496
PHP
mst-ghi/larapool
/src/LarapoolTransaction.php
UTF-8
2,145
2.546875
3
[ "MIT" ]
permissive
<?php namespace MstGhi\Larapool; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; use MstGhi\Larapool\Traits\ModelTrait; /** * Class LarapoolTransaction * * @package MstGhi\Larapool * * @property integer $id * @property integer $user_id * @property integer $port_id * @property integer $transaction_...
true
36cf466e631b4dbd261b99205a350294551a6273
PHP
frankpaul142/optica-los-andes
/models/WorkWithUs.php
UTF-8
1,096
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "work_with_us". * * @property integer $id * @property string $name * @property string $email * @property string $phone * @property string $cv * @property string $comment */ class WorkWithUs extends \yii\db\ActiveRecord { /** ...
true
b4b669d5efe11b33cbae665a66c2854fe92f52c9
PHP
boban-dj/PhpSkelet
/Interfaces/ISingleton.php
UTF-8
243
2.796875
3
[]
no_license
<?php /** * Base interface for all singleton designed classes * * This should seems curious, but it have a sense as hint. */ interface ISingleton { /** * get instance of current singleton */ public static function getInstance(); }
true
a505f47d727c2ce19543a0a89558048c53e6f6e4
PHP
slesulvy/article
/models/category_model.php
UTF-8
1,582
2.640625
3
[]
no_license
<?php class Category_Model extends Model { public function __construct() { parent::__construct(); } public function categoryList() { $sql = 'SELECT categoryid,catename,parent_id,parent_name,langtype FROM categorys c INNER JOIN language l ON l.langid = c.langid '; ...
true
74d6b50e2973f6eb60b6218bd3db18ee56100527
PHP
GRAgmLauncher/AuthSession
/FRAMEWORK_PROTOTYPE/Framework/Meta/ClassField.php
UTF-8
609
2.953125
3
[]
no_license
<?php namespace Framework\Meta; class ClassField { public $name; public $type; public function __construct(\ReflectionProperty $property) { $this->name = $property->getName(); $this->type = $this->getType($property); $this->metaType = $this->getMetaType($this->type); } protected function getType($prope...
true
08747d6e0be79899390af7baa357a16e4166f3e7
PHP
dhaval-parekh/cipher_wp_theme
/extra_menu/display-property.php
UTF-8
5,088
2.625
3
[]
no_license
<?php /** New Short Code For Manage Property **/ /** For User Login, Sign Up, Display Property **/ add_action('init',function(){ add_shortcode('display-property','displayProperty'); }); function displayProperty(){ global $wpdb,$url,$queryStrStart; if(! isset($_GET['pid'])): $PropertyTypeAry=array('SALE','LE...
true
9cd1456dd6f69f8f0ab0a70b7f4c46773f89b741
PHP
bekaproger/task
/src/Common/helpers.php
UTF-8
3,277
2.546875
3
[]
no_license
<?php use Lil\Application; if (!function_exists('app')) { function app() { return Application::getInstance(); } } if (!function_exists('config')) { function config(string $config, $default = null) { $exploded = explode('.', $config); if (empty($exploded)) { ret...
true
2df02997f792ae8000f092bd76082a8392b6caa7
PHP
CodeAcademyDreamTeam/pizzamaker
/app/Console/Commands/CrontabBoldeMachen.php
UTF-8
950
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Console\Commands; use App\models\DTIngredients; use Carbon\Carbon; use Illuminate\Console\Command; use Illuminate\Support\Facades\Cache; class CrontabBoldeMachen extends Command { /** * The name and signature of the console command. * * @var string */ protected $signat...
true
e60d3096ae56b348c415baecfd68a5f1cd9a3b50
PHP
guaracyalima/enfil-comercial
/database/factories/ModelFactory.php
UTF-8
1,584
2.515625
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
true
cf8894d19cb753121c4c376371461004a744f8dc
PHP
MrX456/Linguagens-Diversas
/PHP/08-Laço While/ContadorReverso.php
UTF-8
224
3.75
4
[]
no_license
<?php // Contador vale 10 e vai chegar até 0 $contador = 10; while($contador >= 0) { echo $contador . "<br/>"; $contador--; //Aqui temos que diminuir o valor para chegar a 0 } ?>
true
21e187dfb8fa85005cc956f807243fec40cdeb19
PHP
FathinNashreen/TaskCGPAsystem
/taskcgpa/editsubject.php
UTF-8
2,277
2.640625
3
[]
no_license
<?php require 'config.php'; include 'header.php'; $stmt = $connection->prepare ('SELECT * FROM subject WHERE sub_id = :sub_id'); $stmt->bindValue('sub_id', $_GET['sub_id']); $stmt->execute(); $subject = $stmt->fetch(PDO::FETCH_OBJ); if (isset($_POST['edit'])) { $stmt = $connection->prepare("UPDATE s...
true
68d85c8c5aacb8807d5e1e6c338bf531781ae8ee
PHP
Tuaneyo/boardgamesApp
/app/Http/Controllers/CommentController.php
UTF-8
1,297
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Game; use Illuminate\Http\Request; use App\Comment; class CommentController extends Controller { /** * instance for storing comment * @return back * */ public function store(Request $request) { $comment = new Comment; $comment-...
true
81000d18ed052d52f2ef522d4311258a28a53ea1
PHP
harvard-library/acorn
/application/default/models/domain/functions/Counts.php
UTF-8
9,324
2.84375
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php /** * Copyright 2016 The President and Fellows of Harvard College * * 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 * *...
true
6ea0fcd8fd6004291e7e492cb00a00843899cc04
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/Util/BaseObjectExtractor.php
UTF-8
888
2.59375
3
[ "AGPL-3.0-only", "AFL-2.1", "AFL-3.0", "LicenseRef-scancode-commercial-license", "AGPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "OSL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\FunctionalTestingFramework\Test\Util; /** * Class BaseObjectExtractor */ class BaseObjectExtractor { const NODE_NAME = 'nodeName'; const NAME = 'name'; /** * BaseObjectExtracto...
true
0343e5b3aa3d559414be063f609c70ad71a9621d
PHP
brianrizqi/patriat
/app/Scheduling.php
UTF-8
1,089
2.609375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property int $division_id * @property int $place_id * @property int $periode_id * @property string $day * @property string $created_at * @property string $updated_at * @property string $deleted_at * @property Place $plac...
true
1628a7d57084697b8a0141d81cb6d0dc88055377
PHP
Zaltok/bbcontentblocks
/onepager/code/model/SliderImage.php
UTF-8
1,596
2.5625
3
[]
no_license
<?php class SliderImage extends DataObject { public static $db = array( "BackendTitle" => "Varchar(255)", "Title" => "Varchar(255)", "SortOrder" => "Int", "ShowTitleInSlide" => "Boolean" ); public static $has_one = array( "Parent" => "Page", "Image" => "Imag...
true
14830693e7ea526b02afa332198fc6c4694550df
PHP
Eviltoastey/lets-tap
/app/Http/Controllers/UserController.php
UTF-8
1,389
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\UpdateUser; use App\Http\Resources\User as UserResource; use App\Http\Resources\UserCollection; use App\Models\User; class UserController extends Controller { public function index() { $users = User::paginate(); return new UserCollec...
true
4cbcabfd320d3c54772669f58e7dc7fe5e58c88b
PHP
Leslye777/Sistema-Biblioteca-WEB
/view/telasCadastro/alterar_usuarios.php
UTF-8
1,422
2.734375
3
[]
no_license
<?php include '../controller/Usuario.php'; if(isset($_GET['id'])){ $id = $_GET['id']; $user = new Usuario(NULL, NULL, NULL, NULL, NULL, NULL, $id); $user->consultarUsuario(); } ?> <h1>Cadastro Usuário</h1> <form action="../controller/ConAlteraUsuario.php" method="POST"...
true
26fc73b0f0870c0f39027b6bb9649734b836f33d
PHP
elsayed85/bank3
/src/Http/Base/TurkeyBank.php
UTF-8
4,273
2.65625
3
[ "MIT" ]
permissive
<?php /** * Description of TurkeyBank.php * * @author Faruk Çam <mail@farukix.com> * Copyright (c) 2018 | farukix.com */ namespace elsayed85\bank3\Http\Base; use Config; use Exception; class TurkeyBank extends BaseClass { protected function process() { $HashedPassword = base64_encode(sha1(Confi...
true
3791a2850cdebf9290f6cd17924a70e989d73062
PHP
mridwansry/Tugas-PBO-XII-RPL-2
/finalprojek-uts/Views/View_siswa.php
UTF-8
3,502
2.609375
3
[]
no_license
<?php include '../Controllers/Controller_siswa.php'; // Membuat Object dari Class siswa $siswa = new Controller_siswa(); $GetSiswa = $siswa->GetData_All(); // untuk mengecek di object $siswa ada berapa banyak Property // echo var_dump($GetSiswa['nisn']); // die; ?> <div class="card border-light bg-info"> <div cl...
true
b67cdc8a1f3eafd8c11d808e981e62969db8e1eb
PHP
itcyborg/habex
/database/migrations/2018_08_02_175012_create_farmers_table.php
UTF-8
1,099
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFarmersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('farmers', funct...
true
81a5210f7947ed18df51a0ddad6a4e7a7371e615
PHP
alexander-pecherskih/bridges
/backend/tests/Builder/UserBuilder.php
UTF-8
2,913
2.875
3
[]
no_license
<?php namespace App\Tests\Builder; use App\Model\User\Entity\User; use App\Repository\UserRepository; use BadMethodCallException; use DateTimeImmutable; use Exception; use Ramsey\Uuid\UuidInterface; class UserBuilder { private UuidInterface $id; private User\Name $name; private DateTimeImmutable $created...
true
1b7b6ec115d92c351a8dbf280f66b141b1a488db
PHP
BartLaan/Mak
/Winkelwagen.php
UTF-8
13,802
2.671875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Winkelwagen - Barry's Bakery</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="opmaakmenu.css" rel="stylesheet" type="text/css" /> <link href="opmaak.css" rel="stylesheet" type="text/css" /> <link href="winkelwagen.css" rel...
true
53972c86d039e963f57fc6e7d6cb4dbcd9f5a0b7
PHP
lukikrk/php8-demo
/app/src/Domain/Entity/Address.php
UTF-8
804
3.171875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain\Entity; class Address { public function __construct( private string $street, private string $zip, private string $city, private ?string $country, ) {} public function update(string $street, string $zip, string $city, ?st...
true
1e2325e08557900efc3ea4a62629f18ac3e4b236
PHP
SimpleYangMeng/tianjin_oms
/application/models/Service/ShippingMethod.php
UTF-8
5,429
2.734375
3
[]
no_license
<?php class Service_ShippingMethod { /** * @var null */ public static $_modelClass = null; /** * @return Table_ShippingMethod|null */ public static function getModelInstance() { if (is_null(self::$_modelClass)) { self::$_modelClass = new Table_S...
true
7f35507d2607ec15cb527fd0aed658e7ce0a6428
PHP
blueren/Blueframework
/views/RssView.php
BIG5
858
3.140625
3
[]
no_license
<?php // X RSS 榡e class RssView extends View { // ഫ RSS e public function fetch() { $xml = ''; $xml .= '<' . '?xml version="1.0" encoding="utf-8"?' . '>' . "\n"; $xml .= '<rss version="2.0">'; $xml .= '<channel>'; $xml .= '<title>TEST</title>'; $xml .= '<descr...
true
514678e821d2bd781a9ffa0f565861e993a1cdec
PHP
theemfs/sd
/app/User.php
UTF-8
4,227
2.515625
3
[]
no_license
<?php namespace App; // use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\SoftDeletes; // class User extends Authenticatable use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Au...
true
dc1a13d7f607b9ed6be37ce41f2176ef4a7cc9e7
PHP
gulch/inventarico
/database/migrations/2016_09_06_201206_create_operation_table.php
UTF-8
1,099
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateOperationTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Operation', f...
true
745bcf8383886793c7d4de38bc814290d58bd900
PHP
coderbyheart/dothiv
/src/Dothiv/PayitforwardBundle/Repository/OrderRepositoryInterface.php
UTF-8
1,074
2.640625
3
[]
no_license
<?php namespace Dothiv\PayitforwardBundle\Repository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Persistence\ObjectRepository; use Dothiv\PayitforwardBundle\Entity\Order; use Dothiv\PayitforwardBundle\Exception\EntityNotFoundException; use Dothiv\PayitforwardBundle\Exception\InvalidArgumentE...
true
a9c72b2314579141e641e818107b583445d8fd5b
PHP
keitepassos/sistema-gerenciador-de-fluxo-de-trabalho
/src/Entity/tarefas.php
UTF-8
827
2.90625
3
[]
no_license
<?php namespace SysFlow\Entity; /** * @Entity * @Table(name="tarefas") */ class Tarefas { /** * @Id * @GeneratedValue * @Column(type="integer") */ private $id; /** * @Column(type="string") */ private $titulo; /** * @Column(type="string") */ private $tip...
true
bdbf20a22d6fed0227394bf9558cfa0ef4d84fa6
PHP
dusterio/link-preview
/src/Contracts/ReaderInterface.php
UTF-8
385
2.625
3
[ "MIT" ]
permissive
<?php namespace Dusterio\LinkPreview\Contracts; /** * Interface ReaderInterface * @codeCoverageIgnore */ interface ReaderInterface { /** * @param LinkInterface $link * @return LinkInterface */ public function readLink(LinkInterface $link); /** * @param array $parameters * @ret...
true
bc7c2e47b0fc8892d02b829e84e22ab0a9b51839
PHP
itohin/project-lvl1-s426
/src/Games/IsPrime.php
UTF-8
617
3.546875
4
[]
no_license
<?php namespace BrainGames\Games\IsPrime; use function BrainGames\Kernel\game; const TASK_OF_GAME = 'Answer "yes" if given number is prime. Otherwise answer "no".'; function run() { $getGameData = function () { $question = rand(1, 50); $correct = isPrime($question) ? 'yes' : 'no'; retur...
true
79e0479f3fe2e85842f7ea1223b3ca4b5b100b04
PHP
Dylan-Canty/Medi-Web
/php/mail.php
UTF-8
823
2.59375
3
[]
no_license
<?php require "PHPMailer/PHPMailerAutoload.php"; function smtpmailer($to, $from, $from_name, $subject, $body) { $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'ssl'; $mail->Host = 'mail.olivemed.co.ke'; $mail->Port = 465; ...
true
bc14fffb4caa0b0fd5142dd1c9371fd4c70efd1c
PHP
RStephanGaudefroy/Symfony4-Librairie
/src/Controller/BookController.php
UTF-8
1,143
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use App\Repository\BooksRepository; use App\Entity\Books; class BookController extends AbstractController { /** * @...
true
1e1cf8e3b8602d72c127cd9e1905a4c2dfd0d799
PHP
Zeanger/Diplomarbeit-Forstinger
/Diplomarbeit/php/deleteStation.php
UTF-8
475
2.625
3
[]
no_license
<?php include "connect.php"; $sql = "SELECT `databaseName` FROM `stations` WHERE `Id` =".$_POST["Id"]; $sql2 = "DELETE FROM `stations` WHERE `Id` =".$_POST["Id"]; $tablename; if($tablename = $conn->query($sql)) { if($conn->query($sql2)) { echo "success"; $conn->query("DROP TABLE ".$tablename...
true
9b80e206b5638ebb7cb0417652e2f4ab40b7dd51
PHP
ese-omene/BratPackDCS
/contact_add.php
UTF-8
6,166
3.03125
3
[]
no_license
<?php include "includes/header.php"; require_once 'Classes/Database.php'; require_once 'Classes/Contact.php'; // first we make sure that the user is a parent so they have access to this page if ($_SESSION['userinfo']['type'] !== 'parent'){ header('Location: index.php'); } $firstnameerr = $lastnameerr = $emailerr ...
true
cf9dff92f8561252e208cbbf4ddca3d252a04ae5
PHP
elhumilde/crm_prod
/lib/helper/exportExcelHelper.php
UTF-8
1,853
3
3
[]
no_license
<?php /** * Convertir le text BBCode en HTML Code. * * @param string $bbcodeText * @return string html code */ function exportArrayToExcel($values, $nbColumns) { $objPHPExcel = new sfPhpExcel(); // Set properties $objPHPExcel->getProperties()->setCreator("Maarten Balliauw"); $objPHPExcel->getProperties()-...
true
84dc401d7938455248cd6cc037936a0c5a65dfeb
PHP
HanshenWang586/Summer2016
/Module/includes/classes/class_URI.php
UTF-8
245
2.875
3
[]
no_license
<?php class URI { /** * @return string The whole URI */ public function getURIString() { return $_SERVER['PHP_SELF']; } /** * @return string The host (CNAME) */ public function getHost() { return $_SERVER['HTTP_HOST']; } } ?>
true
e64af98fb972ab6fdad276cd5334b0ac3d868c00
PHP
frontendvn/wp-theme
/mountain/includes/vendor/options-plus/options/control/dimension.php
UTF-8
1,223
2.75
3
[]
no_license
<?php /** * WARNING: This file is part of the OptionsPlus library. DO NOT edit * this file under any circumstances. */ namespace OptionsPlus\Options\Control; /** * Prevent direct access to this file */ defined( 'ABSPATH' ) or die(); /** * This class will be present an dimension control */ class Dimension exte...
true
5642a9b623cf1ede8c0ba9842706e5bc7efcbd87
PHP
nurast/timetable
/lib/form/doctrine/base/BaseCycleTeacherForm.class.php
UTF-8
1,970
2.546875
3
[]
no_license
<?php /** * CycleTeacher form base class. * * @method CycleTeacher getObject() Returns the current form's model object * * @package timetable * @subpackage form * @author Your name here * @version SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $ */ abstract c...
true
3a5d204ff1f256a2c667fda17dc0b7f22d7726af
PHP
Aplyca/apllistings
/classes/post/Promotion.php
UTF-8
2,118
2.609375
3
[]
no_license
<?php class Promotion { var $object; private function __construct($postingObject) { $this->object = $postingObject; } static function instance($objectID) { $postingObject = self::checkPromotion($objectID); if($postingObject) { return new Promotion($postingObject); } ...
true
4f63ff3e7468bba4e3159fca3ef58af5aa354fe7
PHP
MahmoudHozayen/eCommerce-website
/admin/comments.php
UTF-8
7,884
2.546875
3
[]
no_license
<?php ob_start(); //output buffring Start session_start(); $pageTitle = 'Comments'; if (isset($_SESSION['username'])) { include 'init.php'; $goTo = ''; if (isset($_GET['goTo'])) { $goTo = $_GET['goTo']; } else { $goTo = 'Mange'; } // Manage Comments Page if ($goTo == 'Mange') { ...
true
53fcb18d2aeabb87762a723eaf56fc4fcf27e2c3
PHP
LisaCee/gutenberg_blocks
/plugin.php
UTF-8
2,256
2.5625
3
[]
no_license
<?php /** * Plugin Name: mytheme-blocks * Author: LisaCee * Author URI: https://lisacanini.com */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Adds a category to the block listings * * @param array $categories An array of exisiting block listing categories. * @param object $post My post. * * @return arra...
true
8c82a8d1cb7a64fd4d5237d65f9a65e21c1d717f
PHP
karol-wolski/Systemy-Internetowe-projekt
/admin/updatepermissions.php
UTF-8
965
2.515625
3
[]
no_license
<?php session_start(); // Dołączenie pliku z danymi bazy danych require_once "db.php"; // Połaczenie z bazą danych // @ nie wyświetli nam błędów $connect = @new mysqli($db_host, $db_login, $db_pass, $db_name); // Jeśli połączenie zawiera błędy if($connect->connect_errno == TRUE) { echo "Error: " . $conn...
true
51ae33d1fe901bd705cf4efbb8774f9c6649fa3b
PHP
asaadhoussam/pvm
/src/ProcessStorage.php
UTF-8
540
2.90625
3
[ "MIT" ]
permissive
<?php namespace Formapro\Pvm; interface ProcessStorage { /** * @param Process $process */ public function persist(Process $process): void; /** * @param string $id * * @throw \LogicException if there is no such process * * @return Process */ public function get(...
true
f1d1bd61fc75bb857cf020f8d9e49836ae93b872
PHP
Georgi5204/php_20_21
/01_PHP_1/15_php_sessions/DEMOS/conditional_input_print/final.php
UTF-8
553
2.75
3
[]
no_license
<?php session_start(); // echo "<p>Your session ID is ".session_id().".</p>"; //echo $_SESSION['user_name']; var_dump( $_POST ); if( $_POST['answer'] == '1' ){ $_SESSION['game_result'] += 1; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,...
true
2710b430b448bd0dc91d334b881ebdb75ecd8e16
PHP
large-frye/TrinityServer
/app/Models/Inspection.php
UTF-8
5,079
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: andrewfrye * Date: 2/22/16 * Time: 8:11 PM */ namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\QueryException; use Illuminate\Support\Facades\DB; use Aws\S3\S3Client; use Illuminate\Support\Facades\Input; use League\Flysystem\Exce...
true
fa362a59db9725655aa7c785ec228fad62137c43
PHP
P79N6A/sosoframework
/superphp/SOSO/Base/Util/JsonQuery.php
GB18030
2,954
2.9375
3
[]
no_license
<?php /** * @author beatashao * @version 0.0.0.1 2009-06-07 * * json ڵѡ * follow the methods of DomQuery :) * * @todo * 1. * * Ŀǰֵ֧ѡ * ѡڵʱҪָڵѡ· * [] ÿ·[]ָ * ijһ·ʱ,[NUMERIC]ʾ * ⼶·һǶkeyֵ[$key]ʾ * */ class SOSO_Base_Util_JsonQuery { const NUMERIC ='NUMERIC'; /** ...
true
0a7e2b9783b7d198441be59c420c6b01f91c6fab
PHP
sanjinc/framework
/library/Webiny/Component/Security/User/UserProviderInterface.php
UTF-8
872
2.515625
3
[]
no_license
<?php /** * Webiny Framework (http://www.webiny.com/framework) * * @link http://www.webiny.com/wf-snv for the canonical source repository * @copyright Copyright (c) 2009-2013 Webiny LTD. (http://www.webiny.com) * @license http://www.webiny.com/framework/license */ namespace Webiny\Component\Security\User;...
true
767b3624455a363f9bb98fb4ae2e1401328032a8
PHP
lck3nny/WebPractice
/php/www/loops.php
UTF-8
653
4.625
5
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Loops</title> </head> <body> <h1>Loops</h1> <hr> <?php // while loops check the condition first and execute second $index = 1; while($index <= 5){ echo "$index <br>"; $index ++; } echo "<br>"; // do while loops execu...
true
fe871658d7343512dc606f6cd2b379835f920e34
PHP
wfmelamin/refer2micro
/basic/models/MicroReferral.php
UTF-8
11,234
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\web\UploadedFile; use yii\helpers\FileHelper; /** * This is the model class for table "micro_referrals". * * @property integer $id * @property integer $patient_id * @property integer $specialty_id * @property string $ward * @property string $team_bleeps * @propert...
true
df39db6bc98ecbe7a15b1ea82443717ff5636f2c
PHP
ztepsic/myrdngs
/application/libraries/__system/settings/Settings.php
UTF-8
2,029
2.796875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once ("GeneralSettings.php"); class Settings { // ################################# // ###### MEMBERS ##### BEGIN ###### // ################################# /** * Opcenite konfuguracijske postavke *...
true
0acab18895b5b3bb4efe6961ac30dcfb5736435f
PHP
FilippMuffin/stock
/src/AppBundle/Entity/Shift.php
UTF-8
2,342
2.5625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: muffin * Date: 01.08.18 * Time: 15:41 */ namespace AppBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Class Shift * @package AppBundle\Entity * @ORM\Entity() ...
true
9536e434afc322128dcbf0d88354452ef75b232d
PHP
lwmarketer/customersizefee
/Observer/SalesOrderCustomerSzieFeeObserver.php
UTF-8
1,632
2.515625
3
[ "MIT" ]
permissive
<?php namespace Lovevox\CustomerSizeFee\Observer; class SalesOrderCustomerSzieFeeObserver implements \Magento\Framework\Event\ObserverInterface { protected $quoteRepository; protected $objectManager; protected $logger; /** * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurren...
true
55e0fce002be646f13cd34c95ee4113ee582a2d6
PHP
josenicomaia/SimpleDomainRedir
/src/Domain/Dns/ServerDiscover.php
UTF-8
2,270
2.75
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace SimpleDomainRedir\Domain\Dns; /** * Description of Discover * * @author José Nicodemos Maia Neto<jose at nicomaia...
true
498d1cf6e4ca23a8064d1ad0e79b5a445fba0cd1
PHP
jonnylow/CrowdSourcingApplicationWeb
/database/migrations/2014_10_12_000004_create_elderly_table.php
UTF-8
1,399
2.65625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; /** * Migration that creates the elderly table in the database. */ class CreateElderlyTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { S...
true
1e7190437db2714a629096874cff0652d3207c2a
PHP
OleVik/grav-plugin-imgcaptions
/vendor/rawr/t-regx/src/TRegx/SafeRegex/Constants/Constants.php
UTF-8
461
2.71875
3
[ "MIT" ]
permissive
<?php namespace TRegx\SafeRegex\Constants; use function array_key_exists; abstract class Constants { public function getConstant(int $error): string { $constants = $this->getConstants(); if (array_key_exists($error, $constants)) { return $constants[$error]; } return...
true
75f8cf07eaf71ebc705f7135e32da450e41d5b9c
PHP
mkpeacock/IckleMVC
/src/private/IckleMVC/Registry/Database/MySQL.php
UTF-8
6,210
3.15625
3
[]
no_license
<?php namespace IckleMVC\Registry; /** * Ickle MVC MySQL Database Library * * @author Michael Peacock * @copyright IckleMVC * @package IckleMVC/Registry * @subpackage Registry */ class Database_MySQL extends Database_Database { /** * Construct our database object */ public function __construct( Ic...
true
a7a57b76adaa4ac0ca33d532b4c9cb6de4deecd6
PHP
AndieRoche/blog-cms
/index.php
UTF-8
1,015
2.734375
3
[]
no_license
<?php include 'header.php'; ?> <?php function getPostTitlesFromDatabase() { // Get all the post titles from the posts table include_once 'db_connect.php'; $sql = "SELECT title FROM blog_posts"; $result = mysqli_query($conn, $sql); // Get each result row as an assoc array, then add title to $postTitle...
true
19fdad11d5476e5ae8c397b7d900780a24540df3
PHP
1stborn/ellipsis
/src/auth.php
UTF-8
1,310
2.6875
3
[]
no_license
<?php namespace Ellipsis; use Corpus\Config; use Corpus\Session; use GuzzleHttp\Client; /** * Class Auth * * @property Client http * @property DB db * @property Session session * * @package Ellipsis */ abstract class Auth extends Di { abstract public function authorize($key, $provider); abstract publi...
true