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
ed4aec65d2ec4efe5f8e5bfaa5c7fac86ebbbaac
PHP
AlvaroDavidT/usuariosYii
/frontend/models/SubirArchivosForm.php
UTF-8
896
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use yii\base\model; class SubirArchivosForm extends model { public $file; public function rules() { return [ ['file', 'file', 'skipOnEmpty' => false, 'uploadRequired' => 'No has seleccionado ningún archivo', //Error ...
true
35eb6317f4de9cc13961f31ca2871b7bd9b70ca9
PHP
EtincelleCoworking/intranet
/app/controllers/CountryController.php
UTF-8
2,419
2.71875
3
[]
no_license
<?php /** * Country Controller */ class CountryController extends BaseController { /** * Verify if exist */ private function dataExist($id) { $data = Country::find($id); if (!$data) { return Redirect::route('country_list')->with('mError', 'Ce pays est introuvable !'); ...
true
042c1f61e25680863b16848183447fafef76b76c
PHP
YordanPetkov/exInterfaces
/exInterfaces/office.php
UTF-8
951
3.25
3
[]
no_license
<?php include_once 'classPen.php'; include_once 'classCar.php'; include_once 'classPrinter.php'; class Office { private $writer; private $transport; public function __construct(Writer $writer,Car $transport) { $this->writer = $writer; $this->transport = $transport; } publi...
true
1755ec5779b8d12677f83937aebee8f55ee43dc7
PHP
cympak56/loftschool
/DM-2/project-4/Class/Trait/Gps.php
UTF-8
171
3.078125
3
[]
no_license
<?php trait Gps { protected $price = 15; public function gps($time) { $time = ceil($time / 60) * 60; return $time * $this->price; } }
true
d3c9a94f2d2e8885a51d1668f5a509ebefa0d036
PHP
AnthonyNicholas/SEPT_appt_booker
/tests/addEmpTest.php
UTF-8
1,041
2.75
3
[ "MIT" ]
permissive
<?php // author: Jake Williams s3448342 // purpose: test functionality for adding an employee to the system use PHPUnit\Framework\TestCase; class addEmpTest extends TestCase { // Test that add employee fails if last name is not numeric /** * @runInSeparateProcess */ public function test_rej...
true
828f13a84deb38030a69816cc916ac29a6e3d01e
PHP
junwoung/myProjectBackend
/protected/controllers/SaveController.php
UTF-8
747
2.515625
3
[]
no_license
<?php header('Access-Control-Allow-Origin:*'); class SaveController extends Controller{ public function actionAddSave(){ $pid = $_GET['articleId']; $uid = $_GET['userId']; $ret = Save::addSave($pid,$uid); if($ret){ $return = array( 'code' => 0, 'msg' => '已收藏' ); } else{ $return = array( ...
true
5f5e59218dfe25d3b1cd30e617b61e06530c7705
PHP
haojohnny/challenge
/app/Http/Resources/WeChat/User.php
UTF-8
1,105
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Resources\WeChat; use App\Enums\ErrorCode; use Illuminate\Http\Resources\Json\JsonResource; class User extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray(...
true
eeac4cec2fb8398c77cc180ff1ffff812398b652
PHP
jpmendezf/fusio-sdk-php
/gen/backend_action_list.php
UTF-8
3,052
2.71875
3
[ "MIT" ]
permissive
<?php namespace BackendActionList; use GuzzleHttp\Client; use PSX\Schema\Parser\Popo\Dumper; use PSX\Schema\SchemaManager; use PSX\Schema\SchemaTraverser; use PSX\Schema\Visitor\TypeVisitor; class Resource { /** * @var string */ private $url; /** * @var string */ private $token; ...
true
d62e978fb7053270588917d63d3a4800f4da7cc5
PHP
roshniji23/college_portal
/college portal/notesstudent.php
UTF-8
1,240
2.578125
3
[]
no_license
<?php session_start(); include 'connection.php'; ?> <style type="text/css"> .table1 tr td{height: 50px; width: 200px; box-shadow: 5px 5px 5px gray; text-align: center;} </style> <form action="" method="post"> <center><table class="table1"><tr><td colspan="4"><h2><b>Seach Notes</b></h2></td></tr> <tr><td>Enter Sub...
true
1686cbab1f269d7b20d803eba138091d8c10d7e3
PHP
MartinMatsumoto/jushouqing
/structure/maptree/dao/department_dao.php
UTF-8
1,205
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Acer * Date: 2016/9/20 * Time: 10:19 */ class department_dao { private $conn; private $getOne = "select * from department where id = :id"; private $listAll = "select * from department"; private $listUseful = "select * from department where status = 0"; ...
true
d371778414a0cb9e9dbd3fd426ac7b05a23e9af2
PHP
b4oshany/wtforms-php
/src/Form.php
UTF-8
2,576
3
3
[]
no_license
<?php namespace WTForms; use WTForms\Fields\Field; class Form { protected $_url = null; protected $_method = null; protected $_fields = []; protected $_engine = null; protected $_tpl = null; protected $_errors = null; public function __construct($method='GET',$url='#') { ...
true
01aa63dbf79bca7fd9dd40ef79111fb563ed6495
PHP
mykyta-b/resume-generator
/src/EventListener/ExceptionListener.php
UTF-8
977
2.546875
3
[]
no_license
<?php namespace App\EventListener; use App\Controller\RenderTrait; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\ExceptionEvent; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Twig\Environment; class ExceptionListener { use RenderTrait; /** ...
true
e2b1092fa813a2219eb74bcbaffc1cedb4491e4c
PHP
jasonbdaro/php_design_pattern_app
/app/SimUDuck/MallardDuck.php
UTF-8
326
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: j.daro * Date: 10/2/2018 * Time: 10:55 AM */ namespace SimUDuck; use SimUDuck\Contracts\Duck; class MallardDuck extends Duck { use TypicalDucks; public function display() { // TODO: Implement display() method. return 'I am a mallard duck'; ...
true
f9ef38b0b4933f7a3bebed753e26e1f7325b9f45
PHP
Randell1203/TaskManagementSystem
/app/Utilities/ModelRequests.php
UTF-8
3,158
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Utilities; use App\Models\JobTitle; use App\Models\Task; use App\Models\Department; use App\User; use App\Utilities\Core; use Auth; trait ModelRequests { use Core; protected function getModelList($model){ $data = array(); switch (strtolower($model)) { case 'department': $data = De...
true
2677bd7962a6d79a66ba603e3eb617a90d068ba3
PHP
hwmbm/locations
/usuallyfunction.php
UTF-8
36,249
3.5625
4
[]
no_license
<?php /** * Created by PhpStorm. * User: BM * Date: 2017/10/18 * Time: 10:26 */ //PHP常用函数总结 header("Content-type:text/html;charset=utf-8"); echo "<h2>数学函数</h2>".'</br>'; $a ='aaaaaaaaaacc123'; $b ='q'; echo substr_count($a,'a'); // 1.abs(): 求绝对值 //$abs = abs(-4.2); //4....
true
7e7850a9f70475c12d6e89d21d3175a833f3a926
PHP
Elyriand/php-fw
/src/Metinet/Core/Security/AuthenticationFailed.php
UTF-8
523
2.671875
3
[]
no_license
<?php /** * @author Boris Guéry <guery.b@gmail.com> */ namespace Metinet\Core\Security; use Metinet\Domain\Conferences\Email; class AuthenticationFailed extends \Exception { public static function invalidPassword(Account $account) { return new self(sprintf('Account "%s" failed to authenticate, inva...
true
12925d05e9c434dfe1b8ebe8e7b8d3cf0c8de044
PHP
LeQuangKhai99/appbandienthoai
/checkLoginAdmin.php
UTF-8
616
2.53125
3
[]
no_license
<?php include "connect.php"; $sql = "SELECT * from user"; $result = mysqli_query($con, $sql); function checkLogin($result, $con){ $tendangnhap = $_POST['tendn']; $matkhau = $_POST['mkdn']; if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)...
true
4b36f5c795586ece9d7e1674221e6f844c1aed40
PHP
silva-rafael/CRUD-listadetarefas
/inserir.php
UTF-8
590
2.9375
3
[]
no_license
<?php require_once "conecta.php"; if (isset($_POST['titulo'])) { $titulo = $_POST['titulo']; $tarefa = $_POST['tarefa']; $insere = "INSERT INTO tarefas (titulo, tarefa) VALUES ('$titulo','$tarefa')"; $query = mysqli_query($con, $insere); header("Location:index.php"); } ?> <!DOCTYPE html> <html> <head> <titl...
true
f06cdd4c42fe67f03aa897868e97a7da172fd9b0
PHP
Jacksons69/Reservator
/app/Utils/TwigLoader.php
UTF-8
836
2.828125
3
[]
no_license
<?php require_once __DIR__.'/../vendor/autoload.php'; class TwigLoader { private $loader = ''; private $twig = ''; public function __construct() { $this->loader = new Twig_Loader_Filesystem(__DIR__.'/../Views'); $this->twig = new Twig_Environment($this->loader); } public function...
true
c2592a2d840d0943b30b256ca247ebb383839bd5
PHP
naaomiiin/preference_acqusition
/get_wiki_test.php
UTF-8
10,782
2.890625
3
[]
no_license
<?php /*================================== Wikipedia からデータを取得するプログラム ==================================*/ /*== Wikipedia API の URL =======================*/// define('WIKIPEDIA_API_URL', 'http://ja.wikipedia.org/wiki/%E7%89%B9%E5%88%A5:%E3%83%87%E3%83%BC%E3%82%BF%E6%9B%B8%E3%81%8D%E5%87%BA%E3%81%97'); /*== 取得する...
true
15e6d44a1e45c0cd0d68c493666abca90ab672c1
PHP
justsolove/rangine-admin
/app/Model/Common/Region.php
UTF-8
4,638
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mayn * Date: 2019/11/14 * Time: 9:32 */ namespace W7\App\Model\Common; use W7\Core\Database\ModelAbstract; class Region extends ModelAbstract { /** * 与模型关联的数据表。 * * @var string */ // 表名设置 protected $table = 'region'; // 主键设置 protecte...
true
0f2fca96414cecbb2edab2e2f134e4288bb9f8c1
PHP
vannguyen7386/sanpham
/project/Fashion/Admin/Application/Models/MenuModel.php
UTF-8
1,374
2.59375
3
[]
no_license
<?php Class Menu{ public function DelItemTop($Id){ $sql = "DELETE FROM fas_menutop WHERE TopID={$Id}"; return mysql_query($sql) or die('Could not deleted'.mysql_error()); } public function DelItemBot($Id){ $sql = "DELETE FROM fas_menubot WHERE ID={$Id}"...
true
18b89bfbec4d00a60fcdfad085f0d72a3d77bd46
PHP
AC32006-Team11/delivrhyno
/DBMSAdvancedQuery5.php
UTF-8
1,706
2.78125
3
[ "MIT" ]
permissive
<?php include 'header.php'; ?> <?php /** * Displays the results of the fifth DBMS Advanced MySQL query. */ function advancedQuery5() { include 'dbConnect.php'; ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php $queryavg = "SELECT AVG(salary) FROM payroll;";...
true
293d2e9df09feffe7c5dd6482c7f52716ffffb9e
PHP
pulsare22/libriaa
/app/Repositories/RepositoryLibro.php
UTF-8
607
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Libro; class RepositoryLibro { static function store($request, $path) { $libro = new Libro; $libro->titulo = $request->titulo; $libro->edicion = $request->edicion; $libro->paginas = $request->paginas; $libro->precio = $request->precio; $libro->isbn = $request->...
true
b45fa70217a77887fb39758839789dc42d15d9df
PHP
jlctmaster/chsb
/web/class/class_organizacion.php
UTF-8
4,546
2.734375
3
[]
no_license
<?php require_once("class_bd.php"); class organizacion { private $rif_organizacion; private $nombre; private $direccion; private $telefono; private $tipo_organizacion; private $codigo_parroquia; private $estatus; private $pgsql; public function __construct(){ $this->rif_organizacion=null;...
true
3b5e2793d9c41bde94eb165da1cf3cd3f8fcec37
PHP
ngiramolaulia/itc240-2014
/assignment-07/lists.php
UTF-8
1,014
2.546875
3
[]
no_license
<?php include("password.php"); $mysql = new mysqli("localhost", "lngira01", $library_password, "lngira01"); //$book_title =$mysql->query('SELECT * FROM library ORDER BY title ASC;'); //$sort = "sort_books"; if(isset($_POST['sort']) && $_POST['sort'] == "ascending") { //$sort = $_REQUEST["sort"]; $book_title =$mysql...
true
10ef4eb71021d58e4fe27ec91ceeb4b8ea48404c
PHP
bgaze/php-dotenv
/src/Helpers.php
UTF-8
1,998
3.359375
3
[ "MIT" ]
permissive
<?php namespace Bgaze\Dotenv; /** * A helper class to quickly parse Dotenv. * * @author Bgaze <benjamin@bgaze.fr> */ class Helpers { /** * Parse provided string, throw an exception if invalid, otherwise return parsed content as a key-value array. * * @param string $string The string to parse ...
true
fe4efd9e6d8d964e4c12c61ce95117b3d542e84a
PHP
openpne/OpenPNE3
/lib/vendor/symfony/lib/config/sfGeneratorConfigHandler.class.php
UTF-8
2,982
2.765625
3
[ "MIT", "BSD-3-Clause", "ICU", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause" ]
permissive
<?php /* * This file is part of the symfony package. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfGeneratorConfigHandler. * * @package symfon...
true
09ec21e0e1649b5f4ec1787f5101ba18aef9b58e
PHP
Veargan/Study
/AHome/php/phpprojects/calculator/php/index.php
UTF-8
576
3.640625
4
[]
no_license
<?php function calculate($a, $b, $op) { $result = 0; switch($op) { case '+': $result = $a + $b; break; case '-': $result = $a - $b; break; case '*': $result = $a * $b; break; case '/': if ($result === false) throw n...
true
bf09939d766aeb6bcf4c4185882a85bafb6cd8c2
PHP
xfrocks/bdWidgetFramework
/library/WidgetFramework/WidgetRenderer/ShareThisPage.php
UTF-8
2,371
2.515625
3
[]
no_license
<?php class WidgetFramework_WidgetRenderer_ShareThisPage extends WidgetFramework_WidgetRenderer { public function extraPrepareTitle(array $widget) { if (empty($widget['title'])) { return new XenForo_Phrase('wf_share_this_page'); } return parent::extraPrepareTitle($widget); ...
true
be5eeeb3467f4128302b0f842799f995d8815619
PHP
Crov/developer-test
/task1/UserRegistry/app/Repositories/Interfaces/UserRepositoryInterface.php
UTF-8
435
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Interfaces; interface UserRepositoryInterface { /** * Get all users */ public function all(); /** * Simple pagianted list of all users list of all users */ public function paginate(int $perPage = 15); /** * Create a new user */ p...
true
4fbdb7958f815328c0e627f093931cd6470ea6a6
PHP
GioOli7/php-hotel-crud
/details.php
UTF-8
795
2.5625
3
[]
no_license
<!-- head --> <?php require_once __DIR__ . '/partials/get-customer-details.php'; require_once __DIR__ . '/partials/templates/head.php'; ?> <body> <main class="container"> <?php if(!empty($customer)) { ?> <h1 class='my-5'>Detail of <?php echo $customer['name'] ?> <?php echo $customer[...
true
3d60a992c0fc157b3acb4ba90cf38618217f3a9a
PHP
lzemna/DermaBeauty
/src/Entity/Commande.php
UTF-8
3,421
2.59375
3
[]
no_license
<?php namespace App\Entity; use App\Repository\CommandeRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=CommandeRepository::class) */ class Commande { /** * @ORM\Id * @ORM\Gener...
true
6b15511104e620203f0786515a263c1be1b7974c
PHP
jiangbaiyan/yake
/database/migrations/2018_04_05_174955_create_users_table.php
UTF-8
1,512
2.609375
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
true
95b63780a2fb4d40898bf840c7cadac5818a6226
PHP
garylai578/rockoa
/include/chajian/cacheChajian.php
UTF-8
1,359
2.6875
3
[]
no_license
<?php /** * 缓存,目前是使用磁盘文件存储 */ class cacheChajian extends Chajian{ private $dirvie = 'file'; //redis,file /** * 设置缓存 * $time 缓存时间(秒) */ public function set($key, $data, $time=0) { if(isempt($data))return $this->del($key); $sarr['key'] = $this->getkey($key); $sarr['data'] = $data; if($time>0){ $t...
true
03fca7ee0c92d536928db7c22f381786639200fb
PHP
comzem/git_cms1
/source/classes/DcMysql.class.php
UTF-8
4,889
2.9375
3
[]
no_license
<?php /** * PHP mysql数据库操作类 */ final class DcMysql{ /** * 连接数据库的方法 */ private $link; /** * 连接并选择数据库 */ public function connect($dbhost, $dbuser, $dbpw, $dbname = '', $pconnect = 0, $halt = TRUE) { $func = empty($pconnect) ? 'mysql_connect' : 'mysql_pconnect'; if(!$this->link = @$func...
true
c5bbfb82c5afbec5c17d1f47a471e618b88ef215
PHP
thanhbinh-primelabo/DATN-K17
/app/Helpers/Helper.php
UTF-8
3,011
2.890625
3
[]
no_license
<?php if (! function_exists('convert_phone')) { function convert_phone($phone) { for($i=0;$i<strlen($phone);$i++){ if($i>=4&&$i<7){ $phone[$i] = '*'; } } return $phone; } } if (! function_exists('randomCode')) { function randomCode($length) { $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'...
true
59a9fbdcefa95c02cd1ca943829b399403ceb607
PHP
HamidVetr/pxl-test-task
/app/Models/CreditCard.php
UTF-8
671
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class CreditCard extends Model { // region traits use HasFactory; // endregion // region variables protected $guarded =...
true
ae0efaf7a7557644a07f14718a8bfc105da64c7f
PHP
Elisseii/OC-Branch-Management
/updates/builder_table_create_elisseiidev_branchmanagement_groups.php
UTF-8
611
2.546875
3
[]
no_license
<?php namespace Elisseiidev\BranchManagement\Updates; use Schema; use October\Rain\Database\Updates\Migration; class BuilderTableCreateElisseiidevBranchmanagementGroups extends Migration { public function up() { Schema::create('elisseiidev_branchmanagement_groups', function($table) { ...
true
476143becf569122a07e5dc6208beb584d72645c
PHP
petardimic/webERP
/laravel-master/app/database/migrations/2014_09_17_143202_add_patients.php
UTF-8
659
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddPatients extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::table('patients')->insert(array( 'name' => 'yash', 'age' => '20', 'phone' => '10' ...
true
486a28889102445aafd8338ae73e89b48a49c0ac
PHP
hashbangcode/sitemap_checker
/src/ResultRender/CsvResultRender.php
UTF-8
555
2.734375
3
[ "MIT" ]
permissive
<?php namespace Hashbangcode\SitemapChecker\ResultRender; use Hashbangcode\SitemapChecker\Result\ResultCollectionInterface; class CsvResultRender implements ResultRenderInterface { public function render(ResultCollectionInterface $resultCollection): string { $string = ''; foreach ($resultCollection as $...
true
e00651bbad2a6f0dab85f425f9586584fb2d5f94
PHP
YasminePlasmans/web-backend-oplossingen
/CRUD/crud-sort/crud-query-sort.php
UTF-8
2,382
2.984375
3
[]
no_license
<?php $message = false; try{ $db = new PDO('mysql:host=localhost;dbname=bieren', 'root', 'root'); $orderByArray = array(); $orderBy = 'ASC'; $orderByColumn = ''; $orderByString = ''; if(isset($_GET['OrderBy'])){ $orderByArray = explode('-', $_GET['OrderBy']); $orderByColumn = $orderByA...
true
50bc2c86fd6003d11846f89a02be84e55bd9ef28
PHP
sofiaqsy/timeOpen
/core/bin/functions/subir_img.php
UTF-8
219
2.5625
3
[]
no_license
<?php function subir_img($directorio,$name){ // Muevo la imagen desde el directorio temporal a nuestra ruta indicada anteriormente move_uploaded_file($_FILES['imagen']['tmp_name'],"$directorio/$name"); } ?>
true
4c4ac54839acdef20a723607fdca0e0fecd8b4c3
PHP
thu0ng91/free55
/system/core/models/News.php
UTF-8
4,079
2.59375
3
[ "Apache-2.0" ]
permissive
<?php /** * This is the model class for table "book". * * The followings are the available columns in table 'book': * @property string $id * @property string $title * @property string $author * @property integer $cid * @property string $imgurl * @property string $summary * @property integer $createtime * @p...
true
f8c901d04d3028d582dea080edafe14427d161e4
PHP
efabrica-team/graphql
/src/Schema/Definition/Values/Value.php
UTF-8
1,016
2.9375
3
[ "MIT" ]
permissive
<?php namespace Efabrica\GraphQL\Schema\Definition\Values; class Value { protected string $name; /** @var mixed */ protected $value; protected ?string $description = null; public function __construct(string $name, $value) { $this->setName($name); $this->setValue($value); ...
true
e145e762faff23ba9f9809802212562211c00b19
PHP
chambec/phortress
/test/Phortress/Fixture/while_loop_test.php
UTF-8
189
3.09375
3
[ "MIT" ]
permissive
<?php $tainted = $_GET['tainted']; function func($a, $b) { $ret = 5; while($ret < 10){ $ret = $ret + $a; } $ret += 5; return $ret; } $a = func($_GET['tainted'], 5); $b = func(5, 5);
true
92952bc0b21ced2f3243b44e913425ae64f0dadc
PHP
g7sim/encryption
/src/Support/InteractWithKeyFiles.php
UTF-8
2,720
2.953125
3
[ "MIT" ]
permissive
<?php /** * @author BlackPlatinum Developers * @license MIT * Date: 19/Aug/2020 9:32 PM **/ namespace BlackPlatinum\Encryption\Support; use BlackPlatinum\Encryption\Core\Exception\KeyException; trait InteractWithKeyFiles { /** * Write content of generated key to a file. * * @param string $co...
true
14305d2ccacdfc38bae3565dececd6c45af73c14
PHP
mahmods/gadwa3
/app/Http/Controllers/CountryController.php
UTF-8
3,025
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Country; use App\Repositories\CountryRepository; use Illuminate\Http\Request; use Mcamara\LaravelLocalization\Facades\LaravelLocalization; /** * Class CountryController * @package App\Http\Controllers */ class CountryController extends Controller { /** * @var ...
true
06edaff25b7d06ecfa7ef36d4f34aba2c8d0edf4
PHP
ISeeTWizard/individual_project
/src/Controller/create.php
UTF-8
3,327
2.90625
3
[ "MIT" ]
permissive
<?php try{ $connection = Service\DBConnector::getConnection(); } catch (PDOException $exception) { http_response_code(500); echo 'Impossible to connect to the DB, contact the support'; exit(1); } if ( !empty($_POST)) { $movienameError = null; $movieyearError = null; $moviequalityError = n...
true
4c79a309cb6de44dd8adc0e9f9cbe3151f53c69d
PHP
servitpol/powercode
/includes/connect.php
UTF-8
559
2.71875
3
[]
no_license
<?php class Tools{ static function connect($host="servitsj.beget.tech", $user="servitsj_powcode", $pass="123456", $dbname="servitsj_powcode") { $cs='mysql:host='.$host.';dbname='.$dbname.';charset=utf8;'; $options=array( PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE=...
true
ca96abbd61715d60d95647e502736d889df44d39
PHP
linhnh2805/lfvn-poc
/app/Console/Commands/Test.php
UTF-8
1,481
2.9375
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Services\SmsService; class test extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'command:test'; /** * The console command description. ...
true
d8e29b7c3f2aa98b7f75a4f7d4ffab705e983e26
PHP
1Mr-Styler/Rose
/classes/Girls/Rose.inc
UTF-8
1,164
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Styl3R * Date: 5/24/17 * Time: 2:01 AM */ namespace Girls; use Libs\Collection; final class Rose { private $name, $mail, $id; /** * Rose constructor. * @param array $details */ public function __construct(array $details) { $this->...
true
f8891e6220fbd300b9a5957900d48f86a15a4acf
PHP
borislavkostov/JsonToMysql
/FromJsonURLToMySQL.php
UTF-8
1,125
2.609375
3
[]
no_license
<?php require("db_info.php"); $conn = mysql_connect("localhost", $username, $password); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; $x=4; for($x=120;$x<220;$x++) { $str = file_get_contents("http://api.eventful.com/json/even...
true
8970cc70a47ecd92a3ed6440bd37a2c6c89867ce
PHP
shigeharuo/findmind
/feadback.php
UTF-8
3,103
2.875
3
[]
no_license
<?php session_start(); include('functions.php'); //←関数を記述したファイルの読み込み $pdo = db_conn(); //←関数実行 // ユーザー別の投稿数取得 $sql = "SELECT COUNT(Id) as post_num FROM coin_post WHERE userId=". $_SESSION['id']; $stmt = $pdo->prepare($sql); $status = $stmt->execute(); $result = $stmt->fetch(PDO::FETCH_ASSOC); $post_num = $result['pos...
true
554d4fcd60c84ac5daf16b0c628955c6c98ffe88
PHP
SamuelY/FirebaseCloudMessagingExample
/test.php
UTF-8
1,933
2.546875
3
[]
no_license
<?php //Demo how to push message to web client // //Set up a JavaScript client to receive server's push notification // //please visit https://firebase.google.com/docs/cloud-messaging/js/client // //Push message to web client // //1. Login firebase console and create a service account in project settings //2. Click ...
true
e6206594c631b7a998435cc98da0d05632300595
PHP
Silvestra/Silvestra
/src/Silvestra/Component/Seo/Tests/Templating/SeoEngineTest.php
UTF-8
4,533
2.578125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Silvestra package. * * (c) Tadas Gliaubicas <tadcka89@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Silvestra\Component\Seo\Tests\Templating; use Silvestra\Component\Seo...
true
e7dd3867d6610b46a0ad143cecbc66df97eb2ce6
PHP
Leo24/clients_database
/app/Models/Car.php
UTF-8
483
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Car extends Model { protected $table = 'cars'; protected $fillable = [ 'make', 'model', 'year', 'state_number', 'ecu_name', 'chiptuned', 'deleted_at', 'created_at', ...
true
e1020c7a5eedae15128025d59efcb07e4069e90a
PHP
gauravsingh58/algo
/hackerEarth/practice_problems/easy/WhatIsTheStringMadeOf.php
UTF-8
145
3.078125
3
[ "WTFPL" ]
permissive
<?php $sum = 0; $m = array(6, 2, 5, 5, 4, 5, 6, 3, 7, 6); foreach(str_split(trim(fgets(STDIN))) as $k => $v) $sum += $m[$v]; echo "$sum\n";
true
b5051d411f9aa3edd0892df7bd12cf4d8fe537a1
PHP
dickongray/phpchecker
/checker.php
UTF-8
777
3.609375
4
[]
no_license
<?php //check image //rioceives a filename //Returns true or false depending on whether it is a certain type // hint: in_array() //option A $filename = "thisimage.jpg"; //function checkImage($filename) { // $filenamez = array("jpg", "png", "gif"); // $mini = array("jpg") // $value = substr($filename, -3); // if ...
true
5aef7071176241d818ab5a0fb3961475d35a46c2
PHP
SpaceLenore/oophp-me
/src/DiceGame/Player.php
UTF-8
921
3.875
4
[]
no_license
<?php namespace SpaceLenore\DiceGame; /** * Player class, keeps track of the player data. */ class Player { // Private variables private $score; private $name; /** * Constructor to create a new player * @param string name this is the player name */ public function __construct($score =...
true
424cafd7147230330fb0e6b1940c1dcd8e709272
PHP
amityaharoni/MyDataLaboratory
/src/MyDataLab/Bundle/MarketSurveyBundle/Entity/MarketSurveyCategory.php
UTF-8
1,199
2.703125
3
[]
no_license
<?php namespace MyDataLab\Bundle\MarketSurveyBundle\Entity; /** * MarketSurveyCategory */ class MarketSurveyCategory { /** * @var int */ private $id; /** * @var MarketSurveyCategory */ private $parentCategory; /** * @var string */ private $name; function ...
true
99ced681e0d708d387568f011eb93f311a1029d5
PHP
lucas-fabry/nuitdelinfoSofuto
/model/ModelScore.php
UTF-8
587
2.84375
3
[]
no_license
<?php require_once File::build_path(array('model', 'Model.php')); class ModelScore extends Model { protected static $object = "Score"; protected static $primary = 'Pseudo'; private $pseudo; private $score; public function get($nom_attribut) { return $this->$nom_attribut;...
true
b69775b62472d43439e98546e90212244019b697
PHP
Aldarien/menu
/modules/ModelMigrator/app/Service/Migrator.php
UTF-8
3,023
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Service; use Psr\Container\ContainerInterface; class Migrator { protected $data; protected $check; protected $container; public function __construct(ContainerInterface $container) { $this->container = $container; } public function load(string $migrations) { $dir = new \Direct...
true
21e54b0d5f6b9fa7e5f7d75a0e706ae61333ce7c
PHP
LinioIT/seller-center-sdk
/tests/Unit/Shipment/ShipmentProviderTest.php
UTF-8
4,737
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Linio\SellerCenter\Shipment; use Linio\Component\Util\Json; use Linio\SellerCenter\Exception\InvalidXmlStructureException; use Linio\SellerCenter\Factory\Xml\Shipment\ShipmentProviderFactory; use Linio\SellerCenter\LinioTestCase; class ShipmentProviderTest extends LinioTestC...
true
52e5d467217dd601df28c1b103ccad6b68b406b7
PHP
CADTeam2/REST-API-and-DataManager
/database/factories/sessionFactory.php
UTF-8
1,718
2.640625
3
[ "MIT" ]
permissive
<?php use App\Attendance; use App\Event; use App\Session; use App\User; use Illuminate\Support\Str; use Faker\Generator as Faker; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This direct...
true
4587deb4c531356932bad3d966e0f6f0b718ef90
PHP
controlade/filemanager
/SPLIB/Session/Session.php
UTF-8
1,732
3.25
3
[]
no_license
<?php /** * @package SPLIB * @version $Id: Session.php,v 1.1 2003/12/12 08:06:05 kevin Exp $ */ /** * A wrapper around PHP's session functions * <code> * $session = new Session(); * $session->set('message','Hello World!'); * echo ( $session->get('message'); // Displays 'Hello World!' * </code> * @package SP...
true
2c9b8aedc34541c820810d016141cbaebbbf9703
PHP
abterphp/admin
/src/Bootstrappers/Validation/ValidatorBootstrapper.php
UTF-8
3,285
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AbterPhp\Admin\Bootstrappers\Validation; use AbterPhp\Admin\Validation\Factory\User; use AbterPhp\Admin\Validation\Factory\UserGroup; use AbterPhp\Framework\Constant\Env; use AbterPhp\Framework\Validation\Rules\Base64; use AbterPhp\Framework\Validation\Rules\ExactlyOne; use A...
true
56808623dbfdef1aafd22a08ceb4b0d938170d1d
PHP
fliglio/web
/src/Entity.php
UTF-8
1,661
2.8125
3
[]
no_license
<?php namespace Fliglio\Web; class Entity { private $body; private $contentType; public function __construct($body, $contentType) { $this->body = $body; $this->contentType = $contentType; } public function get() { return $this->body; } public function getContentType() { return $this->contentType; }...
true
cbef69936669b80e9fa847a48838ad959516ea00
PHP
lewislove/iploysite
/_do_files_to_database.php
UTF-8
2,175
2.6875
3
[]
no_license
<div style="font-size:12px;" > <?php if($_GET['run']=='photo'||$_GET['run']=='cv'||$_GET['run']=='certificate'){ include_once('_system/_config/configure.php') ; include('_system/functions/delete_directory.php') ; switch($_GET['run']){ case 'photo' : break ; case 'cv' : break ; case 'certificate' : bre...
true
52dfae8a8f46c0d7e18c7b979cae2e1b4a877a8a
PHP
Ozerich/yii2-api
/src/filters/AccessControl.php
UTF-8
2,653
2.6875
3
[]
no_license
<?php namespace ozerich\api\filters; use yii\base\ActionFilter; use yii\di\Instance; use yii\web\ForbiddenHttpException; use yii\web\User; class AccessControl extends ActionFilter { /** * @var User|array|string the user object representing the authentication status or the ID of the user application componen...
true
2fb79027ad41efaf8678d102afaccaf67fb13983
PHP
halfbyte/janzyklopedie
/inc/db_wrap_mysql.php
ISO-8859-1
1,720
2.71875
3
[]
no_license
<?php # # datenbankwrapperfunktionen fuer linkliste # # mysql-version auf der palmfreedom-datenbank # $dbname="krutisch"; $dbuser="krutischdb"; $dbpassword="funnyDB"; $dbhost="localhost"; if (!$db_wrap_included) { function return_query($query) { global $dbhost,$dbname,$dbpassword,$dbuser; # datenbankwrapper fr sel...
true
c9dcf91324706b30bdac4a6394b28da9c9ec180b
PHP
kativanova/php-project-lvl1
/src/Engine.php
UTF-8
822
3.234375
3
[]
no_license
<?php namespace Brain\Games\Engine; define('NUMBER_OF_ATTEMPTS', 3); define('MIN_NUMBER', 0); define('MAX_NUMBER', 100); use function cli\line; use function cli\prompt; function run(string $rules, array $questionsAndAnswers): void { line('Welcome to the Brain Game!'); $name = prompt('May I have your name?')...
true
eeecc153804b8199dbfeb1b78b82e884767fb7fa
PHP
arifSuwadji/crud-php-native
/controllers/core/conn_generate.php
UTF-8
612
2.75
3
[]
no_license
<?php function gen_conn($host,$dbUser,$dbName,$dbPassword){ $string .=" <?php error_reporting(E_ALL & ~E_NOTICE); define (\"HOST\",\"$host\"); define (\"DB_USER\",\"$dbUser\"); define (\"DB_PASSWORD\",\"$dbPassword\"); define (\"DB_NAME\",\"$dbName\"); function Connect(){ \$connect = mysqli_connect(HOST, DB_USER, ...
true
daef86a4bd7792ad4153333fbe4e42ba3f699d73
PHP
erikfer94/fromNoobToMaster
/clase_3/code1_1.php
UTF-8
238
2.515625
3
[]
no_license
<?php class Usuario{ public $username=null; private $mail=null; public function login($username=null,$mail=null,$pwd=null){ /*Aqui va un login*/ } private function hashPassword($pwd) { /*Aqui hasheamos la contrseña*/ } } ?>
true
7641115c1fc42b0403332dc652c470dc83a42429
PHP
wtopull/Nathan
/1026/bootstrap/hahaha/php/createDB.php
UTF-8
715
2.515625
3
[]
no_license
<?php $conn=new mysqli("localhost","asd","asdasd"); $conn->query('set names utf8'); if($conn->connect_error){ echo "连接数据库错误"; } $sql="CREATE DATABASE mydata;"; $sql.="use mydata;"; $sql.="create table userInfo( userId int(11) unsigned auto_increment primary key, username...
true
0212bf187c6da590d011a4bb9501a4f9cbcb3e3c
PHP
zelibobla/go
/application/modules/forum/models/Category.php
UTF-8
905
2.5625
3
[]
no_license
<?php /** * © Anton Zelenski 2012 * zelibobla@gmail.com * */ class Forum_Model_Category extends Core_Model_Entity{ protected $description; /** * return topics of current category * */ public function getTopicsSelect(){ return Go_Factory::getDbTable( 'Forum_Model_Post' )->selectTopicsByCategoryId( $this->...
true
61aa8a0380c01a4292b5b824278594e6e4ba2b17
PHP
tigefa4u/cvt
/includes/classes/class.filelist.php
UTF-8
4,445
2.75
3
[ "MIT" ]
permissive
<?php /* -------------------------------------------------------------------- Chevereto http://chevereto.com/ @version 2.6.0 @author Rodolfo Berríos A. <http://rodolfoberrios.com/> <inbox@rodolfoberrios.com> Copyright (c) Rodolfo Berrios <inbox@rodolfoberrios.com> Licensed under the MIT license h...
true
22c0710b71a24b64a1218e670177e053b50355fe
PHP
agentmedia/phine-forms
/src/Forms/Logic/Tree/SelectListProvider.php
UTF-8
2,140
2.71875
3
[ "Apache-2.0" ]
permissive
<?php namespace Phine\Bundles\Forms\Logic\Tree; use App\Phine\Database\Forms\SelectOption; use App\Phine\Database\Forms\ContentSelect; use Phine\Bundles\Core\Logic\Tree; use App\Phine\Database\Access; use Phine\Bundles\Core\Logic\Tree\TableObjectTreeProvider; /** * The list provider for select options */ class Selec...
true
38da086323db07bb4a9218959e4e15bc936b316c
PHP
guagua2016/laravel_study
/app/Console/Commands/YmTradeStatus.php
UTF-8
2,921
2.546875
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\YingmiTradeStatus; use Log; use DB; class YmTradeStatus extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'tt:ym {--uid=...
true
407b4e32ceebcc5db7f9c35adafa7f51098957be
PHP
adrianoanschau/laravel-repository-pattern
/src/Traits/Filterable.php
UTF-8
1,429
2.53125
3
[]
no_license
<?php namespace Anxis\LaravelRepositoryPattern\Traits; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Arr; use Illuminate\Support\Str; trait Filterable { protected $filters = []; protected $mappable = []; public function filterable(Model $model) { $filters = request()->get('f...
true
7524f41522631ee4e301b602b8a030700176c43d
PHP
EliOrtega96/Proyecto_IW
/registrarTema.php
UTF-8
711
2.53125
3
[]
no_license
<?php require_once('database.php'); if(!empty($_POST)){ //valida que el formulario tenga datos $titulo = $_POST['titulo']; // obtiene dato ingresado en el campo usuario del formulario registrar.php $des = $_POST['descripcion']; // obtiene dato ingresado en el campo correo del formulario reg...
true
e635f1736df8e5f650c9194339084ed03adf424e
PHP
xiaofei723/swoole-src
/tests/swoole_channel/pusu_pop_stats.phpt
UTF-8
642
2.53125
3
[ "Apache-2.0" ]
permissive
--TEST-- swoole_channel: push & pop & stats --SKIPIF-- <?php require __DIR__ . '/../include/skipif.inc'; ?> --INI-- assert.active=1 assert.warning=1 assert.bail=0 assert.quiet_eval=0 --FILE-- <?php require_once __DIR__ . '/../include/bootstrap.php'; use Swoole\Channel; const N = 100; $chan = new Channel(1024 * 25...
true
61778d7725c9ff70ab3ba02b9bc7e35a9d923219
PHP
Zaboday/sender
/sender/Factories/AcmeApiXmlFactory.php
UTF-8
2,392
2.890625
3
[]
no_license
<?php namespace Sender\Factories; use Sender\Converters\XmlConverter; use Sender\HttpRequest\HttpRequestInterface; use Sender\Request\AcmeRequestOptions; use Sender\Request\RequestOptionsInterface; use Sender\Response\AcmeFooResponseValidator; use Sender\Response\AcmeBarResponseValidator; use Sender\Response\Respons...
true
5577f628d267c0f7e97803ead56b6898d31117ee
PHP
vishalkuvar/CMSys
/extras/generateLogin.php
UTF-8
4,649
2.796875
3
[]
no_license
<?php $startUser = 1000; $password = 'test'; $title = 1; $sem = array("Sem I", "Sem II", "Sem III", "Sem IV", "Sem V", "Sem VI", "Sem VII", "Sem VIII"); $branch = array("Automobile", "Biomedical", "Bio-Technology", "Chemical", "Civil", "Computer", "Electrical", "Electronics", "Electronics and Telecom", "Instrumentation...
true
404df11871deca5f71d5df30e4e5e38f23222512
PHP
HarshaRamayan/PHP-Components
/php-database/form.php
UTF-8
1,898
3.234375
3
[]
no_license
<html> <head> <center> <h1>Employee Details</h1> </center> </head> <body> <center> <form method= "post" action= ""> Enter the ID.NO of the employee: <input type="text" name="empname"><br><br> <input type="submit"> </form> <?php // // error...
true
c4e83df1b2844d5fac119c5224346061c646dc5c
PHP
engelcituk/PHP-MVC-POO
/app/libraries/controller.php
UTF-8
735
3.03125
3
[]
no_license
<?php /** * Controlador base * Carga de modelos y vistas */ class Controller { //cargar modelo public function model($model){ // requerir el archivo del modelo require_once '../app/models/'.$model.'.php'; // se instancia el modelo return new $model(); } //...
true
8207bac9e4c2dd52fb7888a06f9e305e1d93a044
PHP
sledgehammer/filters
/classes/FilterChain.php
UTF-8
647
3.25
3
[]
no_license
<?php /** * FilterChain */ namespace Sledgehammer; /** * A filter that filters a variable through multiple filters, but acts as a single filter. * @package Filters */ class FilterChain extends Object { /** * Array containing the filters in order. * @var array */ private $filters; /** * Constructor *...
true
71452c9df5fd5a8cde5ac1dbfc74b90d38d9d84c
PHP
13231955653/a
/docker_example/pingyin/vendor/yurunsoft/chinese-util/src/Chinese/Driver/Pinyin/JSON.php
UTF-8
8,037
2.640625
3
[ "MIT" ]
permissive
<?php namespace Yurun\Util\Chinese\Driver\Pinyin; use Yurun\Util\Chinese; use \Yurun\Util\Chinese\Pinyin; use Yurun\Util\Chinese\JSONIndex; class JSON extends Base { use \Yurun\Util\Chinese\Traits\JSONInit; public function __construct() { $this->loadChars(); $this->loadPinyinSound(); ...
true
d9d2b2fe995e4a25041c1d8502640a2a43bcfe7f
PHP
stephens2424/php
/testdata/fuzzdir/corpus/ext_xmlrpc_tests_bug38431.php
UTF-8
288
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php var_dump(xmlrpc_get_type(new stdclass)); var_dump(xmlrpc_get_type(array())); $var = array(1,2,3); var_dump(xmlrpc_get_type($var)); $var = array("test"=>1,2,3); var_dump(xmlrpc_get_type($var)); $var = array("test"=>1,"test2"=>2); var_dump(xmlrpc_get_type($var)); echo "Done\n"; ?>
true
895c51a0d0ad4501796d7df6939630f4d11c7c00
PHP
rbakker/sba-dev
/development/shared-lib/fancyjob.php
UTF-8
943
3.078125
3
[]
no_license
<?php class fancyjob_type { public $logfile = null; public $tempdir = null; public $workdir = null; function __construct($logfile,$workdir,$tempdir=NULL) { $this->logfile = $logfile; $this->workdir = $work; $this->tempdir = ($tempdir ? $tempdir : sys_get_temp_dir()); if (!is_file($this->logfile...
true
70492fa207b3312dde7925eb5aa2a2fefd78c9bb
PHP
Flamilani/curso_nelson
/admin/Models/Aulas.php
UTF-8
7,210
2.765625
3
[]
no_license
<?php namespace Models; use \Core\Model; class Aulas extends Model { public function getAulasDoModulo($id) { $array = array(); $sql = "SELECT * FROM aulas WHERE id_modulo = '$id' ORDER BY ordem"; $sql = $this->db->query($sql); if($sql->rowCount() > 0) { $array = $sql->fetchAll(); foreach($array as $...
true
7a80929d9ab52dbabc567216d2f8a8049b419379
PHP
jeremyhuang3627/hiremyschool
/send_reset_email.php
UTF-8
1,189
2.609375
3
[]
no_license
<?php include_once "common/base.php"; include_once "inc/inc.class.php"; include_once "common/formvalidator.php"; error_reporting(0); if ($_SERVER["REQUEST_METHOD"]=="POST"){ $validator = new FormValidator(); $validator->addValidation("email","email","The input for Email should be a valid email value")...
true
19e2eced209e15a0b7196714a43dc37d9b671d24
PHP
opheliah95/Database-Project
/includes/functions.php
UTF-8
10,639
2.90625
3
[ "MIT" ]
permissive
<?php function check_people($conn, $id) { $sql = "SELECT * FROM People WHERE People_ID = '$id'"; $result = mysqli_query($conn, $sql); // happen to have one match, i.e. one unique corrosponding person if (mysqli_num_rows($result)== 1){ return True; }else { return False; // no or multiple corrospondence } } /...
true
6307e9252a2cb3b128856140ff264fdba4166932
PHP
spartak-96/AdminPanel
/AddModel.php
UTF-8
1,658
2.8125
3
[]
no_license
<?php include "MainDBconnection.php"; $conn = mysqli_connect($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } if (isset($_POST["modelAdd"]) && (strlen($_POST["model"])) > 0) { $CatName=$_POST["ModelCateg"]; $sqlCat="SELECT id FRO...
true
ab3eaef0fcb856dd7879865ac094fbe5ad7f1e5d
PHP
idi-konkurranser/IDIOpen-backend
/public_html/clarifications.php
UTF-8
10,568
2.53125
3
[]
no_license
<? include_once("../include_html/defs.php"); $possible_actions = array("showclars" => false, "newclar" => true, "addclar" => true, "delclar" => true, "newreply" => true, ...
true
e7fd0096df4ca3c40eecfabd27283ca363ce7bf3
PHP
ChessLeagueManager/com_clm_turnier
/install.php
UTF-8
12,910
2.515625
3
[]
no_license
<?php /** * Chess League Manager Turnier Erweiterungen * * @copyright (C) 2017 Andreas Hrubesch; All rights reserved * @license GNU General Public License; see https://www.gnu.org/licenses/gpl.html * @author Andreas Hrubesch */ // No direct access to this file defined('_JEXEC') or die('Restricted access'); /...
true
5d959e8e724279964a6b2377fbccec71a178fc37
PHP
hollodk/advent-of-code-2019
/19.0.php
UTF-8
677
2.59375
3
[]
no_license
<?php require __DIR__.'/bootstrap.php'; $file = 'input-19.txt'; $input = trim(file_get_contents(__DIR__.'/'.$file)); $g = $grid->build(49, 49, 0); $total = 0; foreach ($g as $y=>$v1) { foreach ($v1 as $x=>$v2) { dump($x.','.$y.' total '.$total); $ic = new IntCode([ 'logLevel' => 1, ...
true
bb93ae839f302e6d8bd001c2a99a8dd3da296aeb
PHP
Timmhaze/WebapplicationFrameworksCA1
/database/seeds/VisitTableSeeder.php
UTF-8
1,360
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Doctor; use App\Patient; use App\Visit; class VisitTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $x = Doctor::all()->where('doctorId', 1)->first(); $y = Patient::all()...
true
ba7fe4d059f88ec095a47f0091cc37b29bfdada0
PHP
shahrulferdian/php-dasar-ke-2-minggu-ke-8
/phpsmk/lat02.php
UTF-8
179
2.8125
3
[]
no_license
<?php $tls = 'saya belajar'; echo $tls; echo '<br>'; $anka = 9087; echo 'tahun '.$anka; echo '<br>'; var_dump($tls); echo '<br>'; var_dump((int)$anka+2); ?>
true
f99b0bfe99b7b73d2636232782f51e80443b86c0
PHP
SushySawen/projetTests
/src/Adherent.php
UTF-8
1,789
3.09375
3
[]
no_license
<?php declare(strict_types=1); namespace Tests\src; class Adherent { private $identifiant; public function __construct(string $nom, string $prenom, string $dateNaissance){ $modification = $this->concatenation($nom, $prenom, $dateNaissance); $modification = $this->suppressionAccent($modifica...
true