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
c7dffa67cec97ade32e50fc315971c1ba07bd32f
PHP
Marsek190/aussie_persons
/app/server/src/Customers/Application/Dto/Location.php
UTF-8
499
3.15625
3
[]
no_license
<?php namespace Src\Customers\Application\Dto; class Location { private string $city; private string $country; /** * @param string $city * @param string $country */ public function __construct(string $city, string $country) { $this->city = $city; $this->country = $c...
true
44184eed1a1d3233ea95f77b7b3aa63a23a8da88
PHP
datatheke/DatathekePagerBundle
/Pager/Adapter/ElasticaAdapter.php
UTF-8
2,685
2.546875
3
[ "MIT" ]
permissive
<?php namespace Datatheke\Bundle\PagerBundle\Pager\Adapter; use Datatheke\Bundle\PagerBundle\Pager\Field; use Datatheke\Bundle\PagerBundle\Pager\Filter; use Datatheke\Bundle\PagerBundle\Pager\OrderBy; use Elastica\Query; use Elastica\SearchableInterface; class ElasticaAdapter implements AdapterInterface { protec...
true
79e6fe64da0d0dc29c3e00ac7572c879d3f7ccc4
PHP
pfilsx/TranslatableBundle
/src/Contract/TranslationInterface.php
UTF-8
391
2.546875
3
[ "MIT" ]
permissive
<?php namespace Pfilsx\Translatable\Contract; interface TranslationInterface { public function getLocale(): ?string; public function setLocale(string $locale): self; public function setTranslatable(TranslatableInterface $translatable): self; public function getTranslatable(): ?TranslatableInterfa...
true
1eacdf327b9d6a5b1183ba58008a1cd9d5468fe7
PHP
gforti/PHPadvClassSpring2015
/week3/demo/site/mvc/views/test.php
UTF-8
1,131
2.765625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <h1>Test</h1> <?php if ( isset($scope->view['email']) ) { echo $scope->view['email']; } if ( isset($scope->vi...
true
91152be93edd8388b14cb7b78270b0e21e12caa8
PHP
AsaseYa/scrabble-game
/src/Controller/GameController.php
UTF-8
768
2.640625
3
[]
no_license
<?php namespace App\Controller; use App\Model\WordsModels; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Error\SyntaxError; class GameController extends AbstractController { private array $css = ["settings", "navbar", "game"]; /** * @throws SyntaxError * @throws RuntimeError ...
true
7bf3566ffdd12057a6a06de87cf244847fdf83f8
PHP
beshsal/mini_blog
/includes/breadcrumb.inc.php
UTF-8
1,789
2.921875
3
[ "MIT" ]
permissive
<?php // Get the name of the current page. $pageName = basename(THIS_PAGE, ".php"); // If there is an underscore in the page's name, remove it. $pageName = str_replace("_", " ", $pageName); $bcTitle = ""; // the breadcrumb title ?> <div class="container"> <div class="row"> <ol class="breadcrumb"> <li...
true
f769f927b7988c86e0bb0e88446b4c524943bdd9
PHP
CedricSama/Php
/Framework/SymfonyProjet/lddt/src/Lddt/MainBundle/Controller/DefaultController.php
UTF-8
5,279
2.546875
3
[]
no_license
<?php namespace Lddt\MainBundle\Controller; use Lddt\MainBundle\Entity\Draw; use Lddt\MainBundle\Form\DrawType; use Lddt\MainBundle\Form\FormHandler; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle...
true
a4b7b34f0d727e3ae726610ba36fb1ef7a56216a
PHP
tominator1pl/mojegraprzegladarkowa
/KOD/polaczZBD.php
UTF-8
5,745
2.625
3
[]
no_license
<?php // Łączenie z BD function polacz() { $p = new mysqli("localhost", "root", "", "tdstrona"); if($p->connect_errno) { echo "Błąd logowania z bazą"; return false; } else { $p->set_charset('utf8'); return $p; } } function rozlacz($p) { mysqli_close($p); } /** * szybkie pobranie...
true
f70bcef713ebb9e43c5cdd116528745a2190648c
PHP
0pacific/R-WebGenerator
/R-WebGenerator/src/generatedFiles/application/html/TfdHtmlCreator.php
UTF-8
10,137
2.765625
3
[]
no_license
<?php /* * Created on 2010/09/05 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class TfdHtmlCreator { // ClientInfoインスタンス var $clientInfo; // TFD var $tfd; // フィールド限定で選ばれているDDFそれぞれのオフセットを並べた配列 var $offsetArray; ...
true
49c23647c096ba5cc0d9fd700d16e75a3697e5bd
PHP
arsengoian/viper-framework
/src/Viper/Core/Model/DB/MSSql/Types/IntegerType.php
UTF-8
3,630
2.78125
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Арсен * Date: 01.11.2017 * Time: 19:11 */ namespace Viper\Core\Model\DB\MSSql\Types; // TODO Support all these: // bit Integer that can be 0, 1, or NULL // tinyint Allows whole numbers from 0 to 255 1 byte // smallint Allows whole numbers between -32,768 and 32,7...
true
74fef5f0c1ae2457ddcb872561e5865574783f44
PHP
tselmeg8070/bm-backend
/database/migrations/2018_11_08_101620_create_counters_table.php
UTF-8
1,007
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCountersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('counters', fun...
true
3a3717b870ecf646cfd707ebf6da079ebde96a01
PHP
undefinedobj/LearnLara
/app/Http/Controllers/SelectFormController.php
UTF-8
1,091
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Container\Container; use Symfony\Component\HttpFoundation\Request as SymfonyRequest; class SelectFormController { /** * @var $request */ protected $request; /** * FormController constructor. */ public function __construct() ...
true
fd123285f33f5266ae67c5a84da3849dd25f8079
PHP
caferrari/QueroSerKanui
/testes/word-rank/solution.php
UTF-8
1,343
3.46875
3
[]
no_license
<?php class WordRank { protected $terms; protected $topTerms; public function __construct($filename) { if (!file_exists($filename)) { throw new InvalidArgumentException('Arquivo não encontrado'); } $contents = file_get_contents($filename); preg_match_all('...
true
76d901f9dea3038dbd4915b3d683fa2cad55fabf
PHP
reliv/rcm-php
/core/src/Controller/RenderPluginInstancePreviewApiController.php
UTF-8
1,675
2.546875
3
[ "ISC" ]
permissive
<?php namespace Rcm\Controller; use Rcm\Service\PluginManager; use Zend\Http\Response; use Zend\View\Model\JsonModel; /** * This provides an API that allows plugins to ask the server to re-render them when they are edited * but not yet saved. JSON is returned rather than HTML to prevent XSS attacks. * * Class Re...
true
18e167b0239b3ae2a70e807fc26225563970f6bb
PHP
larabelt/demo
/app/Workflows/TeamApproval.php
UTF-8
2,262
2.59375
3
[]
no_license
<?php namespace App\Workflows; use Belt\Core\Team; use Belt\Workflow\Workflows\BaseWorkflow; /** * @package App\Workflows */ class TeamApproval extends BaseWorkflow { const NAME = 'Team Approval'; const KEY = 'team-approval'; protected static $events = [ 'teams.created', 'teams.update...
true
53e87da38d3b224875a6903fb9f90f4b94d239c8
PHP
thanhvinh199700/laravel_vietlinkads
/app/Http/Controllers/Admin/MenusController.php
UTF-8
2,284
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Services\MenuService; use App\Models\Menus; use Illuminate\Http\Request; class MenusController extends Controller { protected $menuService; public function __construct(MenuService $menuService) { $this->menuS...
true
bb0a0024899d5418618a81d2618faa7fd16b7729
PHP
awesome-academy/php_hn_naitei_ecommerce
/database/migrations/2021_09_03_033604_change_transaction_status.php
UTF-8
1,110
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; class ChangeTransactionStatus extends Migration { /** * Run the migrations. * * @return void */ public function up() {...
true
a8cbbd5724b91cc178c4271527bfd550d2d6e238
PHP
karthikbest/Non-Confidential-Projects
/toyshop web application/ERRORS/errors.php
UTF-8
563
2.671875
3
[]
no_license
<?php function errorMsgForClient() { // REMOVES ALL CONFIDENTIAL INFORMATION ( BOTH FOR SAFETY & ABSTRACTION) // TELLS THE CUSTOMER ONLY WHAT HE NEEDS TO KNOW. NOT MORE. ( BOTH FOR SAFETY & ABSTRACTION) echo ("The website is facing difficulty due to some technical issues. Our Engineers are working on it. Pleas...
true
2647f68efe5fc27c88801488a45d29eb6078f0cc
PHP
diblos/myevo.tpsmon
/code/API/public/lib.php
UTF-8
3,500
2.515625
3
[]
no_license
<?php define("valTRUE",1); define("valFALSE",0); define("RECORD_LIMIT",50); // date_default_timezone_set("UTC"); function isUpdateConfig($arr) { return valFALSE; } function login($username, $password) { $db = connect_db(); $sql = "SELECT name FROM tbl_user WHERE username='".$username."' AND password=sha('"...
true
b4ae4629bcff2de90647f1c185e33288ba91b25c
PHP
mincms1/mincms
/app/components/Helper.php
UTF-8
2,023
2.5625
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | Helper // +---------------------------------------------------------------------- // | Copyright (c) 2014 http://mincms.com All rights reserved. // +---------------------------------------------------------------------- // | License...
true
1ff2d99f6028183ef181e4d25488d45a0ba47302
PHP
Vyki/mva-dbm-example
/app/model/BaseModel.php
UTF-8
1,742
2.671875
3
[]
no_license
<?php namespace App\Model; use Mva, Mva\Dbm\Collection\Document, Mva\Dbm\Collection\Selection; abstract class BaseModel { /** @var Mva\Dbm\Connection */ private $connection; /** @var string primary key condition */ protected $primary = '_id = %oid'; /** @var string */ abstract public function getName(); ...
true
744833ebe10ded8ae39c7c2e60c4c423906362c4
PHP
bayusantoso/sphinx-search-retrieval-information
/SourceCode/core/Service.php
UTF-8
663
2.796875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Service * * @author bayu */ class Service extends Core { private $mError = array(); public function __construct() { parent::__construct(); } ...
true
b9f105ef56e21d5ba603e76dba10e9bdec4da38b
PHP
vasa-develop/app_API
/include/upload_image.php
UTF-8
761
3.015625
3
[]
no_license
<?php /* * File name: upload_image.php * Desc: Upload an image to the server. * Input: image content and image name * Output: upload success or failure. */ if (isset($_POST['content']) && isset($_POST['name'])) { $base = $_POST['content']; $name = $_POST['name']; $response = array(); ...
true
96beaa6b04038e67a5d3a64cbda90ad02c2ccba7
PHP
LeandrOS1/MyBlogPHP
/clases/etiqueta.php
UTF-8
191
2.90625
3
[]
no_license
<?php class Etiqueta { public $nombre; public $descripcion; function __construct($inNombre, $inDescripcion) { $this->nombre = $inNombre; $this->descripcion = $inDescripcion; } } ?>
true
6c4e88bd37370a7435dfa6cee1f0ebf3becc5dc3
PHP
WsdlToPhp/PackageGenerator
/src/File/Validation/ListRule.php
UTF-8
585
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace WsdlToPhp\PackageGenerator\File\Validation; /** * @see https://www.w3.org/TR/xmlschema-2/#list-datatypes */ final class ListRule extends AbstractSetOfValuesRule { public function name(): string { return 'list'; } public static function getParameterP...
true
cb78bc976c18e89b84c3e1b1052017b94da3faae
PHP
perdianto27/lara-fire-crud
/app/Http/Controllers/FirestoreController.php
UTF-8
1,896
2.765625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Google\Cloud\Firestore\FirestoreClient; class FirestoreController extends Controller { protected static $db; protected static function firestoreDatabaseInstance(){ $db = new FirestoreClient([ 'projectId'=> 'sehat-62ae3' ]); ...
true
33125602453f60b2e1b8bec77371f0596461ecdb
PHP
dickongray/phpchecker
/index.php
UTF-8
896
2.90625
3
[]
no_license
<?php date_default_timezone_set('NZ'); function myName() { return 'Dickon'; } //This is another function with a pg_parameter_status() // never have a function with just an echo. function should always be return not echo. function newName($name) { return ' My name is' .$name; } function precent($score,$total) { retur...
true
127244e22c3b7e2e526ea8ecbabf231347c974df
PHP
hfitzgerald/bww
/app/models/tweet.php
UTF-8
1,740
2.796875
3
[]
no_license
<?php /** * Model for use with Tweet datasource (http://book.cakephp.org/view/1077/An-Example) * Requires PHP 5.2+ * * Based on http://book.cakephp.org/view/1077/An-Example * with help from http://snipplr.com/view/36992/improvement-of-url-interpretation-with-regex/ * * big ups to regexpal.com and tinyurl.com ...
true
ab13fa283de865b6f012c2566c08048c629876e6
PHP
smikye/php-coordinates
/DurationScore/ScoreCalculationMethod/ScoreCalculationMethod.php
UTF-8
208
2.84375
3
[]
no_license
<?php namespace DurationScore\ScoreCalculationMethod; interface ScoreCalculationMethod { /** * @param int $minutes * @return int */ public function calculateScore(int $minutes): int; }
true
17b2714421748f8dda323777441062be04b0c705
PHP
classyindonesia/pmb
/app/Repositories/Mst/UserRepository.php
UTF-8
1,273
2.578125
3
[]
no_license
<?php namespace App\Repositories\Mst; use App\Models\Mst\User; class UserRepository { public function get_all_user($pencarian = null) { $search = $pencarian->get('search'); $level = $pencarian->get('level'); //if($level == '' || $level == null) $level = [1, 2, 3,4]; if ($se...
true
c25e2f1b05c72319078aef5a6c8c57e369dfbf78
PHP
DavidGayo/factura
/src/Facturas/GeneralBundle/Entity/Giro.php
UTF-8
1,657
2.78125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace Facturas\GeneralBundle\Entity; /** * Giro */ class Giro { /** * @var integer */ private $id; /** * @var string */ private $giro; /** * Get id * * @return integer */ public function getId() { return $this->id; } /...
true
6229dc34b2a77979636f7e9d614b754ad256c338
PHP
conferencetools/sponsorship-module
/src/Domain/Event/Conversation/ResponseTimeout.php
UTF-8
628
2.5625
3
[ "MIT" ]
permissive
<?php namespace ConferenceTools\Sponsorship\Domain\Event\Conversation; use Carnage\Cqrs\Event\EventInterface; use JMS\Serializer\Annotation as JMS; class ResponseTimeout implements EventInterface { /** * @JMS\Type("string") * @var string */ private $conversationId; /** * ReplyTimeout...
true
45f9588b041cc4329dbe39271192a1eb8a3616e4
PHP
ElbowSpaceUK/laravel-settings
/tests/Integration/Decorators/RedirectDynamicCallsDecoratorTest.php
UTF-8
1,960
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Settings\Tests\Integration\Decorators; use Illuminate\Validation\ValidationException; use Settings\Setting; use Settings\Tests\TestCase; use Settings\Tests\Traits\CreatesSettings; class RedirectDynamicCallsDecoratorTest extends TestCase { use CreatesSettings; /** @test */ public function...
true
3691da9b7f1133ac60225e9be85c7203c7ef71ae
PHP
comhon-project/comhon
/src/Comhon/Model/Restriction/Size.php
UTF-8
2,192
2.890625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Comhon package. * * (c) Jean-Philippe <jeanphilippe.perrotton@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Comhon\Model\Restriction; use Comhon\Model\AbstractModel; use...
true
dacb7d8b182dc19b23667f161b727b5538bccecf
PHP
memsb/StyleCI
/Specification.php
UTF-8
2,321
3.890625
4
[]
no_license
<?php class Rate { public function getPrice() { return 5; } } interface Specification { public function isSatisfiedBy(Rate $rate); } class Plus implements Specification { private $left; private $right; public function __construct(Specification $left, Specification $right) { ...
true
1d51d47d53e8ef2cfec0d2663493875fe8b65715
PHP
theekhay/dezion-angularJs
/application/modules/sg_members/controllers/Sg_members.php
UTF-8
2,525
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Sg_members extends MX_Controller { public function __construct() { parent::__construct(); parent::loggedIn(); $this->load->model('sg_members/mdl_sg_members') ; } public function index() { $this->addMember(); }...
true
253ae993d9354a355e272805066122ff409447b3
PHP
aBillander/aBillander
/database/migrations/2020_07_11_111055_create_lots_table.php
UTF-8
1,861
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLotsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('lots', function (B...
true
0eb5a0a35f0f60cda3405fb417767913557dc042
PHP
ann-semenovykh/OPRIS
/kinoteatr/application/controllers/reservation.php
UTF-8
2,671
2.625
3
[]
no_license
<?php class Reservation extends Application { private $template; public function __construct() { $this->load_model('reservation'); $this->template = $this->load_lib('template'); $data = array( 'title' => 'Бронирование', ); } public function index($session_id) { $now = dat...
true
7f079f5513cf007fc3e870e4bb00af9d88c4830b
PHP
gabrielanhaia/api-project
/src/Integration/TheJournalIE/Entity/ImageEntity.php
UTF-8
2,204
3.09375
3
[]
no_license
<?php namespace JournalMedia\Sample\Integration\TheJournalIE\Entity; /** * Class ImageEntity * * @package JournalMedia\Sample\Entity * * @author Gabriel Anhaia <anhaia.gabriel@gmail.com> */ class ImageEntity { /** @var string $name Name of the image. */ protected $name; /** @var string $url Url do ...
true
790571786151bb58b7e878296ad945fc6e0cd4b8
PHP
rodrigrv/rafaelvrod
/Projects/CTEC 4321 Final/app_form.php
UTF-8
4,226
2.9375
3
[]
no_license
<?php // acquire shared info from other files include("dbconn.inc.php"); // database connection //include("shared.php"); // stored shared contents, such as HTML header and page title, page footer, etc. in variables // make database connection $conn = dbConnect(); print $HTMLHeader; print $PageTitle; // This form i...
true
2f41aedab29b83e289cbc874a1ce1e8dab17503d
PHP
bwallenaii/imd223_wi2015
/week_8/usedata.php
UTF-8
275
2.65625
3
[]
no_license
<?php session_start(); ?><html> <head> <title>Using Data</title> </head> <body> <p>Showing something below here</p> <pre> <?php var_dump($_SESSION); var_dump($_COOKIE); ?></pre> </body> </html>
true
332067c68cba2233cb8fd2c6957c66025a713dd7
PHP
HectorGN13/BossTrainer
/frontend/models/ContactForm.php
UTF-8
2,255
2.6875
3
[]
no_license
<?php namespace frontend\models; use kekaadrenalin\recaptcha3\ReCaptchaValidator; use Yii; use yii\base\Model; /** * ContactForm es el modelo detrás del formulario de contacto. * ContactForm is the model behind the contact form. */ class ContactForm extends Model { public $name; public $surname; publi...
true
aa37cc31e23a13f2a8b17f6848c154de97bf1fc1
PHP
mrtnzlml-archive/CMS-lite
/custom/Pages/PageCategory.php
UTF-8
1,211
2.53125
3
[]
no_license
<?php namespace Pages; use Doctrine\ORM\Mapping as ORM; use Kdyby\Doctrine\Entities\Attributes\Identifier; use Kdyby\Doctrine\Entities\MagicAccessors; /** * @ORM\Entity * @ORM\Table(name="page_page_categories", uniqueConstraints={ * @ORM\UniqueConstraint(columns={"page_id", "category_id"}) * }) * * @metho...
true
28f4db31250ba2e72dc5a14a8b9a476b8d344cb2
PHP
kake26s/EmptyWorld
/src/kake26s/emptyworld/EmptyGenerator.php
UTF-8
1,112
2.75
3
[]
no_license
<?php namespace kake26s\emptyworld; use pocketmine\level\generator\Generator; use pocketmine\block\Block; use pocketmine\math\Vector3; use pocketmine\level\ChunkManager; use pocketmine\utils\Random; class EmptyGenerator extends Generator{ const NAME = "emptyworld"; private $settings; /** contruct **/ publi...
true
c6e8ce0c1c1fe09f4555a91364e9aedaeef1399d
PHP
cgriep/ZIMTphp
/Klausur/Wertungsformular.php
ISO-8859-1
10,638
2.65625
3
[]
no_license
<?php /** * Wertungsformular fr Klausuren * Letzte nderungen: * 10.03.06 C. Griep - angepasst an neuen Server * */ function zeige_text_absatz($Seite, $Text, $absatz = true) { $i = 0; while ( $i < strlen($Text) ) { if ( pdf_get_value($Seite, "textx",0) >= 500 && (substr($Text, $i-1, 1) == " " || subs...
true
8b4e73dc367f3be5ea50d93853e55c477283fe1e
PHP
UnlemBilisim/foribaapi
/src/Bulut/eFaturaUBL/TransportEquipment.php
UTF-8
660
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: orhangazibasli * Date: 24.12.2017 * Time: 14:39 */ namespace Bulut\eFaturaUBL; /** * Taşıma ekipmanı bilgileri girilir. * * Class TransportEquipment * @package Bulut\eFaturaUBL */ class TransportEquipment { /** * Tekil numarası girilir. Örneğin Dorse Plaka n...
true
ab7042eb641c96b3cfaf61fc2283bf38f4e43cb3
PHP
drsheldoncooper/shop2wp
/plugins/popup-maker/classes/Logging.php
UTF-8
2,724
2.96875
3
[]
no_license
<?php /******************************************************************************* * Copyright (c) 2018, WP Popup Maker ******************************************************************************/ /** * Class PUM_Logging * * @since 1.7.0 */ class PUM_Logging { /** * @var bool */ publ...
true
3fda62fa154e843e5f61602cc539912c8c3103a6
PHP
scorpion-xc/2014_04_27_siteGitHab
/PHP/myscript_5.php
UTF-8
708
2.734375
3
[]
no_license
<?php //--------------------вывод таблицы умножения function print_tab_1 ($cols, $rows) { echo "\n\t-----print_tab_1-----\n\n"; echo "\t"; for ($f=1; $f<=$cols; $f++) { echo $f; echo "\t"; } echo "\n\n"; for ($j=1; $j<=$rows; $j++) { echo $j; echo "\t"; for ($i=1; $i<=$cols;...
true
f16c6b49b7c4a9d93055412c3e35f77e3d389466
PHP
NouhailaMa/PDOprojet
/Service/ClasseService.php
UTF-8
2,873
2.9375
3
[]
no_license
<?php include_once RACINE . '/Classes/Classe.php'; include_once RACINE . '/Classes/Filiere.php'; include_once RACINE . '/Connexion/Connexion.php'; include_once RACINE . '/Dao/IDao.php'; class ClasseService implements IDao { private $connexion; function __construct() { $this->connexion = new ...
true
83e158d9a9e6055b6ed6851a3873a69783030b74
PHP
md-asifiqbal/z-cart
/database/seeds/BlogSeeder.php
UTF-8
1,385
2.5625
3
[]
no_license
<?php use Carbon\Carbon; use Illuminate\Support\Facades\File; class BlogSeeder extends BaseSeeder { private $count = 5; /** * Run the database seeds. * * @return void */ public function run() { factory(App\Blog::class, $this->count)->create(); if ( File::isDirect...
true
b860c3b0ad2e97d7f66362b2024de166326697fb
PHP
gotom-io/salesforce-client
/src/QueryBuilder/Query.php
UTF-8
5,250
2.765625
3
[ "MIT" ]
permissive
<?php namespace Xsolve\SalesforceClient\QueryBuilder; use Xsolve\SalesforceClient\QueryBuilder\Expr\Compare\AbstractCompare; use Xsolve\SalesforceClient\QueryBuilder\Expr\ExprInterface; use Xsolve\SalesforceClient\QueryBuilder\Expr\From\AbstractFrom; use Xsolve\SalesforceClient\QueryBuilder\Expr\GroupBy\AbstractGroup...
true
16da9cb4c0c56856c223f44aaeeea820c442e2eb
PHP
ejacky/honji
/framework/Core/Base.php
UTF-8
408
2.71875
3
[ "MIT" ]
permissive
<?php namespace Honji\Core; use Pimple\Container; abstract class Base { protected $container; public function __construct(Container $container) { $this->container = $container; } public function __get($name) { return $this->container[$name]; } public static function...
true
7d9a331e97795168929f7772627ed2b5e94b5788
PHP
zhao05141237/swoft-1
/app/Model/Entity/Post.php
UTF-8
3,604
2.890625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace App\Model\Entity; use Swoft\Db\Annotation\Mapping\Column; use Swoft\Db\Annotation\Mapping\Entity; use Swoft\Db\Annotation\Mapping\Id; use Swoft\Db\Eloquent\Model; /** * * Class Post * * @since 2.0 * * @Entity(table="post") */ class Post extends Model { /** ...
true
3e1c68168cc3362e4ebe014649b7aff3da615ae3
PHP
aabdugaliyev/Fibonacci-test-case-PHP-JS
/Project/fibo/fiboWrite.php
UTF-8
1,142
3.0625
3
[]
no_license
<?php define('ROOT', dirname(__FILE__)); include(ROOT.'/config/dbConnect.php'); $dbData = dbConnect::getDB(); $contains = false; $arrKey = $_POST['fibInput']; //$arrVal = $_POST['fibAns']; // ----> NULL at the beginning of method /* //checks if DB has such key if has, response with needed value if (isset($dbData[...
true
4292384fb6d877eac2c65924da37fd04d7de9896
PHP
Firehed/Security
/src/SecretKey.php
UTF-8
841
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Firehed\Security; /** * Holds the key for Secret in a separate class and file to prevent appearance * in backtraces, etc. You should never need to use this class directly. */ final class SecretKey { /** @var string */ private static $key; // Private constructo...
true
b50dbfe33d03c40d8665289cc4542d499713e820
PHP
Letractively/sundayvn
/yealink/htdocs/protected/modules/user/models/UserPhones.php
UTF-8
832
2.6875
3
[]
no_license
<?php /* * @author anguyen * @date Mar 3, 2012 */ class UserPhones extends CActiveRecord { const STATUS_NOACTIVE=0; const STATUS_ACTIVE=1; const STATUS_BANED=-1; /** * Returns the static model of the specified AR class. * @return CActiveRecord the static model class */ public...
true
727dd869954450525ba65097eee134452f841033
PHP
abberdeen/plustest.genesis
/app/adapter/QA/QAResponse/NumericResponseQAResponse.php
UTF-8
708
2.75
3
[]
no_license
<?php namespace Adapter\QA\QAResponse; use Adapter\QA\QAResponse\QAResponse; use \AppException; class NumericResponseQAResponse extends QAResponse{ public $responses=[]; public function toString() { return json_encode( [ 'version'=>$this->getVersion(), ...
true
b4abe553358dd0d14ba1d5f7cd8e5703036cddc8
PHP
andromedado/radcanon
/classes/Controller/Base.php
UTF-8
14,774
2.6875
3
[]
no_license
<?php abstract class ControllerBase { /** @var Request $request */ public $request = null; /** @var Response $request */ public $response = null; /** @var User $user */ public $user = null; /** @var Model $model */ public $model = null; protected $modelName = null; protected $Te...
true
2a8625a691a2c6759e8e88ef1b8f8865a1a366db
PHP
kunicmarko20/DarvinAdminBundle
/Twig/Extension/GlobalsExtension.php
UTF-8
2,122
2.546875
3
[ "MIT" ]
permissive
<?php /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Darvin\AdminBundle\Twig\...
true
09b837af8c1e2db463c20ccb75b92d4e55d50b85
PHP
mdestafadilah/traffictower-cms
/traffictower/helpers/TT_url_helper.php
UTF-8
7,786
2.75
3
[ "Apache-2.0" ]
permissive
<?php /** * LICENSE: Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, softw...
true
ca7b74a1bdafce9bcac620903c3b0123b08d05a6
PHP
tringuyen623/Module2
/Examination/Car.php
UTF-8
564
3.140625
3
[]
no_license
<?php include_once "Vehicle.php"; class Car extends Vehicle { protected $hasTrunk; protected $owner; public function __construct($_type, $hasTrunk=null){ parent::__construct($_type); $this->hasTrunk = $hasTrunk; } public function setOwner($_owner){ $this->owner = $_own...
true
f34294108ccf6eb65a7220de52a3c958715293e2
PHP
xpecsoram/Easter-kitchen-recipes-website
/max-recipe/admin/users.php
UTF-8
10,949
2.734375
3
[]
no_license
<?php include_once 'includes/header.php'; ?> <?php include_once '../includes/nav.php'; ?> <div class="container"> <div class="row"> <div class="col-sm-12" style="min-height: 80vh"> <!-- page heading --> <h1>Users</h1> <hr/> <?php include 'includes/notifications.php'; ?> <br> ...
true
3cf4904f508ec781f9944400a1fe89da489c82f7
PHP
fisher1250/myPHPs
/期末會員網站/mysql_connect.inc.php
UTF-8
584
2.515625
3
[]
no_license
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php //資料庫設定//資料庫位置 $db_server = "localhost"; //資料庫名稱 $db_name = "mydb"; //資料庫管理者帳號 $db_user = "root"; //資料庫管理者密碼 $db_passwd = ""; //對資料庫連線 $link = mysqli_connect("$db_server", $db_user, $db_passwd) or die("無法開啟MySQL資料庫連接!<br/>"...
true
0d422cae31b0b16a93fdffd6195513cbd2713152
PHP
Haxley/3.0.0Alpha10-PocketMine-Plugins
/MultiWorld/src/multiworld/util/DataManager.php
UTF-8
2,949
2.859375
3
[]
no_license
<?php declare(strict_types=1); namespace multiworld\util; use multiworld\MultiWorld; use pocketmine\event\level\LevelLoadEvent; use pocketmine\event\Listener; use pocketmine\level\Level; use pocketmine\utils\Config; /** * Class DataManager * @package multiworld\util */ class DataManager implements Listener { ...
true
9cb289dc898fdf1c12bdf5e886b101f1fae565de
PHP
ProVince27/vince.delafuente
/utils/src/Sidebar/SidebarTrait.php
UTF-8
2,979
2.875
3
[]
no_license
<?php namespace Icg\Sidebar; use Exception; use Maatwebsite\Sidebar\Item; /** * @todo Add badge for the * @todo A dedicated class for the badge since this will be set the * numeric number of the side menu */ trait SidebarTrait { /** * [subItems generator] * @param [type] $menu [menu detail] ...
true
8dc28ad626366b8124da6935e3e879cd48fc74fd
PHP
evilfer/moonrock-demo-old-nquire
/src/modules/custom/pi/core/pi_authoring/pi_authoring.admin_group_hierarchy.inc
UTF-8
17,666
2.609375
3
[]
no_license
<?php /** * @file PI authoring functions - hierarchy editing pages */ /** * Generate a list of all groups defined in nQuire and show them in a tree based on group hierarchy. */ function pi_authoring_admin_group_hierarchy_view() { $output = '<p>' . t('Use this page to assign your groups into their respective pare...
true
3fa78fa4482d58001b853cd27a8038d96ac53ee6
PHP
Vikas-Kandimalla/myRepo
/change_pass.php
UTF-8
2,009
2.640625
3
[]
no_license
<?php session_start(); if ( !isset($_SESSION['uid']) || !isset($_SESSION['user']) || !isset($_SESSION['email'])) { echo "Session not set"; header("Location: http://localhost/p/index.php"); } include "dbinfo.php"; global $link; if ( isset($_POST['oldpass']) && isset($_POST['newpass']) ) { $user = $_SESSION['user']; ...
true
dd60fec9e4534a0d4f8474f26d2f0ec919f4b2df
PHP
roberto-alarcon/Develop-Gascomb
/modules/classes/manejaDB.php
UTF-8
7,552
2.734375
3
[]
no_license
<?php //include_once('/home/grupome/public_html/dev_controlProcess/config/set_variables.php'); error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); include_once('/home/gascomb/secure_html/config/set_variables.php'); include_once('class.watchful.php'); class manejaDB extends Watchful { var $_servidor; ...
true
2f7c60192387076238fb4496f0df93942795d3ae
PHP
fabn/zle
/library/Zle/Log/Writer/Mail.php
UTF-8
3,638
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Zend Library Extension * * PHP version 5 * * @category Zle * @package Zle_Log * @author Fabio Napoleoni <f.napoleoni@gmail.com> * @license http://framework.zend.com/license/new-bsd New BSD License * @link http://framework.zend.com/ */ /** * Zle_Log_Writer_Mail * * @category Zle * @pa...
true
3a4a5c5dfe985164e916202f707b8e79eb85b7cc
PHP
shaunlin064/dataanalysiscontrol
/app/Console/Commands/ReloadBonusReach.php
UTF-8
1,175
2.546875
3
[]
no_license
<?php namespace App\Console\Commands; use App\Http\Controllers\Bonus\BonusReachController; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class ReloadBonusReach extends Command { /** * The name and signature of the console command. * * @var string */ protected $signat...
true
5f477fd7b6aceed87cfee9ba1fefe10e0861a47e
PHP
michalkvasnicak/oauth2-server-bundle
/Storage/AUser.php
UTF-8
5,023
2.796875
3
[ "MIT" ]
permissive
<?php namespace MichalKvasnicak\Bundle\OAuth2ServerBundle\Storage; use OAuth2\Storage\IClient; use OAuth2\Storage\IScope; use OAuth2\Storage\IUser; use Symfony\Component\Security\Core\Role\RoleInterface; use Symfony\Component\Security\Core\User\UserInterface; /** * @author Michal Kvasničák <michal.kvasnicak@mink.sk...
true
c96068db5adfefe56c145f8b4cdcd2a099153f88
PHP
gnl6331/RESTfm
/lib/RESTfm/SQLParser/SQLLexer.php
UTF-8
4,449
2.921875
3
[ "MIT" ]
permissive
<?php /** * RESTfm - FileMaker RESTful Web Service * * @copyright * Copyright (c) 2011-2017 Goya Pty Ltd. * * @license * Licensed under The MIT License. For full copyright and license information, * please see the LICENSE file distributed with this package. * Redistributions of files must retain the above ...
true
2603e94ff1d2f19167ec20ecf429fac1dbfce9f1
PHP
Arjungrg/Guitar-Shop-Management-System
/admin/editor.php
UTF-8
2,349
2.609375
3
[]
no_license
<?php require_once('../common/connection.php'); if (isset($_POST['submit'])) { $id= $_POST['guitar_id']; $make = $_POST['guitar_make']; $model = $_POST['guitar_model']; $color = $_POST['guitar_color']; $purposed_selling_price = $_POST['purposed_sp']; $status = $_POST['damaged_status']; ...
true
e75f168319f3386cd7a5f69d99f7e9de8b4a16a0
PHP
xsocma00/FIT
/2BITL/IPP/proj1/eps_det.php
UTF-8
5,253
2.59375
3
[]
no_license
<?php #DKA:xpavli78 /* * Soubor: dka.php * Datum: 9.3.2016 * Autor: Jan Pavlica, xpavli78@stud.fit.vutbr.cz * Projekt: Determinizace konecneho automatu (DKA) * Predmet: IPP * Popis: determinizace, odstraneni epsilon prechodu */ function fu_eps(&$states, &$rules, &$f_states) // funkce pro odstraneni eps prechodu...
true
3a7a1f2678b2d37395bebf5d235d170e5e84a22f
PHP
Lucaversace/projet_bnb
/App/functions.php
UTF-8
533
2.78125
3
[]
no_license
<?php function active_lien(string $lien):void { if($_SERVER['REQUEST_URI'] == $lien) { echo'style="color:#8F5EB4;font-weight:bold" !important;font-weight:bold !important;"'; } else {echo "";} } function redirect(string $location):void { header('Location: '.$location); die(); } functio...
true
f909fd12c37c80e52277ded12b0d3d0e309a238c
PHP
heiheisoft/heihei-framework
/heihei/rest/Request.php
UTF-8
850
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace heihei\rest; class Request extends \yii\web\Request { public $formatParam = '_format'; public $formatContentTypes = [ 'json' => 'application/json', 'xml' => 'application/xml', ]; /** * @inheritdoc */ public function getContentType() { $contentType = parent::getConte...
true
0ab3298776d8d7a68b7649685e484a89d2f1046f
PHP
phan/phan
/.phan/plugins/PreferNamespaceUsePlugin.php
UTF-8
6,931
2.578125
3
[ "Apache-2.0", "ISC", "BSD-3-Clause", "MIT" ]
permissive
<?php declare(strict_types=1); use ast\Node; use Phan\CodeBase; use Phan\IssueInstance; use Phan\Language\Context; use Phan\Language\Element\Func; use Phan\Language\Element\FunctionInterface; use Phan\Language\Element\Method; use Phan\Library\FileCacheEntry; use Phan\Plugin\Internal\IssueFixingPlugin\FileEditSet; use...
true
62b4b4a684775fc9bce3e7236b2ad11642775796
PHP
taras-ua/SA_lab_works_I_sem
/plotter.php
UTF-8
3,832
2.5625
3
[ "MIT" ]
permissive
<?php require_once("./phpChart/conf.php"); function plot($func, $a, $c, $lams, $polynom_size, $norm_data, $polynom) { $plot_data = array(); for($i = 1; $i <= count($norm_data); $i++) { $plot_data[$i - 1] = array($i, $norm_data[$i]['y'][$func]); } $count_data = fun...
true
cd437d63a86ec52052f20b56d78efadd363bf8ab
PHP
pedroge28/ejerciciosphp
/ejercicio02.php
UTF-8
253
3.75
4
[]
no_license
<?php //Array asociativo $array = array("uno"=>"1","dos"=>"2","tres"=>"3","cuatro"=>"4","cinco"=>"5"); foreach ($array as $position => $element){ echo $position. ": ". $element . '<br>'; } /* echo "<pre>"; var_dump ($array); echo "</pre>"; */
true
c13025c147d0f5c6eae49756e4267ced95f1d577
PHP
FolksInteractive/app-php
/src/TC/UserBundle/Twig/AvatarExtension.php
UTF-8
1,469
2.65625
3
[ "MIT" ]
permissive
<?php namespace TC\UserBundle\Twig; use Symfony\Component\DependencyInjection\ContainerInterface; use TC\UserBundle\Entity\User; use Twig_Extension; use Twig_SimpleFunction; use Vich\UploaderBundle\Templating\Helper\UploaderHelper; class AvatarExtension extends Twig_Extension { /** * @var ContainerInterfac...
true
a330a953d8288cab0df29474c86da6c9790c3b04
PHP
babyblu3/ogilvytest
/htdocs/numberstowords.php
UTF-8
5,023
3.59375
4
[]
no_license
<?php class NumbersToWords { private $hyphen = '-'; private $conjunction = ' and '; private $separator = ', '; private $list_singles = array('','one','two','three','four','five','six','seven','eight','nine','ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','ni...
true
fcd0d1e6c8f2e02530386275117ba87d494378d6
PHP
PadmaUnlimited/padma-lifesaver
/helpers/padma/functions.php
UTF-8
1,222
2.90625
3
[]
no_license
<?php /** * Copied from /padma/library/common/functions.php */ /** * @todo Document **/ function padma_change_to_unix_path($path) { return str_replace('\\', '/', $path); } /** * A simple function to retrieve a key/value pair from the $_GET array or any other user-specified array. This wil...
true
c406b87d6301acdeea948c747173a6e4ccb8cf60
PHP
ZcZm/TP-shop
/Application/Home/Controller/TestController.class.php
UTF-8
1,358
2.546875
3
[]
no_license
<?php /** * * @authors ${任清麟} * @date 2018-01-18 14:43:10 * @version $Id$ */ //声明命名空间 namespace Home\Controller; //引入父类控制器 use Think\Controller; //定义当前控制器类 class TestController extends Controller{ public function index(){ // echo "123"; //普通模式:http://www.tpshop.com/?m=home&c=Test&a=index //pathinfo模式:...
true
3b0b6db706f11a542db22bb5a26a9dd4da03dea9
PHP
zoho/zohocrm-php-sdk
/src/com/zoho/crm/api/bulkwrite/Resource.php
UTF-8
3,870
2.640625
3
[]
no_license
<?php namespace com\zoho\crm\api\bulkwrite; use com\zoho\crm\api\util\Choice; use com\zoho\crm\api\util\Model; class Resource implements Model { private $status; private $type; private $module; private $fileId; private $ignoreEmpty; private $findBy; private $fieldMappings; private $file; private $...
true
a2cf0e6b31fd5ada085b5f5ae4907255ad014fe9
PHP
onumahkalusamuel/build-for-sdg-api
/index.php
UTF-8
2,766
2.796875
3
[]
no_license
<?php $GLOBALS['starttime'] = microtime(true); // headers header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST'); header('Access-Control-Allow-Headers: Access-Control-Allow-Headers, Content-Type, Access-Control-Allow-Methods, Authorization, X-Requested-With'); //include the estimator fil...
true
e2689b75077c59e2bd5bc9ab5f9740871e3ff601
PHP
gabfr/php-74-presentation
/1_new_features/29_array_spread_operator.php
UTF-8
103
2.6875
3
[]
no_license
<?php $array = new ArrayIterator([3, 4, 5]); return call(1, 2, ...$array); return [1, 2, ...$array];
true
4980aca029377a4ad74058d4bf2a20bb035dd16c
PHP
tarikmanoar/xenforo
/src/XF/Entity/UserTrophy.php
UTF-8
1,079
2.59375
3
[]
no_license
<?php namespace XF\Entity; use XF\Mvc\Entity\Entity; use XF\Mvc\Entity\Structure; /** * COLUMNS * @property int $user_id * @property int $trophy_id * @property int $award_date * * RELATIONS * @property \XF\Entity\User $User * @property \XF\Entity\Trophy $Trophy */ class UserTrophy extends Entity { public s...
true
e24993c7e03f7cb0dbd05972f4694a58f80e4e83
PHP
kakaisaname/php
/每日算法/二维数组值查找.php
UTF-8
777
3.3125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: caoyi * Date: 2018/8/15 * Time: 10:42 */ $s = [[1, 2, 8], [2, 4, 9, 12], [4, 7, 10, 13], [6, 8, 11, 19]]; function getTarget($target,$array) { //获取二维数组最小值 $min = $array[0][0]; $count = count($array); $lastArray = $array[$count-1]; //获取二维数组最大值 $max =...
true
165b976d627d06f4cf18fb35210cf5f9ebdb7cfa
PHP
samsonasik/BetterReflection
/test/compat/ReflectionClass_hasConstant_001.phpt
UTF-8
1,284
2.90625
3
[ "MIT" ]
permissive
--TEST-- ReflectionClass::hasConstant() --CREDITS-- Robin Fernandes <robinf@php.net> Steve Seear <stevseea@php.net> --FILE-- <?php require 'vendor/autoload.php'; class C { const myConst = 1; } class D extends C { } $rc = \BetterReflection\Reflection\ReflectionClass::createFromName("C"); echo "Check existing constan...
true
76b08962ca88c6b147134998d3d2d48d05782559
PHP
VitorDiniz1907/ifgoiano
/tecInformática/lucas/banco/farmacia.class.php
UTF-8
1,060
3.15625
3
[ "MIT" ]
permissive
<?php class Farmacia{ private $id; private $nome; private $telefone; private $cnpj; private $razao; public function __construct(){ } public function getId(){ return $this->id; } public function setId...
true
bf0f74199d62d70caa13cb198d487fc70480062e
PHP
VatikaH/PalMaiPal
/signup.php
UTF-8
2,076
2.53125
3
[]
no_license
<?php function sp($var) { if( gettype($var) == "string" ) { $var=strtolower($var); $var[1]=chr(ord($var[1])-32); } return $var; }//variables that are passed function pp($var) { if( strlen($var) == 10 ) { $var=str_split($var); $tvar=$var[0]."-(".var[1].var[2]...
true
5c7b8de994704b2e3fccdd1beea0c8009b8e4be5
PHP
AndSanAlmeida/HUGOCASQUEIRO
/database/seeds/ImagesSeeder.php
UTF-8
1,488
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Image; use App\Project; class ImagesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $projects = Project::all(); foreach ($projects as $project) { $image = new Im...
true
7a8f4a06926656b0aaa10dff07dafc240cbecfc7
PHP
AlexLazy/velvet.ru
/admin/date/libs/Masters.class.php
UTF-8
1,344
2.921875
3
[]
no_license
<?php //Родительский класс объявления class Masters { public $master_id = ''; public $date = ''; public $master_title = ''; public $master_fio = ''; public $master_city = ''; public $master_phone = ''; public $master_certificate = ''; public function __construct($post) { ...
true
80381280d9fb5d8c70aa445e279b6ab59e264fd5
PHP
gaofei763/Boke
/Framework.class.php
UTF-8
2,653
2.671875
3
[ "Apache-2.0" ]
permissive
<?php class Framework{ //定义一个run方法 public static function run(){ //初始化 static::init(); static::autoload(); static::dispath(); //static::Db(); } //初始化 private static function init(){ //定义常量路径 define("DS",DIRECTORY_SEPARATOR); //根目录 define("ROO...
true
f0420b6c14a2debb6ea329043a65fa94c0b0e5a3
PHP
mongodb/mongo-php-driver
/tests/bulk/bulkwrite-count-001.phpt
UTF-8
638
2.6875
3
[ "Apache-2.0" ]
permissive
--TEST-- MongoDB\Driver\BulkWrite::count() should return the number of operations --FILE-- <?php $bulk = new MongoDB\Driver\BulkWrite; var_dump($bulk->count()); $bulk->insert(['x' => 1]); var_dump($bulk->count()); $bulk->insert(['x' => 2]); var_dump($bulk->count()); $bulk->update(['x' => 3], ['$set' => ['y' => 3]])...
true
61c4f4b8f3db2cfe45192be8887bf9c27e28932c
PHP
JBirot/CatClinic
/Modele/Chat.php
UTF-8
1,583
3.078125
3
[]
no_license
<?php final class Chat extends ObjetMetier { private $_I_identifiant; private $_D_age; private $_S_tatouage; private $_S_nom; // Mes mutateurs (setters) public function changeIdentifiant ($S_identifiant) { $this->_I_identifiant = $S_identifiant; } public function change...
true
e17954e063ba427c49306c7454081f0677d0c12f
PHP
markostanimirovic/purchase-process
/model/Product.php
UTF-8
3,037
2.71875
3
[]
no_license
<?php namespace model; use common\base\BaseModel; use modelRepository\CatalogRepository; class Product extends BaseModel { protected $code; protected $name; protected $unit; protected $price; protected $catalog; public function __construct() { parent::__construct(); } p...
true
f280f66970e7ace50235baa5152eeca7f59f064a
PHP
sschw/Quizling
/lib/database/DBController.php
UTF-8
8,454
2.65625
3
[ "MIT" ]
permissive
<?php session_start(); require_once(dirname(__FILE__) . "/../external/idiorm.php"); class DBController { private static $dbcontroller; private function __construct() { // Define different DBs for different languages $connections = array( array( "language"=>"de", ...
true
8c224adafea7892f13c8a3ba10551440ef3857f7
PHP
googleapis/gapic-generator-php
/src/Ast/HasAccess.php
UTF-8
1,311
2.828125
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
true
4076583ca222cf9a267b997c34e2433e7ad4651a
PHP
nsimms/php-tuts
/11-functions-wip.php
UTF-8
1,408
3.5625
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>functions a foot</title> </head> <body> <p>Code to say hello to Fred by default but recieve dynamic variable</p> <?php function sayHello($name = 'Fred') { return sprintf("Hello %s", $name ); } echo sayHello(); ?> <hr /> <p>function to apply pre tags arou...
true