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
90d1bbd8e02648f92e79d5c065d18b3e817bcd9b
PHP
edenramoneda/design_patterns
/answer3/ImageFactory.php
UTF-8
470
2.8125
3
[]
no_license
<?php class ImageFactory { public function handler(string $check_extension) : processImageInterface { switch ($check_extension) { case 'jpg': return new JpgImage(); case 'png': return new PngImage(); // case 'gif': // return new...
true
11d1da5e9934c5ca79daf37c772822fc25b8999c
PHP
halfvector/bugvote.com
/app/ViewModels/Components/SourceUrl.php
UTF-8
617
2.921875
3
[]
no_license
<?php namespace Bugvote\ViewModels\Components; class SourceUrl { protected $userSignatureKey; public $url; public $signature; function __construct($userId) { $this->userSignatureKey = "userId=$userId signature"; $this->url = urlencode($_SERVER['REQUEST_URI']); $this->signature = hash_hmac('md...
true
6488bfd39d998d148fcb1f2635d78fbce495a62b
PHP
Cleanse/events
/components/Event.php
UTF-8
1,376
2.59375
3
[]
no_license
<?php namespace Cleanse\Event\Components; use Redirect; use Cms\Classes\ComponentBase; use Cleanse\Event\Models\Event as EventModel; class Event extends ComponentBase { private $event; public function componentDetails() { return [ 'name' => 'View Event', 'description' =>...
true
b10b0829f364de287ae7a80b596cdc8670f9787d
PHP
paigeruten/viewsourcecode.org
/include/bbcode.php
UTF-8
1,017
3.390625
3
[]
no_license
<?php /* bbcode.php * * Changes a BBCode string into HTML. */ function bbcode($text) { // Make sure the browser doesn't display user-posted HTML. $text = htmlentities($text); // BBCode $bbcodes = array( '/\[b\](.*?)\[\/b\]/' => '<strong>$1</strong>', '/\[i\](.*?)\[\/i\]/' => '<em>$1</em>', '/\[u\](.*?)\...
true
b09caea4c5ff1bde4c96f3432ad04513c4c3b239
PHP
bjorno43/Bobsbotty
/bobsbotty/process.php
UTF-8
5,384
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once '../settings.php'; require_once '../pdo.class.php'; $db = new Database; if($_SERVER['REQUEST_METHOD'] === 'POST'){ $error = false; $errors = array(); $url = 'https://www.google.com/recaptc...
true
496a48cc7e955a9497db7dbff142d1735cc99441
PHP
belcacomponents/FInfo
/src/FileExplorer.php
UTF-8
15,523
2.890625
3
[ "MIT" ]
permissive
<?php namespace Belca\FInfo; /** * Абстрактный класс для реализации классов извлекающего или генерирующего значения * свойств файла. */ abstract class FileExplorer { const INFO_VIRTUAL_PROPERTIES = 0; const INFO_METHODS = 1; const INFO_PROPERTIES = 2; /** * Список поддерживаемых типов файлов....
true
8c668b4b06e635c8f3a8b0b1629999087e7090e0
PHP
mogambo100/ExpenseManagement
/application/models/user.php
UTF-8
6,524
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class User extends CI_Model{ public function __construct() { parent::__construct(); $this->load->database(); } function getUsers($type) { $query=$this->db->query("select * from user where type='$type'"); $data=array(); $record=$query->result_array(); return $record; } function sea...
true
ec69bf533e81ebc1d3d6d6e50971b00dfb83db67
PHP
itexpertsbv/klippa
/src/ParsedDocument/Barcode/Barcode.php
UTF-8
250
2.65625
3
[ "MIT" ]
permissive
<?php namespace ITExperts\Klippa\ParsedDocument\Barcode; class Barcode { /** * @param Type $type * @param string $barcode */ public function __construct( readonly Type $type, readonly string $barcode ){} }
true
a3910f6a98592d01861d82270c70216ed9b054ae
PHP
kokcito13/vinylka
/application/modules/admin/views/helpers/CutImageUrl.php
UTF-8
759
2.734375
3
[]
no_license
<?php class Zend_View_Helper_CutImageUrl { const TYPE_LOGO = 1; const TYPE_LOGO_WIDTH = 122; const TYPE_LOGO_HEIGHT = 86; const TYPE_PHOTO = 2; const TYPE_PHOTO_WIDTH = 150; const TYPE_PHOTO_HEIGHT = 150; public function CutImageUrl($path,$type,$unique = true) { $url = '/image.php?'; switch ($type) { ...
true
9ae3741c30bb1031d6f55a9a679f61603d2a3866
PHP
LinioIT/seller-center-sdk
/src/Factory/Xml/Category/CategoryFactory.php
UTF-8
1,222
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Linio\SellerCenter\Factory\Xml\Category; use Linio\SellerCenter\Exception\InvalidXmlStructureException; use Linio\SellerCenter\Model\Category\Category; use SimpleXMLElement; class CategoryFactory { public static function make(SimpleXMLElement $xml): Category { ...
true
fe1f27316f99a419337bbb091b977ad2e2127466
PHP
owsiakl/etl-transformer
/src/Flow/ETL/Transformer/ArrayUnpackTransformer.php
UTF-8
1,945
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Flow\ETL\Transformer; use Flow\ETL\Exception\RuntimeException; use Flow\ETL\Row; use Flow\ETL\Rows; use Flow\ETL\Transformer; use Flow\ETL\Transformer\Factory\NativeEntryFactory; /** * @psalm-immutable */ final class ArrayUnpackTransformer implements Transformer { priv...
true
e5ab5ceeb6b950f98e0b20abaed33c22b96bbd94
PHP
zodream/image
/src/Node/BoxNode.php
UTF-8
9,150
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Zodream\Image\Node; use Zodream\Image\Adapters\ImageAdapter; use Zodream\Image\Base\Box; use Zodream\Image\Base\Point; use Zodream\Image\Image; use Zodream\Image\ImageManager; class BoxNode extends BaseNode { /** * @var BaseNode[] */ protected array $childre...
true
4c3818c9bcd8bd85cc30b3e817c6bd045937c136
PHP
tgbv/m5route
/m5/Registry/Controllers.php
UTF-8
411
2.78125
3
[]
no_license
<?php namespace M5\Registry; class Controllers extends Records { public static function create(&$str) : bool { if(self::exists($str)) return false; parent::$M5_CONTROLLERS[count(parent::$M5_CONTROLLERS)+1] = $value; return true; } private static function exists(&$str) : bool { foreach(parent::$M5_C...
true
afde75d7c22f223799ceeaa6a5a4a2f029358e40
PHP
larryu/cpm
/app/controllers/ScheduleController.php
UTF-8
9,092
2.609375
3
[ "MIT" ]
permissive
<?php class ScheduleController extends \BaseController { /** * get a schedule for a default degree course * @param Turn $turn [description] * @return [type] [description] */ public function getDefaultSchedule(Turn $turn) { $specialistregulation = Specialistregulation::first(); $this->setSche...
true
9a797543b609bda4eaafa078a4ef8bc11c48156c
PHP
stevebosworth/ProjectCumulus
/include/section-admin.inc.php
UTF-8
2,130
2.984375
3
[ "MIT" ]
permissive
<?php function my_autoloader($class){ require "../classes/". $class . ".class.php"; } spl_autoload_register('my_autoloader'); //Get Books by Law_id if(isset($_POST['law_id'])) { $law_id = $_POST['law_id']; $book_class = new BookDB(); $arr_books = $book_class->selBooksByLawID($law_id); echo "<op...
true
7b542704a9594351017b4b4fbb3ff3e8805f8b7f
PHP
github188/demodemo
/other_projects/littlefun/yun4demo/code/protected/action/IndexAction.class.php
UTF-8
382
2.59375
3
[]
no_license
<?php class IndexAction extends Action{ public function __construct(){ parent::__construct(); } public function index(){ $welcome = 'Welcome to YunPHP'; $school = array('北京师范大学','北京大学','清华大学','人民大学'); $this->assign('welcome',$welcome); $this->assign('school',$school); $this->display('index...
true
c6a57b9e4fb5ee146ac0097b797fb0797b346878
PHP
asu-ke-web-services/ecologyexplorers
/app/Model/BruchidSpecimen.php
UTF-8
459
2.53125
3
[]
no_license
<?php App::uses('AppModel', 'Model'); /** * BruchidSpecimen Model * */ class BruchidSpecimen extends AppModel { public $actsAs = array('Containable'); public $belongsTo = array( 'BruchidSample' => array( 'className' => 'BruchidSample', 'foreignKey' => 'bruchid_sample_id', ) ); //Saving the ...
true
1b1f7027c2f349fc6ed80d35b0c20aa1e0da518d
PHP
wdmg/yii2-tickets
/migrations/m190103_224518_tickets.php
UTF-8
3,425
2.515625
3
[ "MIT" ]
permissive
<?php use yii\db\Migration; /** * Class m190103_224518_tickets */ class m190103_224518_tickets extends Migration { /** * {@inheritdoc} */ public function safeUp() { $tableOptions = null; if ($this->db->driverName === 'mysql') { $tableOptions = 'CHARACTER SET utf8 CO...
true
4d9c0254467c585f9b95008b8f72d75b66df4463
PHP
guillenvd/NewEscolaresPi
/dist/php/conexion.php
UTF-8
822
2.671875
3
[]
no_license
<?php header('Content-type: text/plain; charset=utf-8'); date_default_timezone_set('America/Tijuana'); function getEstado($value) { switch ((int)$value) { case 1: return 'En espera'; case 2: return 'Atendido'; case 3: return 'No se presentó'; } } /* $host = '31.220.1...
true
509f4d2c7b1b29b5b4acf6690e536cebc753c11d
PHP
babarinde/tripod-php
/src/mongo/jobs/EnsureIndexes.class.php
UTF-8
2,995
2.640625
3
[ "MIT" ]
permissive
<?php namespace Tripod\Mongo\Jobs; /** * Class EnsureIndexes * @package Tripod\Mongo\Jobs */ class EnsureIndexes extends JobBase { const STORENAME_KEY = 'storeName'; const REINDEX_KEY = 'reindex'; const BACKGROUND_KEY = 'background'; /** * Runs the EnsureIndexes Job * @throws \Excep...
true
9d81d190f5161c28b1f28da1f577a9ace7213f15
PHP
evertondewes/ads_poo_2021_2
/aula10Aimais2/Cachorro.php
UTF-8
263
3.234375
3
[]
no_license
<?php require_once 'Animal.php'; class Cachorro extends Animal { public $raca; public $canil; public function latir() { echo 'au au au' . PHP_EOL; } public function marcarTerritorio() { echo 'mijando!! ' . PHP_EOL; } }
true
0167f6856ce2a55306f6e86d07906d83239f7cfc
PHP
cybercog/smart_hh2
/common/models/Offer.php
UTF-8
1,490
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "offer". * * @property integer $id * @property integer $performer_id * @property integer $ticket_id * @property integer $stage * * @property Ticket $ticket * @property User $performer * @property OfferHistory[] $offerHistories ...
true
f84cd3f0d28d0ac936d9a295b4df017f55ce2487
PHP
Serrjik/WD05-project-grigorovich
/www/libs/functions.php
UTF-8
5,603
3.140625
3
[]
no_license
<?php function isAdmin(){ $result = false; if (isset($_SESSION['logged_user']) && $_SESSION['role'] == 'admin' ) { $result = true; } return $result; } function isLoggedIn(){ $result = false; if ( isset($_SESSION['logged_user']) ) { $result = true; } return $result; } function rus_date() { // Перевод $t...
true
3b7a6080cf6395707ed50017f74ebe3f6ad218ff
PHP
ladinasedera/php-cfonb-afbnorme
/src/Factory/CFONBFactory.php
UTF-8
1,339
2.9375
3
[]
no_license
<?php /** * Copyright (c) - 2020 : Ladina Sedera * http://ladina.fitiavana.mg */ namespace Ladina\Factory; use Ladina\CFONB\AFB160; use Ladina\CFONB\AFB320; use Library\Exception\InvalidArgumentException; /** * Class CFONBFactory * @package Ladina\Factory */ class CFONBFactory { /** * Genera...
true
0596636781d875e53160d08f1c2bb33b3cb26591
PHP
y850830/assessmentTojs
/application/models/LoadingData.php
UTF-8
4,042
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * */ class LoadingData extends CI_Model { function __construct() { parent::__construct(); $this->load->database(); } function index(){ } public function getDrillmaster(){ $sitename = $_SES...
true
ea82ef5f47d95db08776bc5edfa2fec40b718319
PHP
BackupTheBerlios/urulu-svn
/trunk/xqdb/item/document.php
UTF-8
1,110
3.625
4
[]
no_license
<?PHP /* Dokumentknoten */ class Document { /* URI des Dokuments */ var $documentURI; /* String-Wert des Dokumentknotens */ var $stringValue; /* Type des Dokumentknoten */ var $typeName; /* Wert des Dokumentknotens */ var $typedValue; /* Konstruktor string $documentURI: URI des Dokum...
true
7c03cbf2e29e56caef191bbebe8f8a035253ecd7
PHP
ctgboy2010/phpCRUD_AppsKW
/academicForm/index.php
UTF-8
6,142
2.8125
3
[]
no_license
<?php /* NEW.PHP Allows user to create a new entry in the database */ // creates the new record form // since this form is used multiple times in this file, I have made it a function that is easily reusable function renderForm($level, $exam, $subject, $institute, $type, $result, $scale, $year, $duration, $a...
true
a264544b640eb535d43383cd904dce333236d6dd
PHP
mudasar187/WebprojectPRO101
/controller/event.php
UTF-8
539
2.6875
3
[]
no_license
<?php include '../connection/config.php'; /*Assign the values to variables */ extract($_POST); /* Insert query to add event */ $sql = "INSERT INTO events (user_id,name,location,date,time,description,created,updated) VALUES ('".$_SESSION['user_id']."', '".$name."', '".$location."','".$date."','".$time."','".$de...
true
24f8217e17dac1d4e9afab45d240a64c1323b895
PHP
harsh91/PHP
/04_mysqldatabase/Animal.php
UTF-8
3,729
3.578125
4
[]
no_license
<?php class Animal { private $petname, $age, $city, $id; public function __construct($petname, $age, $city, $id = 0) { $this->petname = $petname; $this->age = $age; $this->city = $city; $this->id = $id; } public functio...
true
68a06eb208de6cbc10fd4cd5de63885e2e4ba0be
PHP
alex7198/Developpement-web
/Projet/DAL/NewsGateway.php
UTF-8
2,847
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: alex * Date: 22/11/17 * Time: 00:12 */ class NewsGateway { private $con; public function __construct(Connection $c) { $this->con = $c; } public function insert_news($titre, $description, $lien, $guid, $datepubli, $flux):string { $q...
true
d294e4f147015392439e5ed97a8e44d7195e62ac
PHP
batistajon/learning
/loops.php
UTF-8
1,031
3.375
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>loops</title> </head> <body> <?php $registros = array( array('titulo' => 'Título notícia 1', 'conteudo' => 'conteudo 1'), array('titulo' ...
true
63f3cc36d21ef56f1de5b3390559215b56d6be58
PHP
evelycafe/exerciciosOO
/exercicios/classeCalculadora.php
UTF-8
847
3.71875
4
[]
no_license
<?php class Calculadora { private $op1; private $op2; private $resultado; private function soma() { $this->$resultado = $this->$op1 + $this->$op2; } private function subtracao() { $this->$resultado = $this->$op1 - $this->$op2; } private function multiplicacao() { $this->$resul...
true
983ada00ff3aab9ff0e224c1ed6fca03b3daf2dc
PHP
khadiza40/PHP
/Day02/SwitchCase.php
UTF-8
308
2.828125
3
[]
no_license
<!-- SwitchCase.php --> <?php switch ('Green'){ case 'Red': echo "Apple is Red!"; break; case 'Green': echo "Mango is Green!"; break; case 'Yellow': echo "Banana is Yellow"; break; case 'Black': echo "BlackBerry is Black"; break; default: echo "Fruits are Healthy!"; } ?>
true
d63ff9858265f33293fcbca8a62ea7e904a316df
PHP
RamajAlaa5/KForms
/includes/forms/inputtypes/fields/password.php
UTF-8
1,037
2.71875
3
[]
no_license
<?php class password extends KFields { protected $inputmode; protected $oninput; protected $onchange; protected $onselect; public function __construct( array $attributes = [] ) { parent::__construct($attributes); parent::setType('password'); $this->setPattren('^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]...
true
da7f478c5af7ab065f00b26d203fd00dd86b9254
PHP
TheHiddenHaku/gigsmanager
/app/Controller/PlayersController.php
UTF-8
2,170
2.6875
3
[ "MIT" ]
permissive
<?php class PlayersController extends AppController { public $helpers = array('Html', 'Form', 'Session', 'Time'); public $components = array('Session', 'Paginator'); public $paginate = array( 'limit' => 20, 'order' => array( 'Player.surname' => 'asc' ) ); public ...
true
a5c9a142cda3f3e684ca2d234632531596988e88
PHP
strongknit/file-reader
/src/AbstractFile.php
UTF-8
3,645
3
3
[ "MIT" ]
permissive
<?php namespace Strongknit\FileReader; use Iterator; /** * Class AbstractFile * @package ShiptorRussiaBundle\DataImporter\File */ abstract class AbstractFile implements Iterator, \Countable { /** @var array $data */ protected $data; /** @var array $metaData */ protected $metaData; /** @var s...
true
5c3eb822877daa60a10239fff693fd101feff940
PHP
meloncut/laravel-alilog
/src/AliCloudLogProvider.php
UTF-8
1,855
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dizzylee * Date: 2019/10/17 * Time: 3:42 PM */ namespace Meloncut\AliLog; use Illuminate\Contracts\Foundation\Application; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Config; use Monolog\Logger; class AliCloudLogProvider extends ServiceProvider...
true
3e685e18bd40ecded55dd22c207705c32db70602
PHP
duzymaju/simple-database
/src/Structure/Table.php
UTF-8
5,411
3.265625
3
[]
no_license
<?php namespace SimpleDatabase\Structure; class Table { /** @var string */ private $name; /** @var Field[] */ private $fields = []; /** @var Field|null */ private $autoIncrementedField; /** * Construct * * @param string $name name */ public function __construct($...
true
8c87b95a478925ee133b059af3cd188ef93cda90
PHP
MarcHoutreille/Freshshop-PHP-Integration
/classes/usersview.class.php
UTF-8
480
2.859375
3
[]
no_license
<?php // USERS VIEW class UsersView extends Users { public function showUser($name) { $results = $this->getUserInfo($name); echo "Name : " . $results[0]['firstname'] . " " . $results[0]['lastname']; } public function userAlreadyExists($email) { $results = $this->availableCheck($...
true
4546df5cbf797428b3f089c6f31c8089b70282e3
PHP
ck99/kurses
/src/UIComponent/Tabs/TabsManager.php
UTF-8
2,864
2.703125
3
[]
no_license
<?php /** * TabsManager.php * @author ciaran * @date 11/07/14 16:22 * */ namespace Kurses\UIComponent\Tabs; use Kurses\Event\KeyboardEvent; use Kurses\Panel; use Kurses\ScrollingList; use Kurses\Window; class TabsManager { protected $tabs; protected $screen; protected $rows; protected $cols; ...
true
8749440d4104f6aaef15c7a91f1762072cbf5f6a
PHP
guittex/BD
/library/sql/Oracle.php
UTF-8
10,649
2.75
3
[]
no_license
<?php class Oracle extends Database { public function allowed() { return true; } public function auto_set($mixed) { // VIEW --> BD if (assigned($mixed)) { $mixed = trim($mixed); if (strpos($mixed, ',') !== false && strpos($mix...
true
11557752ea00154f41d0b04d5faeef0f786cc9e2
PHP
widmogrod/kontorx
/KontorX/Validate/Form/RequiredOther.php
UTF-8
3,083
3.09375
3
[]
no_license
<?php require_once 'Zend/Validate/Abstract.php'; /** * @author gabriel * * Example: * <code> * * class My_Form extends Zend_Form { * public function init() { * $this->_requiredOthers = new KontorX_Validate_Form_RequiredOther($this, array('company', 'nip')); * * // init form fields(...) *...
true
cabaf785e8337bc808a7ad1148071e9246c6b7ec
PHP
iammenasco/journal
/entry/php/library/getUsers.php
UTF-8
3,219
2.640625
3
[]
no_license
<?php if (is_readable('../model/model.php')) { require '../model/model.php'; } else { echo '<h3 class="settingsHeading">No <span class="name">Results</span>.</h3>'; } $allUsers = selectNames(); foreach ($allUsers as $user) { $array[] = array('email' => $user['userEmail'], 'firstName' => $user['userFirstName'], ...
true
cd159382f6c673a070d588c51ae31c3c63706d48
PHP
shivaneej/Diary
/index.php
UTF-8
6,632
2.671875
3
[]
no_license
<?php require 'connect.php'; //login if(isset($_POST['login-submit'])) { $email=$_POST['email']; $pwd=$_POST['password']; $sql = "SELECT * FROM user WHERE Email='".$email."' AND Password='".$pwd."'"; $result = mysqli_query($conn,$sql); if(mysqli_num_rows($result)==1) { session_start(); ...
true
5a6ac1f80faf581973b5adfb88497be02ea599c7
PHP
laur010/DynamicMed
/application/config/form_validation.php
UTF-8
12,521
2.53125
3
[]
no_license
<?php /* * Validation routines used to automatically verify user input ( required fields, input length and type) * */ /* * Rules examples: required|min_length[8]|max_length[8]|exact_length[8]| * alpha|alpha_numeric|valid_email|matches[password_field]|valid_ip[ipv4] */ if (!defined('BASEPATH')) exit('No ...
true
2e306b4588d4a87bce6d6e36b7089cf41bee4772
PHP
frankhart2017/VASTU-KOSH-WEB
/index.php
UTF-8
54,430
2.65625
3
[]
no_license
<?php session_start(); $link = mysqli_connect(******); //This will delete rent and sell items after 30 days. Don't uncomment it till it goes online. $curTime = time(); $curTime = date('Y-m-d',$curTime); $query = "SELECT * FROM `items` WHERE `rent` = 1"; $result = mysqli_query($link, $quer...
true
416dbbdaccfdb7f523a536b40d10f4c50de6ea86
PHP
reuven-yanturin/reuven_mvc
/core/database/Database.php
UTF-8
1,989
2.921875
3
[]
no_license
<?php namespace reuven\database; use \reuven\database\ActiveRecords; if(!defined("ACCESS")){ exit('Вы хотите открыть системный файл!'); } class Database extends ActiveRecords { private $_host; private $_port; private $_user; private $_password; private $_database; private $_charset; priv...
true
a200064e3c501d9f6b99a486d83e386d6fe0acb6
PHP
DeBrites/php
/a6-atribuicao.php
UTF-8
1,696
3.65625
4
[ "MIT" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Variáveis de Atribuição</title> </head> <body> <h2>Operadores de Atribuição</h2> <?php $preco = $_GET["p"]; echo "O preço do produto é R$ ". n...
true
96f470bd02ae172887c1475724b68f06313825bb
PHP
Er1cYang/yiiliteforzswidget
/framework/logging/CLogRoute.php
UTF-8
772
2.546875
3
[]
no_license
<?php abstract class CLogRoute extends CComponent { public $enabled=true; public $levels=''; public $categories=''; public $filter; public $logs=array(); public function init() { } protected function formatLogMessage($message,$level,$category,$time) { return @date('Y/m/d H:i:s',$time)." [$level] [$category] $message\n"...
true
3da6e1d08382e6c08c93273247ca2839f26e9354
PHP
alexd73/l5_first_steps
/database/seeds/DatabaseSeeder.php
UTF-8
1,965
2.71875
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Models\Post; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // $this->call(UsersTableSeeder::class); $this->call(PostsSeeder::class); } } class PostsSeede...
true
362b226b618aec649250408b82dd8eeac539bcf3
PHP
full-party/CrossUp
/app/Model/User.php
UTF-8
611
2.625
3
[]
no_license
<?php namespace App\Model; use Hash; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class User * @package App\Model */ class User extends Model { use SoftDeletes; /** * The attributes that are mass assignable. * * @var array */ protecte...
true
ac9d74520100a59ecec312205ebb1007d1a26618
PHP
pgenc/OPP_2013---Projekt
/view/Main.php
UTF-8
3,875
2.515625
3
[]
no_license
<?php namespace view; use opp\view\AbstractView; class Main extends AbstractView { /** * * @var string */ private $title; /** * * @var string */ private $body; /** * * @var string */ private $script; /** * * @var array...
true
eed53e77b329d9b124daf5635ecf33b89ae5b9bb
PHP
kushansen/Online-Yellow-Pages
/Client/controller/ContactsController.php
UTF-8
10,943
2.671875
3
[]
no_license
<?php require_once 'model/ContactsService.php'; class ContactsController { private $contactsService = NULL; public function __construct() { $this->contactsService = new ContactsService(); } public function redirect($location) { header('Location: '.$location); } ...
true
1a799a1b011cffa59e36053e9937f79b4993fb89
PHP
Mahibalu27/phpfiles
/bubble.php
UTF-8
484
3.640625
4
[]
no_license
<?php class bubblesort { private $test; private $d; function __construct() { $this->test = array(2,5,32,6,74,6); $this->d = count($this->test); echo implode(',',$this->test),"<br>"; } public function sort() { $arr = $this->test; for($k = 0;$k <= $this->d-1; $k++ ) { for($i = 0;$i<=$this->d-2;$i++) { if($arr[$i]>$arr[$...
true
7f81f5f37bbd9831b546d2628164988663202494
PHP
szaman86/zoo
/Duck.php
UTF-8
303
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bmarszal * Date: 07.02.16 * Time: 17:13 */ namespace zoo; use zoo\Animal; class Duck extends WaterAnimal { /** * Animal have to eat we have to describe how */ public function eat() { // TODO: Implement eat() method. } }
true
5111af320bb25a6d67674b55c20878ad614f36ef
PHP
sunpyopark/PHP_rentitout
/unittest/App/Models/User copy.php
UTF-8
1,735
2.96875
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; require 'User.php'; class UserTest extends TestCase { public function testThatWeCanGetTheFirstName() { $user = new User; $user->setFirstName('Steven'); $this->assertEquals($user->getFirstName(), 'Steven'); } public function te...
true
c21d49291a64d397ef0fd32573f258f81a7854e6
PHP
masbaehr/flextype
/flextype/Flextype.php
UTF-8
3,474
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @package Flextype * * @author Romanenko Sergey / Awilum <awilum@yandex.ru> * @link http://flextype.org * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Flextype; use Symfony\Component\{Filesystem\Filesystem...
true
1812fee6b895c41b7d7f70b31a90324523e00061
PHP
TiagoDGomes/esdruxulos
/admin/secao/usuario.php
UTF-8
4,752
2.703125
3
[]
no_license
<?php switch ($_GET['acao']) { case 'usuario': ?><h2>Detalhes do usuário</h2> <table> <?php try { $u = new Usuario(); $u->carregarPorID($_GET['id']); echo "<tr><td>Nome:</td><td>$u</td></tr>"; echo "<tr><td>Endereço:</t...
true
53cb1bfefa3f10a76f542039ce717613dc7c1bd2
PHP
LBHB/celldb
/calendar.php
UTF-8
8,998
2.8125
3
[]
no_license
<?php /*** CELLDB calendar.php - events/chores in lab created 3/7/2007 - SVD ***/ // global include: connect to db and get important basic info about user prefs $min_sec_level=2; include_once "./celldb.php"; // action -1 - action failed // 0 - add entry // 1 - edit entry // 2 - delete entry i...
true
f10d103544119ef263d9c0609088edda6b02e3d3
PHP
lookingatsky/vicon-room
/invo-master/app/plugins/Mail.php
UTF-8
5,129
2.65625
3
[]
no_license
<?php /** * 邮件类 */ //namespace App\Plugin; use Phalcon\Logger\Adapter\File as FileAdapter; use Phalcon\Config\Adapter\Ini as ConfigIni; class Mail{ public function __construct(){ $config = new ConfigIni(APP_PATH . 'app/config/mail.ini'); $this->mail_from = $config->mail->from; $this->mail_user = $con...
true
06d136ea0f783fee5994ebbcca5caaed7f0abb90
PHP
yephper/gitonline
/App/Common/Org/Tree.class.php
UTF-8
3,153
2.734375
3
[]
no_license
<?php namespace Common\Org; class Tree { public $data = array(); public $icon = array('&nbsp;&nbsp;&nbsp;&nbsp;│', '&nbsp;&nbsp;&nbsp;&nbsp;├─ ', '&nbsp;&nbsp;&nbsp;&nbsp;└─ '); public $nbsp = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; public $rets = ''; private static $ItreeInitialize; public static func...
true
b8c604c033643c7f3e4c4e49cce02999a7fa71a8
PHP
mtrofimm/FervoDeferredEventBundle
/Listener/DeferEventListener.php
UTF-8
1,881
2.796875
3
[ "MIT" ]
permissive
<?php namespace Fervo\DeferredEventBundle\Listener; use Fervo\DeferredEventBundle\EventDispatcher\DummyEventDispatcher; use Fervo\DeferredEventBundle\Service\MessageService; use Symfony\Component\EventDispatcher\Event; use Fervo\DeferredEventBundle\Event\DeferEvent; use Fervo\DeferredEventBundle\Event\Queue\MessageQu...
true
5ba7d202cd461c7e8693c3f89bc2455b59e71ef0
PHP
zamanehsani/CourseManagement
/registration.php
UTF-8
2,844
2.640625
3
[]
no_license
<?php if(isset($_POST['email'])){ $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $email = $_POST['email']; $password = $_POST['password']; $repeat_password = $_POST['password_repeat']; if($password != $repeat_password){ echo "<meta http-equiv='ref...
true
61c500735ee6e837dfe0aa1968f5d4a406178ca8
PHP
JanDC/css-from-html-extractor
/src/CssFromHTMLExtractor.php
UTF-8
6,246
2.546875
3
[ "ISC" ]
permissive
<?php namespace CSSFromHTMLExtractor; use Doctrine\Common\Cache\ArrayCache; use Doctrine\Common\Cache\Cache; use DOMNodeList; use DOMXPath; use Exception; use Symfony\Component\CssSelector\CssSelectorConverter; use Symfony\Component\CssSelector\Exception\ExceptionInterface; use CSSFromHTMLExtractor\Css\Processor; use...
true
4710af1f84658c5c7db9631886c2e2754ac19b9a
PHP
danieloprado/lumen-directory
/api/app/Exceptions/ServiceException.php
UTF-8
251
2.796875
3
[]
no_license
<?php namespace App\Exceptions; use Throwable; class ServiceException extends \Exception { public $data; public function __construct(string $message, $data) { parent::__construct($message); $this->data = $data; } }
true
16f7d213f048794fe38d9ac255754030b9777e81
PHP
webazad/azad-oop
/libs/HintingAzad.php
UTF-8
259
3.265625
3
[]
no_license
<?php /* * TYPE HINTING */ class Hinting{ public $value; public function portfolio(Type $a){ $this->value = $a; echo $this->value->about(); } } /** $type = new Type(); $hinting = new Hinting(); $hinting->portfolio($type); */
true
654b09d0d44c6014cad03bd6d3b9ca3cf2f61684
PHP
ahmadfauzirahman99/simrs-pendaftaran
/models/HkSubUnit.php
UTF-8
1,931
2.515625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "hk_sub_unit". * * @property int $id * @property int|null $sub_unit_id * @property string|null $hk_date * @property int|null $begin_status * @property int|null $end_status * @property string|null $notes * @property int|null $user_i...
true
300bfc852b88ea4e53f61baaf7a0a247bb8db8c3
PHP
tgibba/pagoda-scratch
/view/admin/view_user.php
UTF-8
997
2.515625
3
[]
no_license
<?php if ($accessible): ?> <h1>Admin Control Panel</h1> <?php if (isset($singleton)): ?> <h2><?php echo $user[0]["User"]["username"]; ?></h2> <?php echo "<table>"; echo "<tr>"; echo "<td><strong>Full Name: </strong></td><td>".$profile[0]["Profile"]["fullName"]."</td><br/>"; echo "</tr>"; echo "<tr>"; echo ...
true
364c7b5b2551235bf31b4e875fc9488fe10edda5
PHP
mrhmt80/training-laravel1
/app/Http/Controllers/Api/LoginController.php
UTF-8
2,196
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; //new line use App\User; use Auth; use Validator; use Hash; //tambahan use App\Http\Controllers\Api\BaseController as BaseController; class LoginController extends BaseController { //variabel sukses dan er...
true
06eb69c71d259d65147eef21bf80fc7df339bb23
PHP
interserver/crud
/src/Export/array2Pdf.php
UTF-8
408
2.765625
3
[]
no_license
<?php /** * Converts an Array to PDF * @author Joe Huss <detain@interserver.net> * @copyright 2020 * @package MyAdmin * @category XML */ /** * converts an array into a PDF * * @param array $fields array of rows/fields * @param $headers * @return string the PDF */ function array2Pdf(array $fields, $headers)...
true
e9cf47a73fd12c5405cae27b1ea81477094883e6
PHP
Tomchv1/portefeuille
/src/Entity/OptionI.php
UTF-8
2,043
2.5625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\OptionRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=OptionRepository::class) * @ORM\Table(name="`option`") */ class OptionI { /** * ...
true
4ba773b59a705bba47a38f1c2693e7b36c5af705
PHP
streamuj/artistfanOLD
/dev/db/build/classes/artistfan/Card.php
UTF-8
1,068
2.609375
3
[]
no_license
<?php /** * Skeleton subclass for representing a row from the 'card' table. * * * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * * @package propel.generator.art...
true
1b5981ef931cd628485af54b83b2bca55a3a40e8
PHP
chardie019/Adaptive-Quiz-Manager
/includes/models/editQuestionLogic.php
UTF-8
32,760
3.0625
3
[]
no_license
<?php /** * The Funcations shared by almost all sub pages of edit question menu */ class editQuestionLogic extends quizLogic { /** * Removes a image from a question and it's file * * @param string $quizId The quiz associated -The real quiz ID * @param string $questionId The question ID assoc...
true
fea3b59f5753d118e09bb053a567fe67b25e87bc
PHP
yuitsubasapapa/v-yaf-demo
/application/library/system/dal/cache/MemcachedForWin.php
UTF-8
3,917
2.734375
3
[]
no_license
<?php namespace system\dal\cache; use system\dal\cache\ICache; /** * 由于windows下暂无memcached扩展,所以暂用此类代替其简单的功能 * memcache与memcached在存储数据时,所设置的标识位不同,所以不能共用 * memcached 标识位 0表明字段串,1表明int,2表明double,4表明序列化过的数据 * memcache 标识位 1表明经过序列化,但未经过压缩,2表明压缩而未序列化,3表明压缩并且序列化,0表明未经过压缩和序列化 * (本地测试时用) * @package system\dal\cacheMemc...
true
f4436cea2e79be37317b73c2af71c873bd3eca67
PHP
PriyadiSentosa/belajar_php
/operator/tugas.php
UTF-8
220
2.953125
3
[]
no_license
<?php $nilaiA = 85; $nilaiB = 83; $hasil = $nilaiA >= "85" && $nilaiB >= "83"? "Lulus": "Tidak Lulus"; echo "Nilai Akademik : <b>$nilaiA</b>"; echo "<br>Nilai Atletik: <b>$nilaiB</b><br>"; echo "Dinyatakan: " .$hasil; ?>
true
a237e2598a1940f30c96a558327e21e301e973e6
PHP
laracraftcms/core
/Exceptions/ModelLockedException.php
UTF-8
706
2.8125
3
[ "MIT" ]
permissive
<?php namespace Laracraft\Core\Exceptions; use RuntimeException; class ModelLockedException extends RuntimeException { /** * The affected Eloquent model. * * @var string */ protected $model; /** * Set the affected Eloquent model. * * @param string $model * @re...
true
2524a852a385913aed46e9c0a29e6c9ce4c585de
PHP
ryinner/api-package
/src/ApiController.php
UTF-8
1,327
3.125
3
[]
no_license
<?php namespace ApiPackage; class ApiController { /** * Your url adress * * @var string uri */ public $uri; public function __construct(string $uri) { $this->uri = $uri; } /** * Connection to Api * * @param string $url * @return $answer is ApiA...
true
c20c87946d7609a2710109bc3afb3116eaebd077
PHP
adrmrn/support-ticketing-system
/services/auth/app/Services/MessageConsumer.php
UTF-8
254
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Services; interface MessageConsumer { public function open(string $exchangeName): void; public function consume(string $exchangeName, callable $handler): void; public function close(): void; }
true
358d4122d6dd4de3ba1d4223ba757d3c8a23ecdc
PHP
Michael-Min/hyperf-iot
/app/Controller/Admin/RolesController.php
UTF-8
5,530
2.609375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); /** * Created by PhpStorm. *​ * RolesController.php * * User:YM * Date:2020/2/4 * Time:下午9:41 */ namespace App\Controller\Admin; use App\Constants\StatusCode; use App\Controller\BaseController; use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\PostM...
true
c84b570d8deccfa1e57b2150d6d4f47d45f8f783
PHP
rlmumford/common
/modules/data/task/contrib/job/src/Plugin/JobTrigger/Missing.php
UTF-8
1,323
2.546875
3
[]
no_license
<?php namespace Drupal\task_job\Plugin\JobTrigger; /** * Plugin for when a trigger is missing. * * @JobTrigger( * id = "missing", * label = @Translation("Missing/Broken"), * description = @Translation("The trigger is missing or broken."), * ) * * @package Drupal\task_job\Plugin\JobTrigger */ class Mis...
true
d22715c16648e8a056cd48644c5763b3bf3bde3b
PHP
sulish/Sistem-Inventarisasi
/admin/export/transaksi_masuk_bahan_xls.php
UTF-8
2,613
2.71875
3
[]
no_license
<?php error_reporting(E_ALL); require_once '../plugins/excel/PHPExcel.php'; require_once '../inc/config.php'; // Create new PHPExcel object $objPHPExcel = new PHPExcel(); $query="SELECT bahan.id_bahan, bahan.kd_bahan, bahan.nama as nama_bahan, transaksi_mb.merk, transaksi_mb.tahun, transaksi_mb.jumlah, transaksi_mb...
true
87af05404d44637eb45b29611dcd3d5f7aaca420
PHP
nguyenlongit95/lophoctiengnhat_server
/app/Repositories/CourseOnline/CourseOnlineEloquentRepository.php
UTF-8
1,016
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\CourseOnline; use App\Models\CourseOnline; use App\Models\CourseOnlineSource; use App\Models\Pages; use App\Repositories\Eloquent\EloquentRepository; class CourseOnlineEloquentRepository extends EloquentRepository implements CourseOnlineRepositoryInterface { /** * @return mi...
true
3a8ab6f8a7e87704a58f4df7df8a86c8e0a0c274
PHP
KevinPatel04/sending-email-using-php
/first_email_template_custom_message.php
UTF-8
3,326
2.640625
3
[ "MIT" ]
permissive
<?php include_once 'config.php'; include_once 'mail.php'; /* outer-if */ if(isset($_POST['send'])){ $from_password = $_POST['from_password']; $from_email = $_POST['from_email']; $from_name = $_POST['from_name']; if($from_name==null || $from_name==""){ $from_name = $VAR['from_name'...
true
4d6ab54454b30c2d081d5cd4b19c6e1f3d6ab95e
PHP
fracz/refactor-extractor
/results/Behat--Behat/2e51d4f8c9f6c0bfd8bf4182aab1d49b47995ee0/before/OutlineExampleEvent.php
UTF-8
1,957
2.703125
3
[]
no_license
<?php namespace Behat\Behat\Event; use Symfony\Component\EventDispatcher\Event; use Behat\Behat\Environment\EnvironmentInterface; use Behat\Gherkin\Node\OutlineNode; /* * This file is part of the Behat. * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please ...
true
97ea1541089da21b4ed8a14bbd7c33d70e384f50
PHP
lonestonewy/yii2AdminLTE
/backend/components/BlankUrlFilter.php
UTF-8
617
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\components; use Yii; use yii\base\ActionFilter; /** * 用于配合权限控制,过滤空链接 */ class BlankUrlFilter extends ActionFilter { public function afterAction($action, $result) { if(is_string($result)){ $pattern = '/<a.+?>.+?<\/a>/i'; $result = preg_replace_callback(...
true
c24c2e83039c2acf00cad4b2a0324dded32b40da
PHP
matiabc/Proyecto
/backend/eliminar.php
UTF-8
691
2.53125
3
[]
no_license
<?php header('Content-type:application/json'); header("Access-Control-Allow-Origin:*"); $json = file_get_contents('php://input'); $info = json_decode($json,true); $jsonDatos = file_get_contents("datos.json"); $datos = json_decode($jsonDatos,true); echo $jsonDatos; for($i=0;$i<count(...
true
ddb010afb0ce5af49648c05d861ffcbc81bbcac4
PHP
mmjurov/expertsender
/src/ExpertSender/Unbound.php
UTF-8
5,147
3.28125
3
[ "MIT" ]
permissive
<?php namespace Zhmi\ExpertSender; /** * Класс, реализующий необходимые интерфейсы для работы с ним как с массивом * @package Zhme\ExpertSender */ class Unbound implements \ArrayAccess, \Countable, \Iterator { /** * @var array Массив с данными экземпляра класса */ private $data = array(); /*...
true
049350d53b6ed2b638a3bf6169e3f3629690cdbf
PHP
eungmo/PHP
/Bookmarks/member/register_new.php
UHC
1,648
2.5625
3
[]
no_license
<?php //Ʈ ʿ Լ ҷ´. session_start(); require_once('../fns/bookmark_fns.php'); //ª Ÿ . $email=$_POST['email']; $username=$_POST['username']; $passwd=$_POST['passwd']; $passwd2=$_POST['passwd2']; //ó try { //Check forms filled in if(!filled_out($_POST)) { throw new Exception("You have not filled ...
true
db0c22e52ce530ff9ff7d8bb719d9583f28c6fd9
PHP
leson1986/gddwx
/core/classes/gd_image.class.php00
GB18030
10,183
3
3
[ "MIT" ]
permissive
<?php /*********************************************************** * Document Type: Classes * Update: 2006/11/06 * Author: Akon * Remark: ͼƬͼˮӡ ***********************************************************/ class GDImage{ var $info; var $backup; Function GDImage($origFilename=false){ if($o...
true
e5772098d6656d29a92eae85b5e20abacf4b57d2
PHP
Mobisocial/Snap2Pass
/openidProvider/examples/server/snap2pass/junction/strophejs/src/b64.js
UTF-8
1,885
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
// This code was written by Tyler Akins and has been placed in the // public domain. It would be nice if you left this header intact. // Base64 code from Tyler Akins -- http://rumkin.com var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; /** * Encodes a string in base64 * @param {Str...
true
1e241ea3e11bf3e7a2003938b7be28ee6678564c
PHP
shalakolee/Wordpress_Customizations
/wordpress-customizations/includes/general_functions.php
UTF-8
7,090
2.859375
3
[]
no_license
<?php /* * general functions that will be used */ //add theme suppoort add_theme_support( 'woocommerce' ); //remove stupid woothemes updater remove_action( 'admin_notices', 'woothemes_updater_notice',999 ); function stripHTML($document){ $search = array('@<script[^>]*?>.*?</script>@si', // Strip out javasc...
true
a51653cb108e8c1debcb8fa9d1195a578126a90d
PHP
wrux/blocky
/src/twig/nodes/BlocksLoopNode.php
UTF-8
1,177
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace wrux\blocky\twig\nodes; use Twig\Compiler; use Twig\Node\Node; /** * Blocks node iterator. * * @package Blocky * @since 0.1.0 * */ class BlocksLoopNode extends Node { // Public Methods // =========================================================================== ...
true
5864bfa7dcbcb8aa9a0496e4f6957312d2ddd4db
PHP
LQbank/laravel
/app/Http/Requests/homeuserRequest.php
UTF-8
1,711
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Request; use App\Models\Users; use Hash; class homeuserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function a...
true
a0594ad09b88b1e06ba94168676f606ff82e41a4
PHP
SonicGD/google-adwords-api-light
/Google/Api/Ads/AdWords/v201605/classes/Attribute.php
UTF-8
2,046
3.046875
3
[ "Apache-2.0" ]
permissive
<?php /** * {@link Attribute}s encompass the core information about a particular {@link TargetingIdea}. Some * attributes are for {@code KEYWORD} {@link IdeaType}s, some are for {@code PLACEMENT} * {@link IdeaType}s, and some are for both. Ultimately, an {@link Attribute} instance simply wraps * an actual value o...
true
c5e9ad329c423d74362c8f84acce7e722dd3675c
PHP
donhatptit/miny-beta
/app/Http/Controllers/Api/V1/AuthController.php
UTF-8
2,471
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers\Api\V1; use App\Http\Controllers\Controller; use App\Repositories\Backend\Auth\UserRepository; use App\Responses\Meta; use App\Responses\ResObj; use App\Responses\Response; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; ...
true
718c5a9116b094d83847523f8398cd7b3bd6ef4d
PHP
KhalidBerhail/ESRENT
/pages/PropPages/ultra.php
UTF-8
724
2.6875
3
[]
no_license
<?php if(isset($_POST['logment']) && isset($_POST['timeout'])) { $logment = $_POST['logment']; $logsize = (int)sizeof($logment); $timeout = $_POST['timeout']; $prix = 39; $promo = 1; //demunition du temps du promo if($timeout == 3) $promo = $promo - 0.1; else if($...
true
7269c53fbb48bd1c70a70c2ced06655dc5a17430
PHP
sanikeev/event-processing
/src/Command/EventGenerateCommand.php
UTF-8
1,782
2.890625
3
[]
no_license
<?php namespace App\Command; use App\Message\EventMessage; use App\Service\Sender; use DateTime; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Compone...
true
ae0a64c2adf2057b391228d28120ba4f8820ae68
PHP
Dymantic/chai-chung
/tests/Unit/Time/DurationTest.php
UTF-8
1,250
3.015625
3
[]
no_license
<?php namespace Tests\Unit\Time; use App\Time\Duration; use Tests\TestCase; class DurationTest extends TestCase { /** *@test */ public function a_duration_expressess_a_period_of_minutes_as_a_readable_string() { $cases = [ [ 'mins' => 120, 'exp...
true
a7873bf636efe32da486a608f1a38831f851b047
PHP
spartacus1994/symfony
/src/Controller/ArticalController.php
UTF-8
679
2.515625
3
[]
no_license
<?php namespace App\Controller; Use Symfony\Component\HttpFoundation\Response; //Use Symfony\Component\Routing\Annotation\Route; //Use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; Use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; // use ...
true
95123b5f7fdda9d7c319ed23f7f8195c82be95b8
PHP
mariofuentealba/agf2
/servicios/procesoRecursivo.php
UTF-8
5,032
2.671875
3
[]
no_license
<?php function manipulaZip($data, $log){ fwrite($log, "manipulaZip\r\n"); include_once("..\\pclzip-2-8-2\\pclzip.lib.php"); fwrite($log, "Archivo a descomprimir :" . $data ."\r\n"); $zip = new PclZip($data); if (($list = $zip->listContent()) == 0) { fwrite($log, "ERROR\r\n" ); die("Error : ".$zip->errorInfo...
true