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
b102d2d379b17e6d1494a8ee236ee90b6b2e12aa
PHP
verbraund/laravel-base-app
/app/Http/Middleware/CheckAllowedIps.php
UTF-8
735
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class CheckAllowedIps { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $...
true
ee933a209a49044031865411cbad553aa37de0a5
PHP
thisdata/thisdata-php
/src/ThisData.php
UTF-8
2,820
2.984375
3
[ "MIT" ]
permissive
<?php namespace ThisData\Api; use ThisData\Api\Endpoint\EventsEndpoint; use ThisData\Api\Endpoint\VerifyEndpoint; use ThisData\Api\RequestHandler\RequestHandlerInterface; /** * ThisData Client * * Provides an abstraction over the pure HTTP client specific to interacting * with the ThisData API. * * For advance...
true
b8225aded05fbdd2dc7b5a89460717cf81c5e763
PHP
LiveTyping/hermitage
/foundation/images/Storage.php
UTF-8
2,314
2.921875
3
[ "MIT" ]
permissive
<?php namespace livetyping\hermitage\foundation\images; use livetyping\hermitage\foundation\contracts\images\Storage as StorageContract; use livetyping\hermitage\foundation\entities\Image; use livetyping\hermitage\foundation\exceptions\ImageNotFoundException; use League\Flysystem\FilesystemInterface; /** * Class St...
true
739b728a89e6eb520e21d2de1bbbd7c46c3acbba
PHP
danielso2007/curso_basico_php
/aula01/config.php
UTF-8
309
2.515625
3
[]
no_license
<?php $mysql = new mysqli('db', 'root', 'root', 'blog', '3306'); $mysql->set_charset('utf8'); if (!$mysql) { echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging error: " . mysqli_connect_error() . PHP_EOL; exit; }
true
62d5436c0fac1ee0b0fb2b2d11b5e3eb1adbcf09
PHP
robertsantosti/projeto_infotec
/banco_usuario.php
UTF-8
299
2.515625
3
[]
no_license
<?php function listaUsuario($conexao){ $usuarios = array(); $resultado=mysqli_query($conexao, "SELECT * FROM cadastro"); while($usuario = mysqli_fetch_assoc($resultado)){ array_push($usuarios, $usuario); } return $usuarios; } ?>
true
29c3710ddb4f892aee53f1b8304f65706be0d537
PHP
CaryLorrk/displayshop
/templates/products.list.php
UTF-8
1,716
2.515625
3
[]
no_license
<?php function products_item($id, $title, $dl, $idx, $detail) { $base_thumbnail_url = "static/img/thumbnails/"; $format = ' <section id="%1$s"> <div class="row"> <div class="col-sm-4"> <a href="javascript:;" ng-click="open_lightbox(%5$s)"> <img src="%2$s" class=...
true
80fc3d3a74369ed3f085ce5425798a28c7891f90
PHP
zweed4u/practicephp
/object_oriented/phpoop.php
UTF-8
6,572
4.1875
4
[]
no_license
<html> <head> <title> <?php echo "PHP Object Oriented Programming"; ?> </title> </head> <body> <?php // Super class class Animal implements Singable { //public //any code can access this //private //only methods in this class can access/change it ...
true
a74361150368053a88f6d2a42793814c47a83e6e
PHP
TheJakeP/ds-waves-2.0
/classes/generics/paginators/table.php
UTF-8
478
2.59375
3
[]
no_license
<?php namespace waves; // class brand implements pagination_as_grid, paginate_as_accordion, waves_objects{ class table extends paginator { public function __construct($array, $entries_per_page){ $this->set_class_variables($array, $entries_per_page); $this->prepare_data(); } /* Build thes...
true
999c17764470243a2d443ffae939b25b11826160
PHP
fabianthumm/competition-parser
/classes/Helpers/CompetitionParser.php
UTF-8
22,245
2.59375
3
[]
no_license
<?php namespace CompetitionParser\Classes\Helpers; use PHPStan\Command\AnalyseApplication; class CompetitionParser { protected $config; private $nameRegex; private $firstNameRegex; private $lastNameRegex; private $timeRegex; private $dqTimes; private $dnsTimes = []; public...
true
49cf7b6edba106c4ab6cc6bdf8e3fa40815a3035
PHP
mikegibson/sentient
/src/Utility/InflectorInterface.php
UTF-8
2,348
3.265625
3
[ "MIT" ]
permissive
<?php namespace Sentient\Utility; interface InflectorInterface { /** * Return $word in plural form. * * @param string $word Word in singular * @return string Word in plural */ public function pluralize($word); /** * Return $word in singular form. * * @param string $word Word in plural * @return...
true
b6fb7ff8b8aeedb37c67d87b7a19a02707f0ceef
PHP
Alesom/ESII-Controle-de-Estoque
/gerapdf.php
UTF-8
5,670
2.890625
3
[]
no_license
<?php /* Licença: MIT Alunos: Alesom, André, Eduardo, Jardel, João Barp, Jovani e Kétly Disciplina: Engenharia de Software II Arquivo geraPDF: é responsável gerar o relatório em PDF a partir do código html */ require_once( 'tcpdf/tcpdf.php' ); require_once( 'tcpdf/config/tcpdf_config.php' ); $ano = ''; $mes = ''; $dti...
true
7ee2ac98f1a519e493796949545ddd4282224603
PHP
Tupsi/pathfinder
/app/Cron/CcpSystemsUpdate.php
UTF-8
6,643
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: exodus4d * Date: 09.03.15 * Time: 21:31 */ namespace Exodus4D\Pathfinder\Cron; use Exodus4D\Pathfinder\Lib\Db\Sql; class CcpSystemsUpdate extends AbstractCron { /** * log text */ const LOG_TEXT = ' → [%.3Fs prepare table, %.3Fs jump, %.3Fs kill, %.3Fs...
true
8de6a3d5271a74b4377bf7d6a320006aecec7819
PHP
ryu-gen/p10-careeradviser
/guidance_list.php
UTF-8
810
2.546875
3
[]
no_license
<?php include('page_header.php'); //画面出力開始 require_once('db_inc.php'); //データベース接続 echo "<h2>ガイダンス等一覧</h2>"; $sql = "SELECT gid, gname, gtime FROM tb_guidance" ;//検索条件を適用したSQL文を作成 $rs = mysql_query($sql, $conn); if (!$rs) { die ('エラー: ' . mysql_error()); } $row = mysql_fetch_array($rs) ; echo '<table class="ta...
true
f076fde20c91019dc45d80572000bbe798e39cb5
PHP
Mariacamilleri/mcast-student-companion
/libraries/database.php
UTF-8
9,884
3.03125
3
[]
no_license
<?php // Connects to the MySQL database. function connect() { // 1. Assign a new connection to a new variable. $link = mysqli_connect('localhost', 'root', '', 'mcast_sc_db') or die('Could not connect to the database.'); // 2. Give back the variable so we can always use i...
true
1d619dd34804f1901508601c1ad747a9c9aaf178
PHP
hungsalsa/axuan.7002.vut.vn
/quantri/modules/products/models/mini/ProductImages.php
UTF-8
1,445
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace quantri\modules\products\models; use Yii; /** * This is the model class for table "tbl_product_images". * * @property int $id * @property int $product_id * @property string $image * @property string $seo_alt * @property int $created_at * @property int $updated_at */ class ProductImages exten...
true
1e063385465990422e6f3083479a470bbe896272
PHP
MoraesGil/laravel-blog
/app/Transformers/RoleTransformer.php
UTF-8
393
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use League\Fractal\TransformerAbstract; use App\Role; class RoleTransformer extends TransformerAbstract { /** * Transform a role. * * @param Role $role * @return array */ public function transform(Role $role): array { return [ ...
true
44823b30f58822e2b19607f5124feacb2f4bef5c
PHP
sdgdsffdsfff/twemproxy-redis-helper
/lib/redisConf.php
UTF-8
2,825
2.640625
3
[]
no_license
<?php class RCT_RedisConf { protected $ini_file = null; protected $conf_tpl_file = null; protected $ini = array(); public function __construct( $ini_file, $conf_tpl_file ) { $this->ini_file = $ini_file; $this->conf_tpl_file = $conf_tpl_file; $this->parseIni(); } protected function parseIni() { $ori_in...
true
6594a90f94c8ef1db7662cdd2725c812e22140af
PHP
devilstars/opendtf_tall
/app/Console/Commands/AssignSuperUserACL.php
UTF-8
904
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Models\User; use Illuminate\Console\Command; class AssignSuperUserACL extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'acl:super-user {userId}'; /** * The console comma...
true
b1afd2390db4b243ad83d26224695a618eb66ef6
PHP
mashiroalexis/LexiPHP
/database/migration/AccountsMigration.php
UTF-8
630
2.71875
3
[ "MIT" ]
permissive
<?php /** * Copyright © Ramon Alexis Celis All rights reserved. * See license file for more info. */ Class AccountsMigration extends Database_Model_Schema { /** * Run the migration * @return void */ public function up() { // create table $this->create('accounts'); $this->increments("id"); $this->st...
true
607c65c113cc4480be60a31d6a7bda156dfba9ec
PHP
clienit/ContinuumEconomicsCRM
/app/Http/Requests/StoreClient.php
UTF-8
991
2.71875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreClient extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'first_name' => 'required', ...
true
5e08f53f27a007dd2ddb5d50b2fb700d4dfaf420
PHP
Motzee/enterprise
/classes/entreprise.php
UTF-8
2,265
3.21875
3
[ "MIT" ]
permissive
<?php class Entreprise { protected $employes ; protected $chiffreAffaire ; protected $benefices ; public function __construct(array $listeEmploye, int $CA) { $this -> setEmployes($listeEmploye) ; $this -> setCA($CA) ; $this -> benefices = 0 ; } /*fonctions SET */ pu...
true
19b170a254c4a2b519fdb64bc2ea969b06fd6990
PHP
timhunt/moodle-local_codechecker
/PHPCompatibility/Tests/UseDeclarations/NewUseConstFunctionUnitTest.php
UTF-8
2,365
2.625
3
[]
no_license
<?php /** * PHPCompatibility, an external standard for PHP_CodeSniffer. * * @package PHPCompatibility * @copyright 2012-2020 PHPCompatibility Contributors * @license https://opensource.org/licenses/LGPL-3.0 LGPL3 * @link https://github.com/PHPCompatibility/PHPCompatibility */ namespace PHPCompatibility...
true
fe817a7a15f79f8d4f0224d72fff444003cb7d83
PHP
clgrana/php-api-crud
/src/app/model/modelUf.php
UTF-8
789
2.78125
3
[]
no_license
<?php require_once('../app/model/model.php'); class modelUf extends model { public function list() { try { $sql = "Select * from uf order by uf.uf asc"; $stmt = $this->dbconnection->prepare($sql); $stmt->execute(); return $stmt->fetchAll(); } cat...
true
cfb0ddc334966a32f942da0e2319ceb332bb28aa
PHP
0thunder0/wpThemes
/Newspaper/includes/class/td_page_views.php
UTF-8
3,068
2.546875
3
[]
no_license
<?php class td_page_views { static $post_view_counter_key = 'post_views_count'; //the name of the field where 7 days counter are kept(in a serialized array) for the given post static $post_view_counter_7_day_array = 'post_views_count_7_day_arr'; //the name of the field for the total of 7 days sta...
true
4e34cb3ce7e1e0ab9f769b92c59e7cbb9141103a
PHP
clearthecity/kamloopsbikerental
/bikerental.php
UTF-8
7,916
2.578125
3
[]
no_license
<?php if (!isset($_SERVER['HTTPS'])) { $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header("Location: " . $url); exit; } if (empty($_POST['page'])) { $display_mode = 'nomodal'; include 'start.php'; exit; } session_start(); require 'model.php'; /* Commands from start page: ...
true
5f55fd7eb39e2356a39f25a33e300d2238450e9e
PHP
san-ratul/librarymanagementsystem-raw-PHP
/books/reserveBooksAction.php
UTF-8
407
2.609375
3
[]
no_license
<?php include_once "../_include/db/Book.php"; $book = new Book(); if(isset($_POST['sid']) && isset($_POST['bid'])){ $sid = $_POST['sid']; $bid = $_POST['bid']; $bookReserved = $book->reserveBook($sid,$bid); if($bookReserved == 1){ echo '<p class="text-success">Book Reserved Succesfully</p>'; ...
true
c30ff90ee014b97a56a49edb8a1de8fe348b923b
PHP
team-telnyx/telnyx-php
/tests/api_resources/RegulatoryRequirementTest.php
UTF-8
913
2.5625
3
[ "MIT" ]
permissive
<?php namespace Telnyx; /** * @internal * @covers \Telnyx\RegulatoryRequirement */ final class RegulatoryRequirementTest extends \Telnyx\TestCase { const TEST_RESOURCE_ID = '123'; public function testIsListable() { $this->expectsRequest( 'get', '/v2/regulatory_requireme...
true
d27aa7b01f1175ef577a3a7c1ca621ab2647dfe4
PHP
claire958/projet5
/model/frontend/Manager.php
UTF-8
432
2.8125
3
[ "MIT" ]
permissive
<?php namespace OpenClassrooms\Blog\Model; /** * Class Manager * @package OpenClassrooms\Blog\Model * Connexion à la base de données */ class Manager { protected function dbConnect() { $db = new \PDO(PDO_CONNECT, DBUSER, DBPASSWD); $db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEP...
true
7bd88985335f4b8b282904642757911b836f01c8
PHP
jasarsoft/us-webdev
/predavanje04/primjer/potvrda.php
UTF-8
1,018
2.78125
3
[ "MIT" ]
permissive
<!DOCTYPE html> <?php //prihvatanje podataka iz HTML forme $ime=$_POST['ime']; $prezime=$_POST['prezime']; $placanje=$_POST['placanje']; $kolicina=$_POST['kolicina']; define('ETHCENA', 850); ?> <html> <head> <title> Potvrda o transakciji </title> </head> <body> <?php // iznos je cena ...
true
581c1e0a84cc3be71b534fe3fa98c8fc2be883b5
PHP
krypt0nboy/drupal-entity_toolbox
/entity_toolbox.info_queries.inc
UTF-8
6,763
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * Returns the toolbox info labels. * * @param string $entity_type * The entity type. * @param string $label * The label to return. * * @return string|array */ function entity_type_labels($entity_type, $label = NULL) { $controller = entity_toolbox_controller($entity_type); $helper = $cont...
true
aac22d2d7738a96700f0b59a38ff3686d4c80d6d
PHP
felipebool/opencart
/catalog/model/extension/payment/mundipagg_credit_card.php
UTF-8
3,742
2.5625
3
[]
no_license
<?php use Mundipagg\Log; class ModelExtensionPaymentMundipaggCreditCard extends Model { /** * Get credit cards images from json * * @param Strin $brandName Credit card brand name * @return Object */ public function getCreditCardBrands($brandName = null) { try { ...
true
0863b1e8b18d0a0834cb6f4dcc4e4f3a04138db4
PHP
levantrieu19081995/share
/LuanVan_Thang/xampp/Thang/get_danhsachloaixe.php
UTF-8
993
2.65625
3
[]
no_license
<?php // http://localhost/Thang/get_danhsachloaixe.php require_once("connect.php"); connectToServer($conn); //1. tạo class đối tượng class danhsach_loaixe { function danhsach_loaixe( $MaHangSX,$TenHangSX) { $this->mahangsx = $MaHangSX; $this->tenhang = $TenHangSX; } } //2. khởi tạo mảng kháo học quốc...
true
d0214f8536f62e80ab8833b8ded101ace8363a24
PHP
cristianawktec/awk
/audita/modulos/auditoria/relatorio_notasfiscais.php
MacCentralEurope
1,824
2.671875
3
[]
no_license
<?php header("Content-Type: text/html; charset=ISO-8859-1",true); /* * carrega a classe a ser instanciada quando chamada */ function __autoload($classe){ $pontos = array("./", "../", "../../"); foreach($pontos AS $ponto){ if(file_exists("{$ponto}class/{$classe}.class.php")){ //echo "{$ponto}class/{$classe}....
true
dfd616ca4319cef2a10fbf7964b77455fe8d1c95
PHP
ranvis/php-mecab
/mecab/examples/dumpall-ns2.php
UTF-8
1,968
2.71875
3
[ "MIT" ]
permissive
<?php /** * php-mecab/examples * dump all nodes (with SPL and Overloading) * charset=utf-8 */ require_once dirname(__FILE__) . '/common.inc.php'; $mecab = new MeCab\Tagger($arg); function call_format($node) { return format($node->surface, $node->feature, $node->id, $node->stat); } if ($iter = $mecab->parseT...
true
ae08d95bd2036ae83541435f191ce3312bd9c290
PHP
ETombuyses/jo-2024-symfo
/src/Controller/SportListSelectedPracticeController.php
UTF-8
3,835
2.625
3
[]
no_license
<?php namespace App\Controller; use App\Repository\SportsFacilityRepository; use App\Repository\SportsFamilyRepository; use App\Repository\SportsPracticeRepository; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\Routing\Annota...
true
bbb558dd16f0c4bf74fc1a07f24e4428ceeb97c8
PHP
Muzamil-Ahmad/Blog-In-ZendFramework
/module/Application/src/Application/Entity/Tasklist.php
UTF-8
2,581
2.5625
3
[]
no_license
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** * Tasklist * * @ORM\Table(name="tasklist") * @ORM\Entity */ class Tasklist { /** * @var integer * * @ORM\Column(name="taskid", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY"...
true
5684cfba2088deee5dfaba254bfcd2731f09bdb4
PHP
pokap/pok-cms
/pok/Apps/Models/Base/Requete.php
ISO-8859-1
6,581
2.640625
3
[]
no_license
<?php ############################################################################### # LEGAL NOTICE # ############################################################################### # Copyright (C) 2008/2009 Florent Denis ...
true
7505d636f2a78e944c7679872e7cbfa62beb300a
PHP
R0vi/Examenproject
/delete_cursus.php
UTF-8
718
2.671875
3
[]
no_license
<?php //ophalen Database connectie require_once 'connection.php'; $connection = new Connection(); $db = $connection->getDb(); // //check of iemand admin is if ($_SESSION['login']['rechten'] == "admin"){ // } else { header('Location:index.php'); } // //kijken of $GET gevult is en dan de cursus uit de database...
true
52774abe832518afe1327f26b9ca8f89c03b7819
PHP
tarikmanoar/xenforo
/src/XF/InlineMod/SimpleAction.php
UTF-8
1,536
2.625
3
[]
no_license
<?php namespace XF\InlineMod; use XF\Mvc\Entity\Entity; use function is_string; class SimpleAction extends AbstractAction { protected $title; protected $canApply; protected $apply; public function __construct(AbstractHandler $handler, $title, $canApply, \Closure $apply) { parent::__construct($handler); ...
true
cdd0a2a3619045527b4f3dfbf031bbac972033fa
PHP
hashx101/INFO256-final-project
/theme-finder/log.php
UTF-8
1,556
2.609375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Activity Log: Theme finder usability study </title> <link rel="stylesheet" href="style/similar-sentences.css"> </head> <body> <?php include "config.php"; $instance = array_key_exists("instance", $_GET) ? $_GET["instance"] : ""; connect($instance); $sql = "SELEC...
true
093c7bbf5ef28c7193da36ca0e6dc1f3f880d1b6
PHP
jundar/TheAnti
/src/Situation/Situation.php
UTF-8
1,004
3.03125
3
[ "MIT" ]
permissive
<?php namespace TheAnti\Situation; /* * Represents the current situation in a round. * This is used by the AI/Human in order to make decisions. * It's currently more of a struct than a class, * as I really only need a convenient way to pass a bunch of assorted info * around. * This will be updated later. */ cl...
true
be3a7984d8267bb7a2d956836e7b8df5c1e68644
PHP
Mikel1961/contentinum-components
/ContentinumComponents/Storage/AbstractStorageEntity.php
UTF-8
7,935
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * contentinum - accessibility websites * * LICENSE * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED....
true
208a188fc9df02e926e917b140b7118690922fdd
PHP
paolaperalta/repaso_laravel
/app/Http/Controllers/MovieController.php
UTF-8
1,647
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Movie; use App\Genre; class MovieController extends Controller{ public function index(){ $movies = Movie::all(); return view ('movies.index')->with('movies', $movies); } public function create(){ ...
true
1070d25123522d03c3f435091f013e08c54dc67c
PHP
Dmansuy/ipssi-oop-php-2017
/ipssi-oop-php-2017/src/Conferences/Factory/AttendeesControllerFactory.php
UTF-8
495
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace Conferences\Factory; use Conferences\Controller\AttendeesController; use Conferences\Repository\AttendeesRepository; use Psr\Container\ContainerInterface; final class AttendeesControllerFactory { public function __invoke(ContainerInterface $container) : Atten...
true
14f3fde8e8a6a57d3b56e7831a320d0621de3485
PHP
darrenjacoby/intervention
/src/Admin/Support/Menu.php
UTF-8
2,991
2.640625
3
[ "MIT" ]
permissive
<?php namespace Jacoby\Intervention\Admin\Support; use Jacoby\Intervention\Support\Config; use Jacoby\Intervention\Support\Str; /** * Support/Menu * * @package WordPress * @subpackage Intervention * @since 2.0.0 * * @link https://developer.wordpress.org/reference/hooks/admin_menu/ * @link https://developer.w...
true
2da0496a6282bef40b30e81b26df52b83738c32b
PHP
StephenOrJames/MultipleChoice
/mathematics/6.php
UTF-8
1,266
2.859375
3
[]
no_license
<?php require '../mc.php'; $items = array( // 1 new Item( 'How many metres are in a 20 centimetres?', array( '0.2', '2', '2 000', '0.02' ) ), // 2 new Item( 'A man caught 5 litres of water in a bucket. He then poured out a half of the water. How many decilitres of water remain in the bucket?', array( '25...
true
32d74c0371cd69d6933b83fddcb3119374c45ea3
PHP
thats4shaw/silverstripe-framework
/src/ORM/RelationList.php
UTF-8
2,442
3
3
[ "CC-BY-3.0", "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\ORM; use Exception; /** * A DataList that represents a relation. * * Adds the notion of a foreign ID that can be optionally set. */ abstract class RelationList extends DataList implements Relation { /** * Any number of foreign keys to apply to this list * * @retur...
true
62ee48c6238861708af48b70f29c14708ef3a8b3
PHP
mdjannatulhasan/formPhp
/process.php
UTF-8
252
2.625
3
[]
no_license
<?php echo "Hello"; $titles = ['Male','Female','Other']; if (isset($_POST['submit'])) { //to check if the form was submitted $username= $_REQUESTT['userName']; echo $username; echo $titles[$_POST['sex']]; } ?>
true
a40a468f6d670bd343e2979e08afb30a3f92f38a
PHP
josel17/Control
/app/Http/Controllers/VentasController.php
UTF-8
5,171
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\DatosEmpresa; use App\Departamento; use App\Factura; use App\Http\Requests\BuscarClienteRequest; use App\Persona; use App\Producto; use App\Repositories\FacturaRepositorio; use App\Repositories\ProductoRepositorio; use Carbon\Carbon; use Illuminate\Http\Request; class Ve...
true
66db0a78f9844fb3ea9b402557d7f79594bce652
PHP
EgorBanin/frent
/src/php/lib/User/Auth.php
UTF-8
1,007
2.96875
3
[]
no_license
<?php namespace User; class Auth { private $session; public function __construct(\Session\Session $session) { $this->session = $session; } public function login($id, $fingerprint, $lifetime) { $this->session->setLifetime($lifetime); $this->session->auth = [ 'id' => $id, 'fingerprint' => $fingerp...
true
0953c4a3d4e6b97c4b1fe0b36ba894ad5e51386b
PHP
AbDi-FaEv/old-esqsites
/sf_app/plugins/tsTitlePlugin/lib/config/tsTitleViewConfigHandler.class.php
UTF-8
7,166
2.875
3
[ "MIT" ]
permissive
<?php /** * Handler for view.yml files. * * Parse additional metas:title option in array and load it to stack in respose class. * Some static function copy/paste from sfViewConfigHandler * * @package tsTitlePlugin * @author Aliaksei Shytkin <e79eas@gmail.com> * @version SVN: $Id$ */ c...
true
42f0ba14503e8053f9a83033d676644aeb1a725f
PHP
iamalfonse/Popboard2
/editpost.php
UTF-8
5,434
2.515625
3
[]
no_license
<?php include("config.php"); header('Content-Type: text/html; charset=UTF-8'); if (isset( $_COOKIE['login_cookie'] )) { $username = mysqli_real_escape_string($dblink, $_COOKIE['login_cookie']); $session_hash = mysqli_real_escape_string($dblink, $_COOKIE['hsh']); $post_id = mysqli_real_escape_string($dblink, $_GET['...
true
e5a1af03841337d910014b913f9a65cce8e86744
PHP
gabicuesta/webpush
/demo/web-push-php-example/src/push_subscription.php
UTF-8
1,477
2.703125
3
[ "MIT" ]
permissive
<?php require("config.inc.php"); $subscription = json_decode(file_get_contents('php://input'), true); if (!isset($subscription['endpoint'])) { echo 'Error: not a subscription'; return; } $method = $_SERVER['REQUEST_METHOD']; switch ($method) { case 'POST': // create a new subscription entry in y...
true
e1b7fe96de295dc5ca51bf94c939a98158441da0
PHP
JuanCSPa/admin
/gih/enviar.class.php
UTF-8
3,126
3.234375
3
[]
no_license
<?php class enviar { //email del emisor var $de; //email del receptor var $para; //asunto var $asunto; //archivo var $archivo; //conjunto de datos a sustituir en el template var $valores; //nombre del template var $template; //nombre input file var $file; //en...
true
222e029ddafc5f471447cfd4f30570dc8c2605d0
PHP
michaskruzelka/peraklad.ai.legacy
/modules/Projects/Http/Requests/OpensubtitlesSearchRequest.php
UTF-8
2,122
2.59375
3
[]
no_license
<?php namespace Modules\Projects\Http\Requests; use App\Http\Requests\Request; use Rlima\Laravel5DoctrineODM\LaravelDocumentManager; use Modules\Projects\Entities\Project; class OpensubtitlesSearchRequest extends Request { /** * @var \Doctrine\ODM\MongoDB\DocumentManager */ protected $dm; /** ...
true
9e1d45cb92c61b6582c0cccff8eb26a5f6982024
PHP
construyacol/CursoPHP
/1 Operadores/asignacion.php
UTF-8
165
3.28125
3
[]
no_license
<?php // $a = 2; // operador de asignación combinado // $a += 5; // var_dump($a); // concatenar cadenas de valores $a = 'Hola '; $a .= 'Mundo'; var_dump($a);
true
4ba0302fdb2acb56778da73f58f105c30a33867d
PHP
moukail/common-token
/lib/Moukail/CommonToken/Entity/TokenInterface.php
UTF-8
510
2.640625
3
[]
no_license
<?php namespace Moukail\CommonToken\Entity; use Symfony\Component\Security\Core\User\UserInterface; interface TokenInterface { public function __construct(UserInterface $user, \DateTimeInterface $expiresAt, string $token); public function getId(): ?int; public function getUser(): UserInterface; pu...
true
cf086ad7b156584e512d99bd1b12f2564a6fe05d
PHP
osbre/questions-laravel
/app/Http/Controllers/HomeController.php
UTF-8
1,145
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use DB; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); ...
true
de8a698fe965d37ca93cfa722785a2260e58a84e
PHP
mariba1986/rakendus
/tund3/study.php
UTF-8
2,499
2.890625
3
[]
no_license
<?php require("../../../../configuration.php"); require("fnc_study.php"); $studyTopicsOptions = getStudyTopicsOptions(); $studyActivitiesOptions = getStudyActivitiesOptions(); $studyTopicId = null; $studyActivity = null; $elapsedTime = null; $studyError = ""; if (isset($_POST['studyBtn'])) { if (isset($_POST["stud...
true
20dff63ce06c38b9bbe1d995cface2d8ce7cf50d
PHP
gregmag/navplan2
/src/php/Navplan/Search/Rest/RestSearchByTextQuery.php
UTF-8
857
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace Navplan\Search\Rest; use Navplan\Search\Domain\SearchByTextQuery; use Navplan\Shared\StringNumberHelper; class RestSearchByTextQuery { const ARG_SEARCH_ITEMS = "searchItems"; const ARG_SEARCH_TEXT = "searchText"; const ARG_TOKEN = "token"; public static fun...
true
e9294c20a375182e425831d0dac68831a6bc54f5
PHP
prothomsoft/surveys
/model/GamaPictureDao.inc.php
UTF-8
3,179
2.78125
3
[]
no_license
<?php require_once(dirname(__FILE__)."/components/db.inc.php"); require_once(dirname(__FILE__)."/GamaPictureBean.inc.php"); class GamaPictureDao{ function __construct(){ } public function create($objGamaPictureBean){ $DB = new DB(); $DB->connect(); $query = "INSERT INTO GamaPicture(GamaId...
true
11bceb6e4a82723cb6eff33ee2538566129b65d1
PHP
bazo/php-orientdb
/src/OrientDB/Queries/ExpressionInterface.php
UTF-8
568
2.984375
3
[ "MIT" ]
permissive
<?php namespace OrientDB\Queries; interface ExpressionInterface { /** * Gets the expression text. * * @return string The expression text. */ public function getText(); /** * Sets the parameters for the expression. * * @param array $params The expression parameters. ...
true
1212b07760a415550c93abfe12c0af98a0b5d207
PHP
marius1092/test
/src/Mba/BlogBundle/Entity/BlogRepository.php
UTF-8
1,472
2.625
3
[ "MIT" ]
permissive
<?php namespace Mba\BlogBundle\Entity; use Doctrine\ORM\EntityRepository; /** * BlogRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class BlogRepository extends EntityRepository { public function getArchive() { $conn = $this->_em->getC...
true
df9db1f347c274295e39c4de371738f507fa3c33
PHP
nightelforc/laravel54
/app/Http/Model/EmployeeOtherFeesModel.php
UTF-8
1,408
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: nightelf * Date: 2019/7/20 * Time: 10:07 */ namespace App\Http\Model; use Illuminate\Support\Facades\DB; class EmployeeOtherFeesModel { private $table = 'employee_other_fees'; /** * @param $id * @param $startTime * @param $endTime * @return ...
true
67d680b53b1846176f646ea210c075773889d15a
PHP
vijaykonda/aftercare-app-backend
/inc/users.php
UTF-8
2,031
2.703125
3
[]
no_license
<?php /////////////////////////////////////// //////////////// USERS //////////////// /////////////////////////////////////// // ADD USER if ("$ac" === "useradd") { // check for email exist $emq = mysqli_num_rows(mysqli_query($dblink, "SELECT * FROM `users` WHERE `email` = '$email'")); if ($emq > 0) { echo "ERR|EMAIL...
true
2c87f6f5c11c28c8c7342c197e758ec4d871158c
PHP
wuyahui/niucloud
/application/common/controller/BasePayAddon.php
UTF-8
3,180
2.546875
3
[]
no_license
<?php // +---------------------------------------------------------------------+ // | NiuCloud | [ WE CAN DO IT JUST NiuCloud ]  | // +---------------------------------------------------------------------+ // | Copy right 2019-2029 www.niucloud.com  | // +--------------------------...
true
a7cfcd2ee7f10b68d9806e423ecb1510546d02c7
PHP
redgoose-dev/goose-api
/core/Error.php
UTF-8
336
2.734375
3
[ "MIT" ]
permissive
<?php namespace Core; class Error { /** * result * * @param string $message * @param int $code * @return object */ public static function result(string $message = 'Unknown error', int $code = 500): object { return Output::result((object)[ 'code' => $code, 'message' => $message...
true
8d4154de9cd13e7589b49bb9af44e2a88a2cde15
PHP
LeonelR112/Backend-MyPronotes
/api/showNote.php
UTF-8
1,323
2.5625
3
[]
no_license
<?php include "../libs/log.php"; require "../classes/Conexion.php"; require "../classes/Note.php"; header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method"); header("Access-Control-A...
true
ef1547e1f04e9b15309de6b154babadf4e8a05c5
PHP
mateuszsip/msgphp
/src/User/Command/CreateUserCommand.php
UTF-8
689
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MsgPhp\User\Command; use MsgPhp\User\UserIdInterface; /** * @author Roland Franssen <franssen.roland@gmail.com> */ final class CreateUserCommand { public $userId; public $email; public $password; public $enable; public $plainPassword; public $contex...
true
dd3ff5d62d6048a1000102104616f0fd7bccac6f
PHP
BlueM/TEIShredder
/lib/TEIShredder/DefaultFactory.php
UTF-8
4,252
2.734375
3
[]
no_license
<?php /** * Copyright (c) 2012, Carsten Blüm <carsten@bluem.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, ...
true
3e5745b191d83347949fba76d5b781068f5a38d2
PHP
ivan-petrunko/weather-entities
/src/Petrunko/Weather/Entity/WeatherDaily.php
UTF-8
1,019
3.015625
3
[]
no_license
<?php declare(strict_types=1); namespace Petrunko\Weather\Entity; class WeatherDaily { private ?Weather $morningWeather; private ?Weather $dayWeather; private ?Weather $eveningWeather; private ?Weather $nightWeather; public function __construct( ?Weather $morningWeather = null, ?...
true
c42a1c131cabe1ff0f93f15f7cbbc0cfaeb1702e
PHP
mambaur/rekam-medik
/application/controllers/Auth.php
UTF-8
3,330
2.59375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Auth extends CI_Controller { // Fungsi yang pertama kali dijalankan public function __construct(){ parent::__construct(); // Memanggil model Pasien $this->load->model('Pasien'); } // Menampilkan halamn lo...
true
8e126a0115c9a6afd37d138f8b1167501931a982
PHP
tsantos84/elastic-apm-php-agent
/src/Factory/TimerFactory.php
UTF-8
203
2.71875
3
[ "MIT" ]
permissive
<?php namespace Nipwaayoni\Factory; use Nipwaayoni\Helper\Timer; class TimerFactory { public function newTimer(float $startTime = null): Timer { return new Timer($startTime); } }
true
99617cae09de74d590c2a0b6f4f2df35a337457e
PHP
purwaren/siap-aman
/protected/controllers/UsersController.php
UTF-8
7,914
2.71875
3
[]
no_license
<?php class UsersController extends Controller { /** * @var string the default layout for the views. Defaults to '//layouts/column2', meaning * using two-column layout. See 'protected/views/layouts/column2.php'. */ public $layout='//layouts/column2'; /** * @return array action filters */ public function...
true
2289ad738f992e6f32d48e0695087c63057ce60f
PHP
cesarlapuente/ARTHYLENE_WEB
/lib/vendors/Model/MarketingManagerPDO.php
UTF-8
2,279
2.875
3
[]
no_license
<?php namespace Model; use Entity\Marketing; use PDO; class MarketingManagerPDO extends MarketingManager { /** * Méthode retournant une fiche marketing précise. * @param $id int L'identifiant du marketing à récupérer * @return marketing La fiche marketing demandée */ public function get...
true
d1933e2f0de2f6fa710fbfb9348246c8b77782a1
PHP
drkameleon/logramm
/tests/benchmark/10000x_recursive_factorial.php
UTF-8
151
3.1875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/php <?php function facto($x) { if ($x<=2) return 1; return $x*facto($x-1); } $i=0; while ($i<10000) { facto($argv[1]); $i+=1; } ?>
true
fb21eb6b3ef40b234a49fc19150141eb305c6637
PHP
jaimeirazabal1/barber-shop
/app/Barber/Repositories/User/UserRepository.php
UTF-8
893
2.640625
3
[ "MIT" ]
permissive
<?php namespace Barber\Repositories\User; /** * Created by Apptitud.mx. * User: diegogonzalez * Date: 7/30/15 * Time: 12:10 PM */ /** * Interface UserRepository * @package Barber\Repositories\User */ interface UserRepository { /** * @param $user_id * @return mixed * @throws \Barber\Reposit...
true
2f1441ba5f65a0a79ce7801531ae27e79c24ff43
PHP
jeremyjaymes/catapult
/admin/custom-metaboxes.php
UTF-8
1,977
2.5625
3
[]
no_license
<?php /** * Metaboxes * * This file registers all metaboxes * * @package plugin_name * @since 1.0.0 * @link https://github.com/jeremyjaymes/catapult * @author Jeremy Vossman <jeremy@papertreedesign.com> * @copyright Copyright (c) 2015, Papertree Design, LLC * @license http://...
true
f315bdc43b7aa181211a6f7cecb99a789ce9402d
PHP
ArnelDesignCol/prueba-sgf-global
/app/Http/Controllers/ProductsController.php
UTF-8
1,007
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Product; use Illuminate\Http\Request; class ProductsController extends Controller { /** * This function iss used from obtain all products by city. * @param integer $request->city, with the city of end user. * @return array with the data obtained...
true
981b78107515ace380f4c6e1592da9639089e1e2
PHP
coffeedevs/image-compressor
/app/Util/FileUtils.php
UTF-8
5,892
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Util; use Exception; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; /** * Created by PhpStorm. * User: martin.guadalupe * Date: 3/3/2016 * Time: 7:16 PM */ class FileUtils { const tinify = false; public static function listDirectoriesForRoute($ruta) ...
true
22c163560e6edbfeee982455c037bdc35f9b3653
PHP
alina80/Advanced-Php-Ecercises
/1_Exercises/Day_1/2_Autoload_function/Exercise3/Shops/Target.php
UTF-8
257
3.28125
3
[]
no_license
<?php declare(strict_types=1); class Target { private $city; public function __construct(string $city) { $this->city = $city; } public function __toString() { return 'Target is located in: ' . $this->city; } }
true
0ebec7eeaf3039f7f842de4535513775df197902
PHP
wendellvieira/webjumptest
/api/src/Core/DatabaseService/Tools/Insert.php
UTF-8
502
2.578125
3
[]
no_license
<?php namespace Core\DatabaseService\Tools; class Insert extends MountSql { public function __construct($arr, $table){ $colls=$vals=[]; foreach ($arr as $key => $value) { $colls[]= "`{$key}`"; $vals[]= $this->prepare($key, $value); ...
true
f2450ee6ad8990b53d37f1aa16faa3f1dbb1205a
PHP
ivmelo/reserva
/app/database/migrations/2014_10_19_061326_create_users_migration.php
UTF-8
1,436
2.671875
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersMigration extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Create users table Schema::create('users', function($table){ $table->increments('id');...
true
1a5be2a6bad80e02f0318204b874daef25712c2b
PHP
WillemHoman/doctrine2
/src/PickupStatusType.php
UTF-8
1,864
2.8125
3
[]
no_license
<?php declare(strict_types=1); use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; use Doctrine\DBAL\Types\Type; class PickupStatusType extends Type { const PICKUP_STATUS_TYPE = 'pickup_status'; public function convertToDatabaseValue($value, AbstractPlatform $platform...
true
29c8137c85e85b6da4e642fb086fc92c2e0a13d2
PHP
yerzhant/clinics
/app/app/Http/Controllers/PatientController.php
UTF-8
1,817
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Patient; class PatientController extends Controller { public function index() { $patients = Patient::where('clinic_id', $this->clinic_id) ->orderby('last_name')->get(); ...
true
904b3b720b994830f92643069ab16d645e3e41d4
PHP
yoel28/API
/app/Http/Requests/Utils/BaseRequest.php
UTF-8
1,442
2.71875
3
[ "MIT" ]
permissive
<?php namespace Api\Http\Requests\Utils; use Illuminate\Foundation\Http\FormRequest; abstract class BaseRequest extends FormRequest { protected $table; protected $prefix = 'Request'; public function __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies...
true
ab0d6d6cfe4df78cd8de59e6fce5e76065ffee9b
PHP
waterman455/theblog
/app/Http/Controllers/MainController.php
UTF-8
2,072
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; class MainController extends Controller { public function add(Request $request){ $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["category_pic"]["name"]); $uploadOk = 1; $imageFileType = strtolo...
true
4b5e690ce073f8b257e4229eca2dc426f76e308c
PHP
mrhuigou/web
/api/models/V1/StoreThemeColumn.php
UTF-8
2,091
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace api\models\V1; use Yii; /** * This is the model class for table "{{%store_theme_column}}". * * @property integer $store_theme_column_id * @property integer $store_theme_id * @property integer $store_id * @property string $store_code * @property integer $theme_column_id * @property string $the...
true
c2575c59c286c1c02b87b7e4b11d20dcbe2c9283
PHP
Diglet7781/E-commerce
/viewinventory.php
UTF-8
1,653
2.890625
3
[]
no_license
<!DOCTYPE html> <html lang = "en"> <head> <title>inventory</title> <style> td{ border: 1px solid; text-align: center; padding: 0.5em; } </style> </head> <body> <h1>Inventory</h1> <?php require_once "dblogin.php"; session_start(); $connect = createConn(); $sqlBooks= "SELECT * ...
true
2bad1935815dd50b70192a9dc859d86fd89bd7c7
PHP
thinkycz/QuestionAnswerApp
/src/AppBundle/Service/LogoutHandler.php
UTF-8
1,198
2.6875
3
[]
no_license
<?php namespace AppBundle\Service; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Http\Logout\LogoutHandle...
true
6560a8a82111fef2b9713155ad78df81e03a17aa
PHP
kapxapot/associations
/src/EventHandlers/DictWord/DictWordUnlinkedHandler.php
UTF-8
546
2.703125
3
[]
no_license
<?php namespace App\EventHandlers\DictWord; use App\Events\DictWord\DictWordUnlinkedEvent; use App\Services\WordRecountService; class DictWordUnlinkedHandler { private WordRecountService $wordRecountService; public function __construct(WordRecountService $wordRecountService) { $this->wordRecount...
true
d84ffafc1c77a6fb47027af31061018952f3c9a7
PHP
weltoncardoso/Gfin
/models/Clients.php
UTF-8
5,897
2.671875
3
[]
no_license
<?php class Clients extends controller{ public function getList($offset, $id_company){ $array = array(); $sql = $this->db->prepare("SELECT * FROM clients WHERE id_company = :id_company LIMIT $offset, 10"); $sql->bindValue(":id_company", $id_company); $sql->execute(); if($sql->rowCount() > 0){ $array = $s...
true
3a8534b9706331b185ec7c1c89405cfaeadef4cb
PHP
codexico/ttlocal
/model/db.php
UTF-8
1,124
3.171875
3
[]
no_license
<?php /** * ainda não está usando * precisa melhorar bastante */ class db { /* var $link; var $mysqli; public function __construct($host, $user, $password) { $this->link = $this->open_connection($host, $user, $password); } public function __construct($host, $user, $password, $database) ...
true
67a279a76f5d54f70720e79d316cd204fc4080f5
PHP
josealbea/mouf-html.widgets.evolugrid
/src/Mouf/Html/Widgets/EvoluGrid/HtmlColumn.php
UTF-8
3,494
3.171875
3
[]
no_license
<?php namespace Mouf\Html\Widgets\EvoluGrid; use Mouf\Utils\Value\ValueUtils; use Mouf\Utils\Value\ValueInterface; use Mouf\Utils\Common\ConditionInterface\ConditionInterface; use Mouf\Utils\Common\Formatters\FormatterInterface; /** * A column of an EvoluGrid that renders HTML * * @author Pierre Vaidie */ class ...
true
eb60f7faee867b7208b46700ff2be66400b3f608
PHP
seralexs/service-container
/src/Format/Interfaces/FormatNameInterface.php
UTF-8
114
2.609375
3
[]
no_license
<?php namespace App\Format\Interfaces; interface FormatNameInterface { public function getName(): string; }
true
524bf6a425e1323f2ec1101c63d979b832baae68
PHP
eHealth4everyone/owid-grapher
/database/seeds/EntityTypesTableSeeder.php
UTF-8
1,121
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class EntityTypesTableSeeder extends Seeder { public function run() { // Uncomment the below to wipe the table clean before populating DB::table('entity_types')->delete(); //reset autoincrement $statement = "ALTER TABLE entity_types AUTO_INCREMENT = 1;"; DB::unp...
true
a3d4bb6af83cb4c34abc930231da9cb08f4c5329
PHP
huanghao9015/Regression
/src/Predictor/Predictor.php
UTF-8
224
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace MCordingley\Regression\Predictor; interface Predictor { /** * @param array $features * @return float */ public function predict(array $features): float; }
true
177a00b127d2703551be184f8ce54983a07f7dbf
PHP
josefm09/facebookBot
/funcion/actualizar_estilo_usuario.php
UTF-8
575
2.515625
3
[]
no_license
<?php /* * Creado por Nicolás Zavala Sajarópulos * Abril de 2017 * nicolas.zavala.sajaropulos@gmail.com */ /* * Actualiza el color del componente * */ function actualizar_estilo_usuario($mysqli, $color, $elemento, $id_usuario){ $stmt = $mysqli->prepare("UPDATE `configuracion_usuario` SET `atributo_de_variable`=...
true
f58d2dc61bdaad6346763f47524733589e56ce16
PHP
satriamaulana/Satria-Maulana
/tugas5/While/contoh3.php
UTF-8
318
3.859375
4
[]
no_license
<!DOCTYPE html> <html> <body> <?php // deklarasi variabel $x = 1; // apakah x kurang dari sama dengan 5 jika iya makan akan diulang jika tidak maka tidak akan diulang sama sekali while($x <= 5) { // mencetak string echo "The number is: $x <br>"; // increment $x++; } ?> </body> </html>
true
aaf8d09fb0bed14440893a0408fec267a359ecf8
PHP
matthv/skeletor
/src/Traits/HasMany.php
UTF-8
724
2.640625
3
[ "MIT" ]
permissive
<?php namespace Matthv\Skeletor\Traits; use Illuminate\Database\Eloquent\Model; trait HasMany { /** * @param array $arrayValues * @param Model $entity * @param string $method * @return Model */ public function saveMany(array $arrayValues, Model $entity, string $method): Model { $collect = []; foreac...
true