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
bc35eb62a328dbaad4f842951d15b0ffd29a271c
PHP
edwevb/phpsiakad
/public/admin/config/koneksi.php
UTF-8
5,636
2.984375
3
[]
no_license
<?php function koneksi() { return mysqli_connect("localhost","root","","kuliah"); } //Read Mahasiswa function query($query) { $conn = koneksi(); $result = mysqli_query($conn, $query); $rows = []; while ($row = mysqli_fetch_assoc($result)) { $rows[] = $row; } return $rows; } function detail($query) { $conn...
true
20beccbd5ef1150dd4764d70db59733010333c15
PHP
Criptonium/melans_company
/melans/connect.php
UTF-8
551
2.640625
3
[]
no_license
<?php $host = '127.0.0.1'; $db = 'melans';/*name_database*/ $user = 'root'; $pass = ''; $charset = 'utf8'; $link = mysqli_connect("localhost", "root", "", "melans"); if (mysqli_connect_errno()) { echo 'Ошибка подключения к базе данных'; exit(); } $dsn = "mysql:host=$host;dbname=$db;charset=$cha...
true
bf4eedff6b3e4cd06d9c5298a8c4c9b789a8db39
PHP
woocart/defaults
/src/classes/Importers/WooPage.php
UTF-8
1,153
2.640625
3
[]
no_license
<?php namespace Niteo\WooCart\Defaults\Importers { use Niteo\WooCart\Defaults\Importer; use Symfony\Component\Yaml\Yaml; /** * Class WooPage * * @package Niteo\WooCart\Defaults\Importers */ class WooPage { /** * @var string */ protected $file_path; /** * @param string $file_path */ ...
true
dfea157d9278ea2d61acdd5b96750bdedfcab459
PHP
kamarton/yiisoft-db
/src/Query/Data/DataReader.php
UTF-8
2,702
3.140625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Yiisoft\Db\Query\Data; use PDO; use PDOStatement; use Yiisoft\Db\Driver\PDO\CommandPDOInterface; use Yiisoft\Db\Exception\InvalidCallException; use Yiisoft\Db\Exception\InvalidParamException; final class DataReader implements DataReaderInterface { private int $index = -1...
true
af5a50919fdc2628fe7552a919f67dd6f64ae9f6
PHP
yongbaolinux/framework
/bui/BeyondCms/system/libraries/Session_.php
UTF-8
5,217
2.84375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Session操作类 * @author yongbaolinux * 2014-12-10 * TODO 去掉自定义的常量 使用PHP自身的常量 - PHP_SESSION_DISABLED/PHP_SESSION_NONE/PHP_SESSION_ACTIVE * 在低版本的PHP中 这几个变量可能不能用 */ class CI_Session_{ static private $session_status = 0; static p...
true
1b6fcc918aad8750a9197dd11a16904b5b24b6e8
PHP
musus/wp-instant-setup-jp
/swell/classes/SWELL_THEME/Customizer/Control/Image_Control.php
UTF-8
728
2.640625
3
[]
no_license
<?php namespace SWELL_THEME\Customizer\Control; if ( ! defined( 'ABSPATH' ) ) exit; /** * カスタマイザーの li に好きなクラス名を付与できるようににしたもの */ class Image_Control extends \WP_Customize_Image_Control { public $classname = ''; //追加したメンバ変数 protected function render() { $id = 'customize-control-' . str_replace( array( '[', ...
true
80f9bba507c828521405d0b60c9b3015d9779ba4
PHP
Preccy-star/project
/activecitizen/old/admin/add_questions.php
UTF-8
3,144
2.90625
3
[]
no_license
<?php include 'connect.php'; ?> <?php $question_error = $title_error = $option_error = ""; $question = $title = $option = ""; // if(isset($_POST['submit'])){ // if(isset($_POST['question'])){ // $question=$_POST['question']; // //$question=test_input($question); // } // if(isset($_POST['title'])){ /...
true
ed1c0ab7c415d60cd1f26409ed6a7c9483890b62
PHP
developer-house/quick
/src/Models/Tables/UserSession.php
UTF-8
1,859
2.6875
3
[]
no_license
<?php namespace Developerhouse\Quick\Models\Tables; use Developerhouse\Quick\Http\Beans\UserSessionBean; use Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; /** * App\Models\Tables\UserSession * * @property int $id * @property i...
true
665737a3110f439f48f89b1e1487b9f34bcf6f2d
PHP
ibwalii/fileMass
/pages/request/newdepartment.php
UTF-8
2,750
2.828125
3
[]
no_license
<?php require_once('../../Connections/nitdafilemass.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue...
true
5a5e4f7971e800d6e9ca23b799a205259f1f5911
PHP
yochayp/articles
/core/Core.php
UTF-8
1,815
2.8125
3
[]
no_license
<?php class Core { protected $controller = 'ArticlesController'; protected $currentMethod = 'readAll'; public function __construct() { $url = $this->getUrl(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['create'])) { $this->currentMethod ...
true
569cd835b913424827f9fcea1b6eabf072ad0e7a
PHP
briechar/monkcms-snippets
/Classes/HTTPS/Https.class.php
UTF-8
5,943
3.390625
3
[]
no_license
<?php /** * CLASS Monk_HTTPS * * Provides methods to output CMS content in https. * * @public method toHTTPS() - Rewrite a string with http:// to https// * @public method secureRSCFile() - Change a Rackspace Cloud File url to the SSL format. * @public method getSContent() - Get the secure ver...
true
67c3592b912b56ece6df4eb56abc689a1472545a
PHP
itshasnainkhanofficial/php_class01
/12_oop/simple/2_constructor.php
UTF-8
1,735
3.921875
4
[]
no_license
<?php // class MyPerson { // public $name ; // function yourname() // { // echo "Your name is " . $this-> name; // } // } // $p1 = new MyPerson(); // // The problem is : you have to initilize all the variables befor use a function // $p1 -> name = "Nihal"; // $p1->yourname(); // C...
true
240157d90835164f935483936e2ef83957b31577
PHP
Rundiz/number
/tests/via-http/convert-frombyte.php
UTF-8
1,624
2.765625
3
[ "MIT" ]
permissive
<?php require dirname(dirname(__DIR__)).'/Rundiz/Number/Number.php'; $filesizes = array( 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, 200000000000, 1000000000000, 20000000000001, 100000000000000, 3000000000000000, 10000000000000000, 100000000000000000, 100000000000000...
true
ad462c3f81556477c7c1606c0afc439db5e2c5ea
PHP
eamartinezba/EdgarMartinez.github.io
/model/clsGeneral.php
UTF-8
448
3.078125
3
[]
no_license
<?php class General{ private $id; private $title; private $image; public function __construct($id, $title, $image){ $this->id=$id; $this->title=$title; $this->image=$image; } public function getId(){ return $this->id; } public function getTitle(){ return $this->title; } public function...
true
fad7db8fa79a3562aad3f86d43559d20f6284500
PHP
anouarjlidi/FullStack-Symfony-shop
/src/Services/SearchService.php
UTF-8
881
2.703125
3
[]
no_license
<?php namespace App\Services; use App\Entity\Product; use Doctrine\ORM\EntityManagerInterface; class SearchService { /** * @var EntityManagerInterface */ private EntityManagerInterface $manager; /** * SearchService constructor. * @param EntityManagerInterface $manager */ p...
true
b224367967b11bfbd5790169b1bff9d44a9f2f0f
PHP
bc-team/bc_1.5
/include/view/taglibrary/Tag.php
UTF-8
1,187
2.734375
3
[]
no_license
<?php require_once(realpath(dirname(__FILE__)) . '/TagLibrariesFactory.php'); /** * @access public */ class Tag implements JsonSerializable { /** * @access public * @param aExtrinsicState * @ParamType aExtrinsicState */ public function __construct($structureAsArray=null,$fileSystemElement=null,$mode="a...
true
bb8ca824552d00f62f779fc49b88fdcc670bdb62
PHP
RayhanBryan/dss
/functions.php
UTF-8
14,516
2.578125
3
[]
no_license
<?php include 'config.php'; // ======================== $rows = $db->get_results("SELECT kode_alternatif, nama_alternatif FROM tb_alternatif ORDER BY kode_alternatif"); foreach($rows as $row){ $ALTERNATIF[$row->kode_alternatif] = $row->nama_alternatif; } $rows = $db->get_results("SELECT kode_kriteria, nama...
true
a69af7921095b681aa79c902065784a370b9bef4
PHP
FirasAbdennadher/FripLocal
/admin/models/personne.class.php
UTF-8
4,309
2.734375
3
[]
no_license
<?php class personne extends fonction{ private $id; private $nom_pers; private $prenom_pers; private $email_pers; private $mdp_pers; private $tel_pers; private $id_role; private $status; public function __construct($id,$nom_pers,$prenom_pers,$email_pers,$mdp_pers,$tel_pers,$id_role,$status){ $this->id = $...
true
7c6071f23a24deabf067b14ed3d621350818356b
PHP
Molajo/Fieldhandler
/Source/Constraint/Defaults.php
UTF-8
2,333
2.96875
3
[ "MIT" ]
permissive
<?php /** * Defaults Constraint * * @package Molajo * @copyright 2014-2015 Amy Stephen. All rights reserved. * @license http://www.opensource.org/licenses/mit-license.html MIT License */ namespace Molajo\Fieldhandler\Constraint; use CommonApi\Fieldhandler\ConstraintInterface; /** * Defaults Constraint ...
true
c724e9f2a1af1960bff1e83740ec8ca736edc324
PHP
TerryBeyak/Craft-Brief
/brief/BriefPlugin.php
UTF-8
2,473
2.734375
3
[]
no_license
<?php namespace Craft; Class BriefPlugin extends BasePlugin { public function getName() { return Craft::t('Brief'); } public function getVersion() { return '1.5.0'; } public function getDeveloper() { return 'Taylor Daughtry'; } public function getDeveloperUrl() { return 'http://github.com/taylo...
true
a05aaec6e6dfbe284541dbf1c75f8144b90b10f6
PHP
yuubd/repository
/phpjs/12_function.php
UTF-8
407
3.09375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>JavaScript</h1> <script> function a(){ document.write("Hello fn in js"); } a(); //a itself is a variable, a() is a fn </script> <h1>php</h1> <?php function a(){ echo "Hello fn in php"; ...
true
95237497a5ef0e1787019e0aaa7a5f6b398bbeb4
PHP
ravage84/SwissPaymentSlip
/tests/OrangePaymentSlipDataTest.php
UTF-8
15,386
2.65625
3
[ "MIT" ]
permissive
<?php /** * Swiss Payment Slip * * @license http://www.opensource.org/licenses/mit-license.php MIT License * @copyright 2012-2016 Some nice Swiss guys * @author Marc Würth ravage@bluewin.ch * @author Manuel Reinhard <manu@sprain.ch> * @author Peter Siska <pesche@gridonic.ch> * @link https://github.com/ravage84/...
true
df9305bfd8eb8e41939a8722dbc95b721473df61
PHP
Lysosome/Justice-Summit-Registration
/authenticate.php
UTF-8
2,434
2.71875
3
[]
no_license
<?php $sqlInfo = parse_ini_file("sqlServerInformation.ini"); // $servername = $sqlInfo["servername"]; // $username = $sqlInfo["username"]; // $password = $sqlInfo["password"]; // $dbname = $sqlInfo["dbname"]; $servername = "localhost"; //40.133.254.141 $username = "18_jaink"; $password = "DyztWt6Py6V6drmt"; ...
true
cbb02b7b58fde62e3b5403608f76730a4ffb8755
PHP
Miki-mi/Quenak
/controller/contactcontroller.php
UTF-8
1,077
2.703125
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php include "./../database/db.php"; session_start(); if($_SERVER['REQUEST_METHOD'] == 'POST') { $fname = $_POST['fname']; $lname = $_POST['lname']; $email = $_POST['email']; $phone = $_POST['phone']; $msg = $_POST['msg']; if($email == NULL || $fname == NULL || $lname == NULL ...
true
8c93a88a50a9fcc4e4439140626c37a2323db4dd
PHP
bonny/polarbearcms
/includes/php/class.simplelogin.php
UTF-8
3,808
3.046875
3
[]
no_license
<?php /** * Enkelt inloggningssystem * inmatade uppgifter sparas i session eller cookie? cookie för att fungera längre? * * $login = new Simplelogin($login, $password); * $login->ok(); // true om man är inloggad * $login->getForm(); // ger loginform * $login->getLogoutLink(); // ger logga ut-länk * */ class Si...
true
950aed87c00d979767778b6959e749fa69d596e3
PHP
lizhe918/UBC_CPSC304_2019S1
/warehouse/lupdate.php
UTF-8
6,925
2.625
3
[]
no_license
<?php require_once "pdo_constructor.php"; $employID = $_COOKIE['zyxwworker']; $sql = "SELECT * FROM Employee WHERE employID = '$employID'"; $stmt = $pdo->prepare($sql); $stmt->execute(); $employee = $stmt->fetch(PDO::FETCH_ASSOC); $firstName = ""; $lastName = ""; $SIN = ""; ...
true
41cf38c755e41afcd3018ae94d5355e213153c1d
PHP
MartinToMejia/mecanico
/prueba.php
UTF-8
652
2.8125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <?php // Conectarse.php function Conectarse() { if (!($link=mysql_connect("lo...
true
7d008cbef5e60e21480e1a48e2b5ce5b77727cde
PHP
zizu89/job_board
/app/Http/Controllers/JobController.php
UTF-8
2,507
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Job; use App\JobStatus; use App\Mail\JobPostedHR; use App\Mail\JobPostedModerator; class JobController extends Controller { public function create() { return view('jobs.create'); } public function store() { $this->validate(request...
true
e51956ccad987cfbe95b2916f504e7653de9f1bc
PHP
siroos2010/oopblog
/Classes/DB.php
UTF-8
431
3.125
3
[]
no_license
<?php namespace Classes; class DB { public $conn; public function __construct() { try { $this->conn = new \PDO('mysql:host=localhost;dbname=parsiblog;charset=utf8', 'root', '', [ \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC ]); } catch (\PDO...
true
9c21c120b093cfbad27d4a7b2d2942f2eaaf2caa
PHP
efabrica-team/hermes-extension
/src/Command/CleanupOldProcesses.php
UTF-8
1,475
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Efabrica\HermesExtension\Command; use DateTime; use Efabrica\HermesExtension\Heartbeat\HeartbeatStorageInterface; use Efabrica\HermesExtension\Heartbeat\HermesProcess; use Efabrica\HermesExtension\Ping\PingInterface; use Symfony\Component\Console\Command\Command; use Symfony\...
true
bfe516d9b4e3f00ecac1999ebd649379b153b33d
PHP
inoue441/tdd-php
/src/Bank.php
UTF-8
919
3.34375
3
[]
no_license
<?php class Bank { private $rates = []; public function reduce(Expression $source, string $to) { return $source->reduce($this, $to); } public function addRate(string $from, string $to, int $rate) { $this->rates[] = [ 'pair' => new Pair($from, $to), 'rat...
true
f659e33a7d55ddddc7ea5ed491fec6d3e5ada516
PHP
EmanuelJoseCandido/Banco-Emis
/gerarDadosDoCartao.php
UTF-8
7,619
2.5625
3
[]
no_license
<?php header("Content-Type: text/html; charset=utf-8", TRUE); // Codigo para aceitaçao de caracteres acentuados include_once("coneccao.php"); // Função que chama a nossa conecção com a base de dados $conexaoPDO->beginTransaction(); // There is no active transaction $banco = "BIC"; $consulta = 0; ...
true
11070139d9baa7bf89aca5a81fa4279a7aa3cde5
PHP
ThomasCarrillo/Forum
/index.php
UTF-8
1,478
2.859375
3
[]
no_license
<?php require('elementsPHP/bdd.php'); ?> <!doctype html> <html lang="fr"> <?php include('elementsPHP/head.php');?> <body> <?php include('elementsPHP/header.php');?> <div class="center"> <div class="box"> <h1>Bienvenue <?php if(isset($_SESSION['login'])) {echo $_SESSION['login'];}?> !</h1...
true
1ecd1f122a37d775193843ed465f9d15f55195ae
PHP
CESNET/perun-simplesamlphp-module
/lib/Auth/Process/ProxyFilter.php
UTF-8
7,794
2.5625
3
[ "BSD-2-Clause" ]
permissive
<?php declare(strict_types=1); namespace SimpleSAML\Module\perun\Auth\Process; use SimpleSAML\Auth\ProcessingFilter; use SimpleSAML\Configuration; use SimpleSAML\Error\UnserializableException; use SimpleSAML\Logger; use SimpleSAML\Module; /** * Class sspmod_perun_Auth_Process_ProxyFilter. * * This filter allows ...
true
1249be26af4f1b41a440fb07ff29c0e049c12f62
PHP
troikaitsulutions/templeadvisor
/common/models/Ratesstay.php
UTF-8
2,663
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This is the model class for table "{{page}}". * * The followings are the available columns in table '{{page}}': * @property string $page_id * @property string $name * @property string $title * @property string $description * @property string $parent * @property string $layout * @property string $...
true
3cb188b1fde55462a2aa864ac685a34a4dc3b59b
PHP
robmachado/productio
/database/seeds/PropertiesTableSeeder.php
UTF-8
1,040
2.65625
3
[ "MIT" ]
permissive
<?php use App\Property; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Schema; class PropertiesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Schema::disableForeignKeyConstraints(); Property::trunca...
true
a5b8de7e7c16ab56346ba7092943b47e9c43306e
PHP
igortrinidad/weplanner-PLACES-API
/database/seeds/PlaceAppointmentsTableSeeder.php
UTF-8
4,674
2.640625
3
[]
no_license
<?php use App\Models\Place; use App\Models\PlaceAppointment; use Illuminate\Database\Seeder; class PlaceAppointmentsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = \Faker\Factory::create('pt_BR'); $colors ...
true
b41c8daef247f7d9027a955081be69e206979815
PHP
yulivan/crud-imagen-php
/insertar-pelicula.php
UTF-8
947
2.9375
3
[]
no_license
<?php /* * GUARDAR PELICULA */ include('database.php'); $nombre = $_POST["nombrePeli"]; $descrip = $_POST["descripcion"]; $genero = $_POST["genero"]; $imagen = $_FILES["imagen"]; // formato de imagen permitidos $permitidos = array("image/jpg","image/jpeg","image/png"); // tamaño de imagen $limit...
true
edd9989949ee124ed195f87cbf5f35b99722f761
PHP
ggutierrezdieck/wp-marmoles-dieck-theme
/themes/dieck/page-home.php
UTF-8
8,501
2.5625
3
[]
no_license
<!--file use to open single post --> <?php // Template Name:Home get_header(); //Working with the posts. or the single home page if static pageis selected under settings ?> <div id="main"> <div class="row"> <div class="col-sm-2"></div> <div class="col-sm-8"> <?php if(have_posts()){ //W...
true
93faf507f61122c2866e8aaeb040194a91873c92
PHP
AfuBasic/naa
/laravel/app/Http/Controllers/Admin/EmailController.php
UTF-8
2,161
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\User; use \Gufy\CpanelPhp\Cpanel; use Mail; class EmailController extends Controller { public function form() { $data['users'] = User::where(['role' => 'user'])->orderBy('first_name', 'asc')->ge...
true
e668009360e20a35d8ef9de72fdf6a94f5e0bb44
PHP
koenhoeijmakers/laravel-filterable
/src/Filtering.php
UTF-8
3,115
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace KoenHoeijmakers\LaravelFilterable; use Illuminate\Http\Request; use Illuminate\Contracts\Config\Repository; use Illuminate\Contracts\Database\Query\Builder as QueryBuilderContract; use Illuminate\Contracts\Database\Eloquent\Builder as EloquentBuilderContract; use KoenHoeijmak...
true
c96284a8a0c9d6a5545704e361d31684f77ddf2f
PHP
stasya0903/PHPbegginer
/1/1.3.php
UTF-8
1,117
3.359375
3
[]
no_license
<?php $a = 5; $b = '05'; var_dump($a == $b); // Почему true? == сравнивает по значению,строка "05" приводиться к номеру 5 var_dump((int)'012345'); // Почему 12345? Начальный ноль в числовом литерале означает: «это восьмеричное число».Но ведущий ноль в строке не делает число, полученное при ...
true
49dd88ff7e5d7c7980cf4b0b3efb650f040a405a
PHP
CapitalCuty/phpStudy
/phpday02/05.php
UTF-8
167
2.9375
3
[]
no_license
<?php header("content-type:text/html;charset=utf-8"); $age=10; if($age>18) { echo "成年人"; }else { echo "小朋友"; } ?>
true
9fd406e32220c0267c73380033420d4688e168a9
PHP
mrwho95/vimi
/index.php
UTF-8
2,403
2.546875
3
[]
no_license
<?php // Problem statement // Within a rapidly growing microservice-based system, changes will often happen and are // inevitable; be it for when a new service is created, reconfiguration of existing systems, or // even the removal of certain systems. // As services tend to depend on one another, a small change on o...
true
d7f131b832c1270120c27505805c2731dfd1f147
PHP
janvernieuwe/jikan-jikanPHP
/src/Model/History.php
UTF-8
1,263
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Jikan\JikanPHP\Model; class History { /** * Parsed URL Data. * * @var MalUrl */ protected $entry; /** * Number of episodes/chapters watched/read. * * @var int */ protected $increment; /** * Date ISO8601. *...
true
65c82c582a830569cfbfb595ad7f6bd2dedc0ec1
PHP
adamaveray/blight
/blight/src/Blog.php
UTF-8
12,628
2.65625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Blight; /** * Stores configuration data for the blog */ class Blog implements \Blight\Interfaces\Blog { const VERSION = '0.9.0'; const FILE_AUTHORS = 'authors.json'; protected $config; /** @var \Blight\Interfaces\FileSystem */ protected $fileSystem; /** @var \Blight\Interfaces\PackageManager...
true
e26a695f1eada4590b95a3594f7b50d7bec7d1fc
PHP
Kriz83/Budget_Project
/src/AppBundle/Form/Income/AddIncomeFormType.php
UTF-8
2,638
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace AppBundle\Form\Income; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; class AddIncomeFormType extends AbstractType { public function build...
true
86a9dfee9237055e13fb45fa9009d0d98092b2ec
PHP
c-01/phpunitest
/app/Models/User.php
UTF-8
948
3.125
3
[]
no_license
<?php namespace App\Models; class User { private $first_name; private $last_name; private $_email; public function setFirstName($firstName) { $this->first_name = trim($firstName); } public function getFirstName() { return $this->first_name; } public functio...
true
ac678bbced1ffbd5236a183f3bfd832cb23cfe5f
PHP
felipeminello/tcc
/modelo/Chamada.class.php
UTF-8
1,282
3.140625
3
[]
no_license
<?php class Chamada { private $id; private $presenca; private $data; private $hora; private $AlunoTurma; private $Professor; private $Disciplina; public function __construct($id = 0, $presenca = 0, $data = null, $hora = null, $idAlunoTurma = 0, $idDisciplina = 0, $idProfessor = 0) { $this->id ...
true
c5729ccb3eb86ad4d2bb9afdf7a0144c5525738f
PHP
EmmaDannyDev/the_flower
/model/manager/ProductManager.class.php
UTF-8
354
2.609375
3
[]
no_license
<?php class ProductManager { public function findOne($id) { $req = $this->db->prepare('SELECT * FROM User'); $req->execute(); return $req->fetchAll(); } public function findByCategory($id) { $req = $this->db->prepare('SELECT * FROM User'); $req->execute(); return...
true
8b2f7b22ce2eb7bbf142440dfcb6f1c515bb558e
PHP
Ranjit007ai/Ranjit007ai.github.io
/showrequest.php
UTF-8
3,690
2.515625
3
[]
no_license
<?php // ***this page is for the home page to show the list of the product in the market //this is php code to redirect the user to welcome page if not does not login and try to acess this page using url session_start(); mysql_connect('localhost','ranjit',null); mysql_select_db('hostelmandi'); if(!isset($_SESSION['user...
true
943be043cc916c8b4003b663cc51bdae87849ecc
PHP
romanato73/flamingo
/flamingo/Helpers/session.php
UTF-8
1,249
2.8125
3
[ "MIT" ]
permissive
<?php use Flamingo\Exception\HttpException; // Check for session status if (session_status() == PHP_SESSION_NONE) { session_start(); } /** * Cross-Site Request Forgery Protection */ // Generate key for hash_hmac function if (empty($_SESSION['csrf_key'])) { $_SESSION['csrf_key'] = bin2hex(random_bytes(32))...
true
f0f30074c05d3bf98ad0acd46af20d3bf0c6f2bd
PHP
bingo-soft/jabe
/src/History/HistoricIncidentInterface.php
UTF-8
3,733
2.53125
3
[ "MIT" ]
permissive
<?php namespace Jabe\History; interface HistoricIncidentInterface { /** * Returns the unique identifier for this incident. */ public function getId(): ?string; /** * Time when the incident happened. */ public function getCreateTime(): ?string; /** * Time when the inciden...
true
aa5b4fce5aebf039fcc5b2774c07346864a9fe97
PHP
AndrewLivancov/php.study
/book-185.php
UTF-8
294
3.09375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php for ($i = 0; $i < count($files); $i++) { if ($files[$i] == ".") continue; if ($files[$i] == "..") continue; if (is_dir($files[$i])) continue; echo "Найденный файл: {$files [$i] }<br />"; } ?> </body> </html>
true
bb5791227d1f253880d2bb312b3e3b82ef94a21b
PHP
Jorudico-PHP/EjerciciosPHP
/aprendiendo-php/19-validacion/procesar_formulario.php
UTF-8
1,399
3.03125
3
[]
no_license
<?php $error='faltan_valores'; if(!empty($_POST['nombre']) && !empty($_POST['apellido']) && !empty($_POST['edad']) && !empty($_POST['email']) && !empty($_POST['pass'])){ $error='ok'; $nombre=$_POST['nombre']; $apellido=$_POST['apellido']; $edad=(int)$_POST['edad']; $email=$_POST['email']; $pass=$_POST['pass']; ...
true
a058a5d44db46358273073a391049e6449f8ed60
PHP
HadeelMohamed/HRPortalTask
/app/Http/Controllers/LoginController.php
UTF-8
1,036
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class LoginController extends Controller { /** * Handle an authentication attempt. * * @param \Illuminate\Http\Request $request * * @return Response */ public function authenticate(Request $request) { ...
true
3ff208c37d661aaa03e9ce07c1cdb08a4d4a5cf5
PHP
flavorly/laravel-vanilla-components
/src/Datatables/Http/Payload/Concerns/HasSearch.php
UTF-8
484
2.671875
3
[ "MIT" ]
permissive
<?php namespace Flavorly\VanillaComponents\Datatables\Http\Payload\Concerns; trait HasSearch { /** * Stores the search query */ protected string $search = ''; public function withSearch(string $search): static { $this->search = $search; return $this; } public funct...
true
578d6a9f975e816b9723c3f159be6aa158d9e55b
PHP
Insside/inventarios
/librerias/Inventarios_Salidas_Detalles_Devoluciones.class.php
UTF-8
3,230
2.9375
3
[ "MS-PL" ]
permissive
<?php if (!class_exists("Inventarios_Salidas_Detalles_Devoluciones")) { class Inventarios_Salidas_Detalles_Devoluciones { public function crear($datos = array()) { if (is_array($datos)) { $db = new MySQL(Sesion::getConexion()); $sql = "INSERT INTO `inv...
true
dd2d7f9e589fe586c988a774ea52a881c457d173
PHP
statonlab/hardwood
/templates/blast/blast_report.tpl.php
UTF-8
15,690
2.625
3
[]
no_license
<?php /** * Display the results of a BLAST job execution */ // Set ourselves up to do link-out if our blast database is configured to do so. $linkout = FALSE; if ($blast_job->blastdb->linkout->none === FALSE) { $linkout_type = $blast_job->blastdb->linkout->type; $linkout_regex = $blast_job->blastdb->linkout->reg...
true
3bd193e7393fc8e2b580c9bc017b2508b8f728f0
PHP
Lucero1867/ejercicios.php
/NumeroPalindromos.php
UTF-8
177
3.90625
4
[]
no_license
<?php $numero = readline("Ingrese número de 5 dígitos: "); if (strrev($numero) == $numero){ echo "$numero es palindromo"; } else { echo "$numero no es palindromo"; }
true
d349a1b3567c830bd9c1f5ff07cb8c883b30cbca
PHP
QuevinMartinezBotina/Sistema-de-Gestion-de-Inventario
/modulo/modelo/movimientosdao.php
UTF-8
7,576
3
3
[]
no_license
<?php require "conexion.php"; class MovimientoDao extends conexion { /* ---------------------INSERTAR UN MOVIMIENTO------------------------ */ public function insertarMovimiento( $fecha, $id_producto, $cantidad, $precio, $id_proveedor, $id_empleado, $...
true
9f1950254de32d6e98b9b9b0e3533b3cfdef70c2
PHP
masicek/XSLT-Benchmarking-XSLTMark-II
/Tools/Tests/Unit/TestsRunner/Params/XmlParamsDriver/WrongXmlFormatTest.php
UTF-8
2,101
2.546875
3
[]
no_license
<?php /** * XSLT Benchmarking * @link https://github.com/masicek/XSLT-Benchmarking * @author Viktor Mašíček <viktor@masicek.net> * @license "New" BSD License */ namespace Tests\XSLTBenchmarking\TestsRunner\XmlParamsDriver; use \Tests\XSLTBenchmarking\TestCase; use \XSLTBenchmarking\TestsRunner\XmlParamsDriver; ...
true
e87d64a4f84cb999854a8eaec98a41f49fc84805
PHP
JPPSushi/ldv-project
/LDV-Esport/app/Models/SoloTournament.php
UTF-8
433
2.515625
3
[]
no_license
<?php namespace App\Models; use App\Models\Game; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; class SoloTournament extends Model { use HasFactory; protected $fillable = ['title', 'description', 'game_id', 'date_start', 'date_end', 'players', 'cashprize', 'ru...
true
2066b7f17ba5631a72f6bdff12cd3775d79880d8
PHP
rahulyhg/php-3
/rew/rew-framework-dev/database/migrations/20180625110101_honeypot_update.php
UTF-8
2,983
2.640625
3
[]
no_license
<?php use REW\Phinx\Migration\AbstractMigration; /** * More information on writing migrations is available here: * http://docs.phinx.org/en/latest/migrations.html */ class HoneypotUpdate extends AbstractMigration { /** * Migrate Up * @return void */ public function up() { $settin...
true
f4af93a31d7a5648be6396943718f4fd0caa12b9
PHP
ivon-jehann/POOGEN01
/14_exercice/Complexe.php
UTF-8
1,732
3.640625
4
[]
no_license
<?php class Complexe { protected $r; protected $i; public function __construct(float $r, float $i) { $this->i = $i; $this->r = $r; } public function ajouter(Complexe $c): Complexe { $nr = $this->r + $c->getR(); $ni = $this->i + $c->getI(); return new Compl...
true
be2f9f84ef2e396329397ec6b3172f3c62d56814
PHP
assoconnect/php-percent-bundle
/src/Doctrine/DBAL/Types/PercentType.php
UTF-8
1,628
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AssoConnect\PHPPercentBundle\Doctrine\DBAL\Types; use AssoConnect\PHPPercent\Percent; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; use Doctrine\DBAL\Types\Type; class PercentType extends Type { public const TYPE = 'percent'; ...
true
57ac104d33dad81a48664bf65649c322121e6602
PHP
spujadas/exposure
/tests/Exposure/Tests/Model/NotificationTest.php
UTF-8
3,830
2.546875
3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
<?php /* * This file is part of the Exposure package. * * Copyright 2013 by Sébastien Pujadas * * For the full copyright and licence information, please view the LICENCE * file that was distributed with this source code. */ namespace Exposure\Tests\Model; use Exposure\Model\Notification, Sociable\Utility\...
true
95eb0f3b4e416e344df478f585fa2e110a295475
PHP
gathering/objekt
/application/models/role.php
UTF-8
1,018
2.609375
3
[]
no_license
<?php class Role extends Eloquent { public function users(){ return $this->has_many_and_belongs_to('user', 'role_user')->where("deleted", "=", "0"); } public function event(){ return $this->belongs_to('events', 'event_id'); } static function non_current(){ $event = Config::get('application.event'); re...
true
5ecbf4bd57634b48f175d05fd47008d657804a29
PHP
estefaniadlff/introProgra
/fibonacci2.php
UTF-8
822
3.421875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Segunda ventana</title> </head> <body> <h1>tus valores se muestran aqui </h1> <?php $opcion2=$_POST['opcion']; $valor2=$_POST['valor']; if ($opcion2=='cuadrado') { $cuboo=$valor2*$valor2; echo "El cuadrado del num...
true
bbaa3b195957ceb5f21949a6cfb86aa05d43a54f
PHP
linhaiqing/demo
/app/index/controller/Php.php
UTF-8
1,054
3.125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\index\controller; /** * PHP函数控制器 * Class Preg */ class Php { /** * array_map() 函数将用户自定义函数作用到数组中的每个值上,并返回用户自定义函数作用后的带有新值的数组。 * @author haiqing.lin * @date 2019/11/19 0019 */ public function arrayMap() { $a = array(1, 2, 3, 4, 5); ...
true
10ffde9edfc1e774810fbce4fb2b03d1fb53a989
PHP
daw2-casado20/NF1-PAC03-Collections---Pas-1
/abstract_widget.php
UTF-8
4,385
3.171875
3
[]
no_license
<?php interface Observer { public function update(Observable $subject); } abstract class Widget implements Observer { protected $internalData = array(); abstract public function draw(); public function update(Observable $subject) { $this->internalData = $subject->getData(); } } class BasicWid...
true
8d46b611a2695cc567d20bd90e2449a0e0e10395
PHP
KT38/project2-server-app
/check.php
UTF-8
2,242
3.046875
3
[]
no_license
<?php require_once("config.php"); //セッションからデータをとる session_start(); $id = $_SESSION['join']['id']; $pass = $_SESSION['join']['pass']; $sex = $_SESSION['join']['sex']; $bloodtype = $_SESSION['join']['bloodtype']; $year = $_SESSION['join']['year']; $month = $_SESSION['join']['month']; $day = $_SESSION['join']['day']; $...
true
64bbe0b090a28d82eeab3faf9ae1b02cdfa3362f
PHP
pvbergen/ch.bfh.bti7054.w2014.p.ShareShop
/lib/Shareshop/Config.php
UTF-8
828
2.84375
3
[]
no_license
<?php namespace Shareshop; use Shareshop\Config\Tree; class Config extends Tree { protected $_data = array(); public function __construct($path, $targetSection = 'production') { $break = false; $configData = parse_ini_file($path, true); $tree = array(); foreach($configData as $section => $data) { ...
true
0d9779227b5d16ee66126f9b4316b6cab595f4b0
PHP
malzj/jyfl
/includes/sms.php
UTF-8
1,828
2.875
3
[]
no_license
<?PHP header("Content-Type: text/html; charset=UTF-8"); class sms{ public function sms($verify){ $flag = 0; $params='';//要post的数据 $verify=$verify;//需要发送的内容 //$verify = rand(123456, 999999);//获取随机验证码 //以下信息自己填以下 $mobile='';//手机号 $argv = array( 'name'=>'15321431385', //必填参数。用户账号 'pwd'=>'6...
true
a20ce3234720458cf744c34eee1845440148b18f
PHP
walteraugustoramos/sicade
/controller/UserLoginDAO.class.php
UTF-8
4,901
3.1875
3
[]
no_license
<?php class UserLoginDAO{ public function Login($user_name,$user_password){ $PDO = connection(); try{ // inicia a transação $PDO->beginTransaction(); $sql = 'SELECT *FROM users WHERE user_name = :user_name AND password = :user_password'; $statement = $PDO->prepare($sql); $statemen...
true
bd32ea9bd965f35dc0c46540db61986c0a743039
PHP
sition/elasticio-shopware-api-extension
/Core/ElasticioApiExtension/Controllers/Api/Countries.php
UTF-8
1,163
2.59375
3
[]
no_license
<?php class Shopware_Controllers_Api_Countries extends Shopware_Controllers_Api_Rest { /** * @var Shopware\Components\Api\Resource\Country */ protected $resource = null; public function init() { $this->resource = \Shopware\Components\Api\Manager::getResource('country'); } /*...
true
76b1dc02e3db126611f28e2e9800d2395f120392
PHP
whd143/Core
/admin/update_profile.php
UTF-8
2,046
2.65625
3
[]
no_license
<?php require_once "include/setting.inc.php"; if (isset($_REQUEST['submit'])) { $name = isset($_REQUEST['name']) ? $_REQUEST['name'] : ''; $username = isset($_REQUEST['username']) ? $_REQUEST['username'] : ''; $email = isset($_REQUEST['email']) ? $_REQUEST['email'] : ''; $password = isset($_REQUEST['p...
true
61ca942fedd749a28619af752f3060e31b935c22
PHP
Scalpweb/ScalpianFramework
/lib/class.session.php
UTF-8
419
3.09375
3
[]
no_license
<?php class Session extends Singleton { public function exists($ref) { return isset($_SESSION[$ref]); } public function set($ref, $value) { $_SESSION[$ref] = $value; } public function get($ref) { if (!isset($_SESSION[$ref])) trigger_error("Unknown session variable: " . $ref); return $_SESSION[$re...
true
6b05c25da06d88ab09b086e4417676dd28313150
PHP
NotHazed/InformationServer
/Services/amfActionService.php
UTF-8
1,689
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of openPanfu, a project that imitates the Flex remoting * and gameservers of Panfu. * * @category AMF Service * @package com.pandaland.api.service * @author Altro50 <altro50@msn.com> */ require_once 'Vo/AmfResponse.php'; require_once 'Vo/UserActionDailyVO.php'; class amfActionServ...
true
f762aeca76ed250a0d73214028694468f61a677c
PHP
mbed67/sanghaplanner
/app/Commands/ToggleRoleCommand.php
UTF-8
768
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Commands; use App\Commands\Command; use Sanghaplanner\Users\UserRepositoryInterface; use Laracasts\Flash\Flash; use Illuminate\Contracts\Bus\SelfHandling; class ToggleRoleCommand extends Command implements SelfHandling { /** * @var int */ protected $userId; /** * @var ...
true
36e5c2241c0884b51e1467b972bb7305d964d387
PHP
Affenpilot/simplePHPRouter
/Configuration/Configuration.php
UTF-8
560
3.046875
3
[]
no_license
<?php namespace Configuration; /** * Class Configuration. */ class Configuration { /** * @var array */ private static $registry = []; /** * @param $key * @param $value */ public static function set($key, $value) { self::$registry[$key] = $value; } /** ...
true
6259124198eff1f67aceb67b43e2db37e81f7b97
PHP
AVKlubovich/AutoReview
/web/errors.php
UTF-8
1,449
2.796875
3
[]
no_license
<?php class Errors { const INCORRECT_RESPOSE = "-1"; const NOT_SEND_SET_PHOTOS = "-2"; const NOT_SEND_DATA_TO_REMORE_SERVER = "-3"; const CALL_DB = "-4"; const NOT_SEND_FIELD = "-5"; const NOT_SAVE_FILE = "-6"; const COMPANY_URL_NOT_FOUND = "-7"; private $data = NULL; private s...
true
ce487fd5667a315ab20cb3cee46ec17c4eb00f33
PHP
ahmedateftefa17/lang-excel-converter
/public/export.php
UTF-8
10,700
2.5625
3
[ "MIT" ]
permissive
<?php require '../vendor/autoload.php'; ?> <?php $folder = '../tmp/exports'; $files = glob($folder . '/*'); foreach($files as $file){ if(is_file($file) && fileatime($file) < (time() - 1800)) { unlink($file); } } $folder = '../tmp/imports'; $files = glob($folder . '/*'...
true
ab1822a012f16bb2a547c26cdece1a8236f95fec
PHP
Atc-it/victoire
/Bundle/CoreBundle/Cache/ApcCache.php
UTF-8
2,153
2.78125
3
[ "MIT" ]
permissive
<?php namespace Victoire\Bundle\CoreBundle\Cache; use Symfony\Component\HttpKernel\Config\FileLocator; /** * this class handle cache system **/ class ApcCache { protected $cache; protected $debug; /** * Constructor * * @param unknown $cache * @param boolean $debug The ...
true
294971b60616809d2ed211eae83bf21f05760d90
PHP
KevinCoworks/schema-org
/SchemaOrg/Mapping/Type/Article.php
UTF-8
3,017
3.046875
3
[]
no_license
<?php namespace SecIT\SchemaOrg\Mapping\Type; use SecIT\SchemaOrg\Mapping\Property; /** * Class Article. */ class Article { /** * @var Property\ArticleBody */ private $articleBody; /** * @var Property\ArticleSection */ private $articleSection; /** */ private $id; /** * @var Property\PageEnd ...
true
f4cfb47e5c3a40004823e76b5ae5569a66aa7b9e
PHP
albeorte96/MiniforoCine
/MINIFORO Cine/app/funciones.php
UTF-8
185
2.609375
3
[]
no_license
<?php function usuarioOK( $nombre, $clave){ if( (strlen($nombre) >= 8) && ($clave == strrev($nombre)) ){ return true; }else{ return false; } } ?>
true
7c5ccb86df73b93d73722d102fa0a994fd58ef2d
PHP
ALTYX20/rms-medical-back
/src/Service/interfaces/CompanyServiceInterface.php
UTF-8
462
2.53125
3
[]
no_license
<?php namespace App\Service\interfaces; use Symfony\Component\HttpFoundation\Request; interface CompanyServiceInterface { function getAllCompanys(); function getcompanyById(int $id); function SetCompany(Request $request); function DeleteCompany(int $id); function ModifyCompany(int $id, Request $...
true
d66857aa4f0ef927400794abb935dde16b86c399
PHP
s4831823/gym
/CD104G3/js/checkLoginOrNot.php
UTF-8
1,232
2.84375
3
[ "MIT" ]
permissive
<?php session_start(); //檢查你的session裡有沒有memId //有的話把你其他session都叫出來用 // if(isset($_SESSION['memId']) == true){ // echo $_SESSION['memNo'].'|'; // echo $_SESSION['memId'].'|'; // echo $_SESSION['memName'].'|'; // echo $_SESSION['memEmail'].'|'; // echo $_SESSION['memImg'].'|'; // ech...
true
428840848eb71207230c58ad463740c112919829
PHP
ufal/korektor
/web/lindat-service/log.php
UTF-8
782
2.546875
3
[ "BSD-2-Clause" ]
permissive
<?php date_default_timezone_set('UTC'); # Use CORS. header("Access-Control-Allow-Origin: *"); # Do we have required arguments? if (array_key_exists('original', $_POST) && array_key_exists('korektor', $_POST) && array_key_exists('corrected', $_POST)) { # Format log. $line = trim(strtr($_POST["original"], ...
true
426c8a806b2846f18c34d3a135f365f18135a7d9
PHP
remi-san/message-app
/src/Message/Sender/TransactionalMessageSender.php
UTF-8
2,433
2.953125
3
[ "MIT" ]
permissive
<?php namespace MessageApp\Message\Sender; use MessageApp\Message; use RemiSan\TransactionManager\Exception\BeginException; use RemiSan\TransactionManager\Exception\CommitException; use RemiSan\TransactionManager\Exception\NoRunningTransactionException; use RemiSan\TransactionManager\Exception\RollbackException; use ...
true
c8d21f4c117724a1f533802f6ba94fa6ccf39d11
PHP
sizukutamago/gourmet-map
/packages/Acme/UseCases/LoadFile/StoreCollectionRequest.php
UTF-8
689
2.75
3
[]
no_license
<?php declare(strict_types=1); /** * Created by PhpStorm. * User: sizukutamago * Date: 2019/04/06 * Time: 14:57 */ namespace Acme\UseCases\LoadFile; use Acme\Domain\Adapters\GetStoreInfomationInterface; class StoreCollectionRequest implements \IteratorAggregate { private $list = []; public function ad...
true
2f65cfd8635951069c63a9af65dad94515985146
PHP
bramkorsten/Stage-Prototype-1
/phploy/api/connection.php
UTF-8
1,141
3
3
[ "MIT" ]
permissive
<?php /** * Deployer, A web deployment tool for servers, based on PHPloy * * @author Bram Korsten <exentory@gmail.com> * * @link https://github.com/banago/PHPloy * @licence MIT Licence * * @version 1.0.0 */ namespace Analogue\Deployer; use PDO; class Connection { /** * @var string */ protected $...
true
d9959d5ef64362f16ce189b3a7a3607f441f3499
PHP
Dragory/Aikajana
/application/models/ChartDrawer.php
UTF-8
14,313
3.171875
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class ChartDrawer { // The start and end of the chart private $startDatetime, $endDatetime, // Widths for different intervals. The month width is used as a base for the others. $monthWidth = 10, $yearWidth, $decadeWidth, // The total width and height for the ...
true
db8ee9ce1d023c8043ea2ad0e895817b5eda3fa4
PHP
marke123/shipping
/tests/UPS/RateTest.php
UTF-8
4,446
2.515625
3
[ "MIT" ]
permissive
<?php namespace pdt256\Shipping\UPS; use pdt256\Shipping\RateRequest\StubUPS; use pdt256\Shipping\Ship; use pdt256\Shipping\Package; use pdt256\Shipping\Shipment; use pdt256\Shipping\Quote; use PHPUnit\Framework\TestCase; class RateTest extends TestCase { /** @var Shipment */ protected $shipment; protect...
true
ee7692a279adde146db11318dd6e311baf321da8
PHP
OnsAll/24i-assignment
/src/utils.php
UTF-8
303
3.171875
3
[]
no_license
<?php /** * * @param string $duration * @return int */ function convertTimeToSeconds($duration){ [$hours, $minutes, $seconds] = explode(':', $duration); $durationSeconds = $hours * 60 * 60 + $minutes * 60 + $seconds; return $durationSeconds; }
true
b4250a251c6163d3d95a3a6fbfb81bcd52a5a1ed
PHP
BookStackApp/BookStack
/tests/Commands/ResetMfaCommandTest.php
UTF-8
2,353
2.53125
3
[ "LGPL-2.1-only", "BSD-3-Clause", "LGPL-3.0-only", "LGPL-2.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
<?php namespace Tests\Commands; use BookStack\Access\Mfa\MfaValue; use BookStack\Users\Models\User; use Tests\TestCase; class ResetMfaCommandTest extends TestCase { public function test_command_requires_email_or_id_option() { $this->artisan('bookstack:reset-mfa') ->expectsOutput('Either a...
true
385bb7226539885c33d37df78b534285d02304e5
PHP
commonhelp/commonhelp
/src/Commonhelp/Orm/Sql/Node/Node.php
UTF-8
692
2.90625
3
[]
no_license
<?php namespace Commonhelp\Orm\Sql\Node; use Commonhelp\Util\Expression\AstTreeExpression; use Commonhelp\Util\Expression\Visitor; class Node extends AstTreeExpression{ const IS = 6; const ISNOT = 7; protected $value; public function getValue(){ return $this->value; } public function setValue($value)...
true
76f31bcd50be555e7f87e6f8fa99470356ba2a73
PHP
luigif/WsdlToPhp
/samples/ebay-trading/Account/Type/EbayTradingTypeAccountEntrySortTypeCodeType.php
UTF-8
3,699
2.640625
3
[]
no_license
<?php /** * Class file for EbayTradingTypeAccountEntrySortTypeCodeType * @date 04/07/2012 */ /** * Class EbayTradingTypeAccountEntrySortTypeCodeType * @date 04/07/2012 */ class EbayTradingTypeAccountEntrySortTypeCodeType extends EbayTradingWsdlClass { /** * Constant for value 'None' * Meta informations : *...
true
e12009ec6fc42369514032213e576a966280a892
PHP
niyazaki/RoseDeDamas2
/src/Entity/Sweet.php
UTF-8
2,390
2.65625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use ApiPlatform\Core\Annotation\ApiResource; use Symfony\Component\Validator\Constraints as Assert; /** * @ApiResource() * @ORM\Entity(repositoryClass="App\Rep...
true
16a986ce1013b8ef487c5d40ef2494d52b980a4b
PHP
ninotsiklauri/PHP_Laboratory_2
/page1.php
UTF-8
1,993
3.25
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>N1</title> <style> .container{ margin: auto; border: solid blac...
true