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
eb3a9a43008609db648c212e77d41aaf903a5dc4
PHP
getmizanur/uapi2_zf2
/module/Synapse/src/Synapse/Model/Table/CustomerTable.php
UTF-8
3,053
2.546875
3
[]
no_license
<?php namespace Synapse\Model\Table; use Zend\Db\Adapter\Adapter; use Zend\Db\ResultSet\ResultSet; use Zend\InputFilter\Factory; use Zend\Db\Sql\Select; use Zend\Db\Sql\Where; use Synapse\Model\Entity\Customer; class CustomerTable extends AbstractTable { protected $table; protected $tableName; public ...
true
691e290eac149dace6c9edcdbcacc8554b839497
PHP
Svift87/bphp-homeworks
/1.1-intro-and-branching/1.1.1/index.php
UTF-8
1,217
3.671875
4
[]
no_license
<?php $variable = 3.14; // Ваш программный код, в котором переменной $type // присваивается одно из значений: bool, float, // int, string, null или other if (is_bool($variable)) { $text = bool; $description = 'Число с плавующей точкой'; } elseif (is_float($variable)) { $text = float; $description =...
true
7fc9c197598b1b3a398a825e4447d64c30519e47
PHP
VaN-dev/coin-portfolio
/src/DataFixtures/CoinFixtures.php
UTF-8
2,049
2.640625
3
[]
no_license
<?php namespace App\DataFixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use App\Entity\Coin; /** * Class CoinFixtures * @package App\DataFixtures */ class CoinFixtures extends Fixture implements OrderedF...
true
37c568e554d940f608f3f28157053165a8860bc4
PHP
JaeKeoung/GA-PHP-class
/20170524/global_02.php
UTF-8
296
3.328125
3
[]
no_license
<?php //전역변수 $data = 5; function scope_test() { //지역변수를 참조 // global $data; static $data; //이렇게 하면 다시 지역변수. $data += 1; //이 data랑 바깥에 저 data랑 다르다. print $data."<br>"; } print $data."<br>"; scope_test(); print $data."<br>"; ?>
true
1023e67c2a26a4ffb7654ea755c413c4c5d9e26d
PHP
kywei113/cweb280
/wwwroot/cst234cweb280a2/setup.php
UTF-8
6,419
2.921875
3
[]
no_license
<?php /************************************** * File Name: setup.php * User: Kyle Wei - cst234 * Date: 2019-11-01 * Project: CWEB280 * CWEB280 Assignment 2 * Setup DB PHP file * Contains code to: * Create a repository object and a database to operate on. * Create a Cookie, Chocolate Bar, and Noodle e...
true
f01691a26a8d78d02c616fd17ad1888268d196a3
PHP
benoit82/framework-php
/src/Dispatcher.php
UTF-8
1,229
2.734375
3
[]
no_license
<?php namespace SimpleFramework; class Dispatcher { private Container $container; private string $response = ''; public function __construct(private Request $request) { $this->container = App::get(); } public function run() { $routes = $this->container['router']; ...
true
cb1d4458e9ec57128c94d114ae43094b62dc1cb1
PHP
Towshik/Blog-Website
/Blog/addnewadmin.php
UTF-8
1,956
2.6875
3
[]
no_license
<?php session_start(); require_once('configuration.php'); if ($_SESSION['role']!= "Star Admin"){ header("location: index.php"); } ?> <!DOCTYPE html> <html> <head> <title>Home Page</title> <link rel="stylesheet" href="style.css"> </head> <body style="background-color: #07443E"> <div id="main-wrapp...
true
1c128f77654135f23d5fb45b685147bdfe028258
PHP
BGCX262/zym-svn-to-git
/tags/release-0.5.1/library/Zym/Filter/UrlString.php
UTF-8
2,729
3.078125
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Zym Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * * @category Zym * @package Zym_Filter * @copyright Copyright (c) 2008 Zym. (http://www.zym-project.com/) * @license http://www.zym-project.com/l...
true
290d90985771cd5e7fe3c41730605f80074c7601
PHP
ganeshmadhav/Picture-Manager
/Oota/down.php
UTF-8
519
2.578125
3
[]
no_license
<?php header('Content-Type: application/json'); /*$dirname = getcwd()."\uploads"; $images = glob($dirname."\*.png"); echo sizeof($images); echo $dirname; foreach($images as $image) { echo '<img src="'.$image.'" /><br />'; echo $image; } */ $handle = opendir(dirname(realpath(__FILE__)).'/uploads/'); w...
true
f0e7a4a9242c51414f023643f9d637c6b8dc4ed0
PHP
ctec-127/lab-no-6-DRAKEGitHub
/lab6.php
UTF-8
2,226
3
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="css/style.css"> <title>Lab No. 6 - Temp. Converter</title> </head> <body> <?php req...
true
bc72765a68baa39536bc4ccc7b41a1444ff95873
PHP
ircox01/ShoutburstCopy
/apps.enrichtelecom.co.uk/callrecordscraper/sendRecording.php
UTF-8
1,334
2.546875
3
[]
no_license
<?php $script_location = dirname(__FILE__); require_once($script_location . DIRECTORY_SEPARATOR . 'CallManagerRecordScraper.php'); $cli = ''; $plan_name = ''; $waytowav = 'storeaudio'; $dbUser = 'root'; //$dbPassword =''; $dbPassword = 'IanCox2008'; $dbName = 'voicesolution'; $host = 'localhost'; //get all users fro...
true
365abbfe686713a8e2e16cd7767193174309d07f
PHP
vahanNasibyan/test
/src/AppBundle/Controller/ImageController.php
UTF-8
2,027
2.71875
3
[]
no_license
<?php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; /** * Class ImageController * * This controller is responsible for REST API for objects of Image class. */ class ImageController extends Controller { /** * ...
true
63ac2d8d06ba966e49325c3dcf3a040103071b5d
PHP
ruslan-drozdovskyi/mage_mastery
/app/code/MyMagento/Todo/Service/TaskRepository.php
UTF-8
1,817
2.5625
3
[]
no_license
<?php namespace MyMagento\Todo\Service; use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface; use Magento\Framework\Api\SearchCriteriaInterface; use MyMagento\Todo\Api\Data\TaskInterface; use MyMagento\Todo\Api\Data\TaskSearchResultInterfaceFactory; use MyMagento\Todo\Api\Data\TaskSearchResultInterfa...
true
0f9422d2d117d610ccb4bfb8facbe3f0969a7111
PHP
jinchuika/suni-app
/app/bknd/model/GnPersona.php
UTF-8
1,563
2.859375
3
[]
no_license
<?php /** * Controla la gabla gn_persona */ class GnPersona extends Model { /** * La tabla a la que se conecta principalmente * @var string */ var $tabla = 'gn_persona'; /** * Abre los datos de una persona desde la base de datos * @param Array $arrFiltros Los filtros para abrir la persona * @return ...
true
75b3abf30c38d676356ed891f6f1fd16b1e22041
PHP
Semagin/phpstudy
/tests/AbstractTestClass.php
UTF-8
579
2.671875
3
[]
no_license
<?php namespace Gbk\Tests; use PHPUnit_Framework_TestCase; use InvalidArgumentException; abstract class AbstractTestCase extends PHPUnit_Framework_TestCase { protected function mock(string $className) { if (strpos($className, '\\') !== 0) { $className = '\\' . $className; } if (!class_exists($className))...
true
7af9abbd9f425c6a2df45981fb10a2e47d04d96a
PHP
mediaverse-nl/yourgiftcards
/libaries/ShoppingCartSystem/shopping.class.php
UTF-8
1,556
2.6875
3
[]
no_license
<?php namespace yourgiftcards; /** */ class SC extends Singleton { /** * ------------ * BEGIN CONFIG * ------------ * Edit the configuraion */ private $shipping = 149; private $tax = 21; public function __construct(){ echo 'The class "', __CLASS__, '" was initiated!<br />'; } public...
true
6734d4bd92148eb1a998ed40b936ec78399eda2b
PHP
gabycasper007/golfatica
/admin/classess/class-golfatica-custom-help-tab.php
UTF-8
1,764
2.859375
3
[]
no_license
<?php defined( 'ABSPATH' ) or exit; if ( !class_exists('Golfatica_Custom_Help_Tab') ) { /** * Create Custom Help Tabs * @since 1.0 */ class Golfatica_Custom_Help_Tab { public $object_type; public $args; function __construct( $object_type, $object, $args ) { if ( ! isset( $object_type ) || ! isset(...
true
7d4c63ef25a602b2a2fa5a6d2374ae6cd1def9d9
PHP
ishunko/hubzero-cms
/core/plugins/wiki/parserdefault/macros/groupevent.php
UTF-8
5,227
2.796875
3
[ "MIT" ]
permissive
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die(); /** * Wiki macro class for dipslaying group events */ class GroupEventMacro extends WikiMacro { /** * Return...
true
29bb0944a99679a840aa83a6a159ce4cceeb154a
PHP
bheyser/MoodBarometer
/classes/class.ilMoodRecordList.php
UTF-8
2,163
2.734375
3
[]
no_license
<?php /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */ /** * Class ilMoodRecordList * * @author Björn Heyser <info@bjoernheyser.de> * * @package Plugins/MoodBarometer */ class ilMoodRecordList implements Iterator, ilMoodBarometerTableDataProvider { use ilMoodBarometerIt...
true
7d56bd962f75f43ac0fc1122b210c8c6ba68fa70
PHP
leytmc/laraveltpmc
/app/Http/Controllers/ImageController.php
UTF-8
2,747
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Repositories\ImageRepository; use App\Models\ { Category, User, Article }; class ImageController extends Controller { protected$repository; /** * Create a new ImageController instance. *...
true
76f12361e3cde821056360811d455f93e2a143ec
PHP
kniuek/PresentationScore
/src/Persistence/BaseMongoManager.php
UTF-8
1,260
2.71875
3
[ "MIT" ]
permissive
<?php namespace Persistence; /** * This file is part of the "Silex-Skeleton" project. * @author Jakub Kanclerz <kuba.kanclerz@creativestyle.pl> * Feel free to contact me */ class BaseMongoManager implements ManagerInterface { /** * @var */ protected $database; protected $collection; pub...
true
e3a6555005c26bee5f3caa58dd89cf78b18f259a
PHP
vlad25242322/25
/.github/ workflows/lab3/Dadi/Log.php
UTF-8
394
2.671875
3
[]
no_license
<?php namespace Dadi; use core\LogAbstract; use core\LogInterface; Class Log extends LogAbstract implements LogInterface { private function __construct() { } static $i; protected $log = array(); public static function write() { } public static function log($str) { array_push(Log...
true
f56ed289c3c6b2c4528d11b85d2111e2ba6df04d
PHP
CSA-DanielVillamizar/voteomatic
/app/Models/User.php
UTF-8
2,271
2.703125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable { use HasFactory, Notifiable; /** * The a...
true
c29c809fec61b37e0cf64b6c5ba4122f5c50acf5
PHP
Dipa1998/DAy-2-
/string trimmed.php
UTF-8
105
2.75
3
[]
no_license
<?php $string ='This is an example string.'; $string_trimmed=rtrim($string); echo $string_trimmed; ?>
true
d2dbb271ffa5ed5cff62ff42cd6a8cf1b6fc311e
PHP
stephens2424/php
/testdata/fuzzdir/corpus/ext_mysqli_tests_mysqli_pconn_disabled.php
UTF-8
1,681
2.796875
3
[ "BSD-3-Clause" ]
permissive
<?php require_once("connect.inc"); $host = 'p:' . $host; if (!$link1 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { // automatic downgrade to normal connections has failed printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n"...
true
f8242fbb11e27fe0e3a1f6cec59bff8e542ade9e
PHP
domavoy/blog2file
/task/taskobject.php
UTF-8
161
2.59375
3
[]
no_license
<?php abstract class taskObject{ var $id; abstract static function createTask(); abstract static function getList(); abstract function getData(); } ?>
true
1885beda71bcf65ec2333749919d23857066f2ae
PHP
oangy/bases-de-datos-1
/interfaz_web/BuscarTodosFacturaXProducto.php
UTF-8
840
2.53125
3
[ "MIT" ]
permissive
<html> <head> <title></title> </head> <?php require("conexion.php"); $query = "SELECT * FROM factura_producto"; $result=mysqli_query($conexion,$query) or die(mysqli_error($conexion)); $r= mysqli_query($conexion,$query); if(!$r or (($r->fetch_row())==0)){ echo "No hay ninguna FacturaXProducto"; ...
true
02cf2ed864bc34a7431d857f22760d7953638326
PHP
lizhealy/Database-Project-Restaurant-Delivery-System
/login.php
UTF-8
1,516
2.75
3
[]
no_license
<?php session_start(); ?> <html> <link rel="stylesheet" href="mainstyle.css" type="text/css"> <head> <title>Login</title> </head> <body style="width: 100%; height: 100%;"> <div style="top: 30%; left: 40%; position: absolute;"> <h1>Login</h1> <?php if(isset($_SESSION['username'])) { echo "You are already logged ...
true
90d52471e7d040983e989830e8e6c64018f1a2d7
PHP
GforGNU/itbeep
/app/Http/Controllers/DataController.php
UTF-8
1,788
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use App\Service; use App\Interest; class DataController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $services =...
true
ce96f386b431672dfb918df92fb796214e52db3d
PHP
ilarimukka/WeddingCamera
/weddingCamera.php
UTF-8
10,777
2.6875
3
[ "MIT" ]
permissive
<?php require __DIR__ . '/trunk/Base/src/ezc_bootstrap.php'; class weddingCamera { const CAMERAIP = "192.168.11.254"; const TIMEOUT = 180; private $listUrl; private $downloadUrl; private $fs = array(); private $db; private $folders; function __construct() { $this->listUrl = ...
true
64c48741e0dde8bb1162b63c02f9141591ed72c5
PHP
webtoucher/omnipay-rbkmoney
/src/CartItem.php
UTF-8
2,768
3.125
3
[]
no_license
<?php namespace Omnipay\RbkMoney; class CartItem { /** * @var string */ public $product; /** * @var float */ private $price; /** * @var int */ private $quantity = 1; /** * @var array|null */ private $taxMode; /** * @var Cart */ ...
true
22709e2c1d179f4286bd3d832150ac302e289648
PHP
achimfritz/AchimFritz.ChampionShip
/Classes/AchimFritz/ChampionShip/Competition/Domain/Policy/GroupTable/FifaPointEqualityPolicy.php
UTF-8
1,382
2.5625
3
[]
no_license
<?php namespace AchimFritz\ChampionShip\Competition\Domain\Policy\GroupTable; /* * * This script belongs to the TYPO3 Flow package "AchimFritz.ChampionShip".* * * * ...
true
d5996b4cb62fb50c06ce07dac520965ee52f8a03
PHP
contentful/contentful-core.php
/scripts/TestCase.php
UTF-8
4,662
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * This file is part of the contentful/contentful-core package. * * @copyright 2015-2022 Contentful GmbH * @license MIT */ declare(strict_types=1); namespace Contentful\Tests; use Contentful\Core\Api\Link; use function GuzzleHttp\json_decode as guzzle_json_decode; use function GuzzleHttp\json_encod...
true
75140f35b45d3f316947eea830d8b6a79ac75a5d
PHP
b3vet/CS306PROJECT-NICE-JEWELRY
/signup.php
UTF-8
835
2.578125
3
[]
no_license
<?php include "config.php"; if(isset($_POST['email']) && isset($_POST['phone']) && isset($_POST['name']) && isset($_POST['surname']) && isset($_POST['passw'])) { $email = $_POST['email']; $phone = $_POST['phone']; $name = $_POST['name']; $surname = $_POST['surname']; $pas...
true
153369ddb0cc9c8430bb825f45064f981447c1b3
PHP
hlaporthein/zb-user-like-post
/inc/query.php
UTF-8
5,781
2.984375
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) { die( 'Direct access forbidden.' ); } /** * Abstract class which has helper functions to get data from the database */ abstract class ZB_ULP_DB_HELPER { /** * The current table name * * @var boolean */ private $tableName = false; /** * Constructor for the database ...
true
8b050e1ff07077c99d4537f45a9d69c97818b18b
PHP
paco-shum/PUBLIC_DEMO_IntroductionToComputerSecurityCW
/process_change.php
UTF-8
3,086
2.796875
3
[]
no_license
<?php session_start(); if(!empty($_POST["csrf_token"])) { if (!(hash_equals($_SESSION['csrf_token'], $_POST['csrf_token']))) { // Reset token unset($_SESSION["csrf_token"]); die("CSRF token validation failed"); } } if(!(isset($_POST['captcha_challenge']) && $_POST['captcha_challenge'] == $_SESSION['cap...
true
5457ea862c3f4902e13ed769110e2ed966de26e1
PHP
dhvarela/marketplace
/src/Marketplace/Domain/Money/Money.php
UTF-8
901
3.34375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Marketplace\Domain\Money; use App\Marketplace\Domain\Currency\Currency; class Money { /** @var int $amount */ private $amount; /** @var Currency $currency */ private $currency; public function __construct($amount, Currency $currency) { $th...
true
6fdf357af503d666a341fe20794018dd585ecf7f
PHP
nhayhoc/todolist
/app/Http/Controllers/TodoController.php
UTF-8
2,027
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Todo; use Validator; class TodoController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ private $todo; public function __contruct(Todo $todo){ $t...
true
4e7474ded63dd1f46952117acbfbfa320eee0f33
PHP
b2pweb/bdf-instantiator
/src/ArgumentResolver/ValueResolver/ServiceValue.php
UTF-8
1,214
2.828125
3
[ "MIT" ]
permissive
<?php namespace Bdf\Instantiator\ArgumentResolver\ValueResolver; use Bdf\Instantiator\ArgumentResolver\ValueResolverInterface; use Bdf\Instantiator\InstantiatorInterface; /** * Make a service from container. * Only if the parameter is a class / interface */ class ServiceValue implements ValueResolverInterface { ...
true
9e89410e977d183924cbfac0f8aaee5f78729f9b
PHP
elaich/Teachiumfrontend
/src/Controller/UserController.php
UTF-8
2,081
2.515625
3
[]
no_license
<?php namespace App\Controller; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use A...
true
677c1d59ce2512ea4c817148a87f89a9aa897522
PHP
ace68723/chanmao_manage
/app/Calculation.php
UTF-8
3,443
3.15625
3
[]
no_license
<?php namespace App; use DB; class Calculation{ public static function getThisWeek(){ // Current day of the week $cur = DB::select('SELECT WEEKDAY((SELECT CURDATE())) as cur')[0]->cur; // SQL find this monday $fir = DB::select('SELECT DATE_SUB( (SELECT CURDATE()), INTERVAL ?+1 DAY) as fir', array...
true
1eb852227479a189af2b373e3a1afd3c40a5d523
PHP
bahetihawa/inventory
/libs/MySQLDatabase.php
UTF-8
18,168
3.25
3
[]
no_license
<?php /* * MySQL Database Class * */ class MySQLDatabase { /** * The target DB hostname * @var string */ var $hostname = ''; /** * The name of the database to connect to * @var string */ var $database = ''; /** * The database login name * @var string */ var $username = ''; /** * The database...
true
b3eb57e8e671d746c60b108cb448e1152e134928
PHP
erlonfs/gerenciador-de-cursos
/classes/Helper.php
UTF-8
2,717
2.9375
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Helper * * @author Erlon */ class Helper { private static $areas_admin = array('usuarios', 'participantes', 'cursos' ); private static $areas_func = array('participantes', 'curso...
true
005b4f6cda9b6195564f9c5d670f2822fd00b6a4
PHP
ksidenko/smto
/protected/modules/smto/models/OperatorImport.php
UTF-8
3,059
2.796875
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: kirill * Date: 1/12/13 * Time: 8:08 PM * To change this template use File | Settings | File Templates. */ class OperatorImport { private $filePath = ''; private $_db = null; public $separator = ';'; private $lineColumnCounts = 2; private $e...
true
397479c88d02aae37e3a8fb8e3e6e76a60abdf71
PHP
cornezuelo/requester
/src/Requester.php
UTF-8
7,654
3
3
[ "MIT" ]
permissive
<?php /** * Class to send curl requests * @author Oscar Aviles <emeeseka01@gmail.com> */ class Requester { /** * Performs a get curl petition * @param string $uri The uri for doing the request * @param array $params An array of parameters for sending to the request * @param array $options An ...
true
4ff688bbaacedaa3e4d54d2f6bfdf9a6e8b240d1
PHP
darant/Tietokantasovellus
/loginTest/userActions.php
UTF-8
1,575
2.84375
3
[]
no_license
<?php include("/Applications/MAMP/htdocs/loginTest/session.php"); include("/Applications/MAMP/htdocs/loginTest/output.php"); /** * Action */ class Action { //Constructor function Action(){ global $session; global $output; //User is trying to log in if(isset($_POST['loginForm'])){ ...
true
02eefc6d81ff27374dbb104f4dcc2ab9947499f9
PHP
kalle-ekelund/WGTOTW
/src/WGTOTW/Answer.php
UTF-8
1,571
2.65625
3
[ "MIT" ]
permissive
<?php namespace Anax\WGTOTW; /** * Model for Comments. * */ class Answer extends \Anax\MVC\CDatabaseModel { public function findQuestion($questionId = null, $sort = "rating DESC, created") { $all = $this->query() ->orderBy($sort) ->where('question_id = "'. $questionId . '"') ...
true
164b309093cc6ddff3998200967aab0a0c999a19
PHP
gundambison/nasgor
/applications/models/Benefit_model.php
UTF-8
2,809
2.546875
3
[ "MIT" ]
permissive
<?php /**** Model : Benefit_model Created : 01-01-2016 00:46:01 By : Gunawan Wibisono Using : CI3 Model Generator ****/ defined('BASEPATH') OR exit('No direct script access allowed'); class Benefit_model extends CI_Model { public $table='klinik_benefit'; /* If not valid, Create New UPDATE DATA USING ID:be...
true
e64e0f080461a4696d24ca47b5770cc6daaf9630
PHP
airtow/projcrudphp
/content/cad_aluno.php
UTF-8
2,777
2.5625
3
[]
no_license
<?php if(isset($_POST['cadastro'])){ if (!isset($_SESSION)) { session_start(); } foreach ($_POST as $key => $value) { $_SESSION[$key] = $mysqli->real_escape_string($value); } $sql_code = "INSERT INTO aluno ( nome, data_nascimento, logradouro, numero, bairro, cidade, estado, cep, id_...
true
f4daeee3618ba81bdcc590752df8b6dd3e79579d
PHP
aliomom/ishtar-backend
/ishtar-tests/behat-test/bootstrap/CreatePainting.php
UTF-8
2,751
2.984375
3
[ "MIT" ]
permissive
<?php trait CreatePainting { /** * @var array $painting */ private $painting; /** * @Given /^I Have A Valid Painting Data$/ */ public function iHaveAValidPaintingData() { $factory = new RequestFactory(); $this->painting = $factory->prepareCreatePaintingRequestP...
true
67fa6d8b66437dafb1405b363f45b945031e9a29
PHP
kernio/xsd2php
/src/Php/Structure/PHPProperty.php
UTF-8
1,189
2.90625
3
[ "MIT" ]
permissive
<?php namespace GoetasWebservices\Xsd\XsdToPhp\Php\Structure; class PHPProperty extends PHPArg { /** * @var string */ protected $visibility = 'protected'; /** @var bool */ protected $required = false; /** @var string[] */ protected $enum = []; /** * @return string */...
true
94543d72e003615c2c12c67e7eb34315ffde58bd
PHP
sbesselsen/twigit
/src/Template/ConditionalBlock.php
UTF-8
510
2.71875
3
[]
no_license
<?php namespace TwigIt\Template; final class ConditionalBlock extends Node { /** * @var Block[] */ public $cases = []; /** * @var Block|null */ public $elseCase; /** * @var null|string */ public $scopeName; /** * @param Block[] $cases * @param Bloc...
true
33a46ec6b1b068bf951a7600a6f1daab56567517
PHP
ChaboCode/zapatinga-sylas
/getZapatos.php
UTF-8
864
2.796875
3
[]
no_license
<?php include('constants.php'); header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET'); header('Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, X-Requested-With'); header('Content-Type: application/json'); // Step 1: Generate SQL parameters $season = $_GET['sea...
true
a2a202c0fe9f3156abc2b161e9cd26d31f62d65a
PHP
vuduchiep234/web
/app/Proxies/ActivateBill/Eloquent/EloquentActivateBillProxy.php
UTF-8
1,648
2.640625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: admin * Date: 11/2/2018 * Time: 12:25 PM */ namespace App\Proxies\ActivateBill\Eloquent; use App\Decorators\ActivateBill\ActivateBillTransaction; use App\Proxies\ActivateBill\ActivateBillProxy; use App\Services\BillService; use App\Services\ShipperService; class Eloquen...
true
180f1ec2070df20acb3c8e1f1ef7cc0061bce55f
PHP
riveraframework/rf-core
/src/Database/QueryEngine/Clauses/OrderByTrait.php
UTF-8
734
2.6875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Rivera Framework Core package. * * (c) Pierre-Julien Mazenot <pj.mazenot@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Rf\Core\Database\QueryEngine\Clauses; /** * Class...
true
24c591131366fc3083fde1c54aba9e0eb2c57c29
PHP
zhambylSamat/altyn-bilim.kz
/test_tst/copy_db-2.php
UTF-8
1,897
2.734375
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $name = "altyn_bilim"; $link = mysqli_connect($servername,$username,$password,$name); mysqli_select_db($link,"test"); //get all the tables $query = 'SHOW TABLES FROM '.$name; $result = mysqli_query($link,$query) or die('cannot show tables'); if(mysq...
true
a790c1be927814729b4440f8ee70ca7120151628
PHP
studenttxj/calendar
/calendar.php
UTF-8
6,355
2.984375
3
[]
no_license
<?php $link = mysql_connect('localhost', 'root', '173965') or die('Could not connect: ' . mysql_error()); mysql_select_db('calendary') or die('Could not select database!'); ?> <html> <head> <title>PHP Calendar</title> <script> function goPreviousMonth(month, year) { if(month ==...
true
03394c374f4d89346aa39189d4b36574e05583c5
PHP
matthewbdaly/linklater
/app/GraphQL/Mutation/CreateLinkMutation.php
UTF-8
1,336
2.65625
3
[ "MIT" ]
permissive
<?php namespace LinkLater\GraphQL\Mutation; use Folklore\GraphQL\Support\Mutation; use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\Type; use GraphQL; use LinkLater\Contracts\Repositories\Link; use LinkLater\Contracts\Services\Fetcher; use Illuminate\Contracts\Auth\Guard; class CreateLinkMutation...
true
f44d85b1886bc52d22c85e285f0e97d03fb54bed
PHP
amugaba/GPRAPlatform
/model/config.php
UTF-8
3,891
2.609375
3
[]
no_license
<?php /** * Include this file at the beginning of all pages. * * It sets environment variables, starts session, and contains utility functions such as * importing header and footer. */ if(strpos($_SERVER['HTTP_HOST'], "localhost") !== false) { define("DEBUG",true); define("HTTP_ROOT", "http://".$_SERVER['...
true
1b650f6ce47784b4900c7ab595666b14c0a7cc07
PHP
kleijweg/rick-and-morty-case
/src/Model/ModelInterface.php
UTF-8
217
2.703125
3
[]
no_license
<?php namespace App\Model; use App\API\ResultInterface; interface ModelInterface extends ResultInterface { public function set(string $name, $value): ResultInterface; public function get(string $name); }
true
2c7bc6446b79eba8e1efbce1281bf5ee9fd4075e
PHP
winguzone/php-cassandra
/src/Request/AuthResponse.php
UTF-8
1,271
2.921875
3
[ "MIT" ]
permissive
<?php namespace CassandraPHP\Request; use CassandraPHP\Protocol\Frame; class AuthResponse extends Request{ protected $opcode = Frame::OPCODE_AUTH_RESPONSE; /** * * @var string */ protected $_username; /** * * @var string */ protected $_password; /** * CREDENTIALS * * Provides credentia...
true
f3c24c865c25101f50dd54ea82470655a2b13d4e
PHP
wjloves/laravel
/database/seeds/UsersSeeder.php
UTF-8
494
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class UsersSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('users')->delete(); for ($i=0; $i < 100; $i++) { \App\Models\Users::create([ 'name' ...
true
47309f5eaa94e5dc4f4ac578cffbb6d3bba93322
PHP
TranVanDinh1998/laravel-manga
/app/Http/Controllers/Manager/MangaController.php
UTF-8
6,044
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Manager; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Http\Helpers\RemoveImage; use App\Http\Helpers\UploadImage; // use app\Http\Helpers\UploadImage; use App\Http\Requests\GeneralAdminRequest; use App\Http\Requests\VerifyRequest; use App\Models\Catego...
true
003adad227f750b22a9a901e2e69cf6d8c9076f3
PHP
sureshptrichy/tn
/_BACKUP/library/validation.php
UTF-8
139
2.515625
3
[]
no_license
<? function isValidEmailAddress($emailAddress) { if(filter_var($emailAddress, FILTER_VALIDATE_EMAIL)) return true; else return false; }
true
fd966f8512b78c62d8cf39bc7ec3c10d36e3f9de
PHP
dinobit/php
/funcao/ex03.php
UTF-8
222
2.828125
3
[]
no_license
<?php function ola($texto = "mundo", $periodo="Bom dia"){ return "Olá $texto! $periodo!<br>"; } echo ola(); echo ola ("", "Boa noite"); echo ola("mundo", "Boa Tarde"); echo ola("Thiago"); echo ola("Everbary", ""); ?>
true
b5b2591b37fc48b291d8456e9e4e69fe75244dee
PHP
wangchunxi/bangbang
/app/lib/Flow/FlowBase.php
UTF-8
2,364
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/7/19/019 * Time: 21:00 */ namespace app\lib\Flow; class FlowBase { /*流水金额*/ protected $money; /*操作人id*/ protected $createId; /*操作时间*/ protected $createTime; /*对应的工单*/ protected $orderId = 0; /*流水号*/ prote...
true
4ca3e19af0c486a66c85c353bbb6ab406ac19912
PHP
liulianjun1995/chat
/app/Http/Controllers/Traits/ApiResponse.php
UTF-8
1,074
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Traits; trait ApiResponse { /** * 创建响应信息 * @param bool $code * @param array $respond_data * @param string $message * @return array */ protected function respond($code = false, $respond_data = [], $message = '') : array { return ['co...
true
20e7ecbec2d76a79a75fed54d440cc1541a0bf01
PHP
manuelpeli/codemaster
/symfony_demo/src/AppBundle/Entity/Student.php
UTF-8
3,954
2.59375
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * Student * * @ORM\Table() * @ORM\Entity(repositoryClass="AppBundle\Entity\StudentRepository") */ class Student { /** * @var integer * * @ORM\Column(name="id", type="integer...
true
cd0e609f755699c5e18617fd8707811d1b4be4bc
PHP
litaafia/Tugas-Workshop-Web-Framework
/belajarCI/codeigniter/application/controllers/ngoding.php
UTF-8
491
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); // class yang menerapkan pembuatan library class Ngoding extends CI_Controller { function index(){ // code ini berfungsi untuk me load library yang bernama lita $this->load->library('lita'); // code ini untuk memanggil method yang ada pa...
true
3d2c4ab39be071bcad2eb361ac255bc14a9fd395
PHP
cdntsk4mr18/sg2
/functions/mail.php
UTF-8
5,769
2.65625
3
[]
no_license
<?php /** * This example shows settings to use when sending via Google's Gmail servers. * This uses traditional id & password authentication - look at the gmail_xoauth.phps * example to see how to use XOAUTH2. * The IMAP section shows how to save this message to the 'Sent Mail' folder using IMAP commands. */ //Im...
true
7b6a90fb4cd9e1275722c4d7382647a036976d5a
PHP
kamaroly/rahasi
/app/Repositories/Models/Eloquents/Customer.php
UTF-8
1,122
2.65625
3
[]
no_license
<?php namespace Rahasi\Repositories\Models\Eloquents; use Illuminate\Database\Eloquent\Model; class Customer extends BaseModel { public $incrementing = false; protected $fillable = array('description', 'email', 'user_id'); /** * Customer Cards */ public function cards() { return $this->hasMany('\Rahasi\Re...
true
59efabfe802cef6440cbc1ae49e73bb5fb781aed
PHP
andrew-phan/StoneandStrand
/app/code/Ss/Designer/Block/Adminhtml/Designer/Helper/Renderer/Tags.php
UTF-8
1,745
2.546875
3
[]
no_license
<?php namespace Ss\Designer\Block\Adminhtml\Designer\Helper\Renderer; class Tags extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer { /** * Store manager. * */ protected $_storeManager; /** * banner factory. * */ protected $_designerFactory; ...
true
be8e427f1f5dacf3b82be862a52f4b45c127f8aa
PHP
GemsTracker/gemstracker-library
/classes/Gems/Snippets/Tracker/TrackUsageTextDetailsSnippet.php
UTF-8
4,120
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * * @package Gems * @subpackage Snippets_Tracker * @author Matijs de Jong <mjong@magnafacta.nl> * @copyright Copyright (c) 2011 Erasmus MC * @license New BSD License * @version $Id$ */ namespace Gems\Snippets\Tracker; /** * Describes the use of a track in a text paragra...
true
c9a720d187d00670bb66ffbd66da6a364c197ff0
PHP
AlpYilmaz/Website-with-various-implementations
/pricing.php
UTF-8
3,557
2.59375
3
[]
no_license
<?php include 'generate-nav.php'; if (isset($_SESSION["customerflag"]) && $_SESSION["customerflag"] == true) { echo "Only admins may change pricing."; header('location: index.php'); } if(isset($_SESSION["adminflag"]) && $_SESSION["adminflag"] == false) { echo "Only logged in admins may change prices."; header('loc...
true
07a34e24fef0fce741c0971e45be445121d3f73e
PHP
slim/heer
/test/IDTest.php
UTF-8
702
2.671875
3
[]
no_license
<?php require_once('simpletest/unit_tester.php'); require_once('simpletest/reporter.php'); class IDTest extends UnitTestCase { function setUp() { require_once '../lib/id.php'; ID::set_seed('test'); $this->id = new ID(); $this->customId = new ID(); $this->customId->value = 555 .':'. md5('555t...
true
efb96d4fa16c00707118c1e230957d65afced8e6
PHP
evolutionarycoder/findmea-tt
/Backend/Database/Tables/Locations.php
UTF-8
5,844
2.90625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: prince * Date: 4/10/16 * Time: 9:28 PM */ namespace Backend\Database\Tables; use Backend\Database\Database; use Backend\Database\Schemas\Location; class Locations extends Database { const TABLE_NAME = "locations"; ...
true
49ae4ff8917ca3feb73634945601a4c78ce06982
PHP
anouchk/OC_projet_4
/src/Entity/Client.php
UTF-8
1,313
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\ClientRepository") */ class Client { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255...
true
ef6dad984e08d3543c31c64c822eed7b3f2dcafa
PHP
pete314/cap-api
/module/Common/src/Common/Listeners/AuthListener.php
UTF-8
5,048
2.53125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php /** * =============================================================== * Copyright (C) 2016 - Peter Nagy. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * ===========...
true
e16f1b76b16627a47279420b68ff758b7a816c50
PHP
akdenizugur/Admin-Panelli-Blog-Sitesi
/admin/includes/edit_slider.php
UTF-8
2,434
2.5625
3
[]
no_license
<?php // get slider content by id if (isset($_GET['edit_slider']) && $_GET['edit_slider'] != "") { $edit_id = $_GET['edit_slider']; $query = mysqli_query($connection, "SELECT * FROM slider WHERE slider_id=$edit_id"); if (mysqli_num_rows($query) > 0) { $data = mysqli_fetch_array($query); $tit...
true
0038adf31d9c32d568122979e376ddd5ee1b6fb6
PHP
dev-khoailang/Foods-Drinks
/application/controllers/api/v1/Clients.php
UTF-8
1,586
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Clients API * * @filename Clients.php * @access public * @author dev.khoailang <dev.khoailang@gmail.com> * @copyright 2015 dev.khoailang * @version 1.0 */ defined('BASEPATH') or exit('You are not alone'); /** * Clients...
true
15d5bf8b82a7a0fbb4aded4417a229372e3a883b
PHP
jpizzle77/PHP
/Functions/draw_stars.php
UTF-8
1,306
4.40625
4
[]
no_license
<?php //Assignment: Draw Stars //Create a function called draw_stars() that takes an array of numbers and echo out an asterisk, or '*'. /*function draw_stars($array) { for ($i=0; $i < count($array); $i++) { //$stars = ''; for ($j=0; $j < $array[$i]; $j++) { echo '*'; ...
true
74c14e4deec1a0c392abd822bab1513013545b6f
PHP
qinglinrao/churui-backend
/app/database/seeds/CustomerGroupTableSeeder.php
UTF-8
332
2.625
3
[ "MIT" ]
permissive
<?php // Composer: "fzaninotto/faker": "v1.3.0" use Faker\Factory as Faker; class CustomerGroupTableSeeder extends Seeder { public function run() { $faker = Faker::create('zh_CN'); foreach(range(1, 10) as $index) { CustomerGroup::create([ 'name' => $faker->name, 'note' => $faker->sentence(6) ]...
true
c88348d3b4abfd32f016a0e2508f02523305503a
PHP
hryk62/Attendance_System
/In_Out.php
UTF-8
3,016
2.734375
3
[]
no_license
<?php session_start(); // if(!isset($_SESSION['user_id'])){ // $_SESSION['user_name']=$_POST['user_name']; // $_SESSION['user_id']=$_POST['user_id']; // } if(isset($_GET['user_id'])){ $_SESSION['user_id']=$_GET['user_id']; $_SESSION['user_name']=$_GET['user_name']; } if(!isset($_SESSION['in'])){ $_SESSI...
true
daa870d1c1b11ddb3971aa188a29dc16288b415f
PHP
mishra1947/phpTest
/phptest/CaesarCipher.php
UTF-8
1,204
3.328125
3
[]
no_license
<?php $handle = fopen("php://stdin", "r"); fscanf($handle, "%d", $n); fscanf($handle, "%s", $s); fscanf($handle, "%d", $k); for ($i = 0; $i < $n; $i++) { $ascii = ord($s[$i]); //echo $ascii . "\n"; if (($ascii >= 32 && $ascii <= 64)|| ($ascii >= 91 && $ascii <= 96) || ($ascii >= 123 && $ascii <= 126)) { ...
true
d6c31cebe51ee7c69708960508177ea919facc63
PHP
mediaessenz/calendarize
/Classes/Updates/DateFieldUpdate.php
UTF-8
3,677
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace HDNET\Calendarize\Updates; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Types\DateType; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Install\Attribute\UpgradeWizard; #[UpgradeWizard('...
true
1f76e12f8c70842c89d69b585f66d65386f7a79c
PHP
samszo/generateur
/services/export.php
UTF-8
2,127
2.625
3
[]
no_license
<?php try { set_time_limit(1000); require_once( "../application/configs/config.php" ); $application->bootstrap(); //$_GET['idDico'] = 118; header("Content-Disposition: attachment; filename=\"exportGenerateur.csv\"; "); header("Content-Type: text/csv"); if(isset($_GET['idCpt']))$idCpt=$_GET['idC...
true
d414b146ba1f6c44b0c56e3a9596a9b28bd29167
PHP
emilia98/SoftUni-PHPWeb
/PHP Basics/OOP Basics - Exercises/13.NumberInReversedOrder_2/DecimalNumber.php
UTF-8
228
3.484375
3
[]
no_license
<?php class DecimalNumber { private $number; public function setNumber(string $number) { $this->number = $number; } public function getReversed() { return strrev($this->number); } }
true
106ceae49e92a5156d0e9aa81b3a12370d072177
PHP
donatasbartkus/soapNTLM
/src/soapNTLM/Client.php
UTF-8
3,373
2.8125
3
[]
no_license
<?php namespace soapNTLM; use \Psr\Log\LoggerInterface; class Client extends \SoapClient { private $options = array(); private $logger = null; /** * Client constructor. * @param mixed $url * @param array $data * @param LoggerInterface|null $logger */ public function __const...
true
8a6428435269bca8345fe3ed52f5336defa0e7a8
PHP
helloworld-cpp/built_api
/app/Models/Campaign.php
UTF-8
1,224
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Str; class Campaign extends Model{ use HasFactory,Notifiable; protected $fillable = [ 'company_id', 'toke...
true
2f451f3fbd3dd46cb4618e5a56072073fcaf3751
PHP
mikejw/empathy
/src/Empathy/MVC/EntityManager.php
UTF-8
1,514
2.6875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Empathy\MVC; use Nelmio\Alice\PersisterInterface; /** * Empathy EntityManager * @package Empathy * @file Empathy/MVC/EntityManager.php * @description Simple "ORM style" model objects for Empathy. * @author Mike Whiting * @license See LICENCE * * Do thin...
true
dfaed109bce568d420dbdfe633e54353562300d0
PHP
jason3manley/Mini-Example-PHP-Created-Social-Network
/functions.php
UTF-8
1,566
2.640625
3
[]
no_license
<?php // functions.php $dbhost = 'localhost'; // This will most likely not need any required changing $dbname = 'anexistingdb'; // Modifying these.... $dbuser = 'jasonswebsite'; // ...Variables according $dbpass = 'apassword'; // .......To your installation $app...
true
6c0fd21c2f2165d2cacdc82fa50bc0920d1011ae
PHP
crudadmin/eshop
/src/Contracts/Cart/Drivers/DriverInterface.php
UTF-8
957
3
3
[]
no_license
<?php namespace AdminEshop\Contracts\Cart\Drivers; interface DriverInterface { /** * On create session driver. We need define default params * * @return void */ public function __construct($token, array $initialData = []); /** * Set data into cart session * If key is presen...
true
81d75d1cfe8179603f6b4265f41be6f383f3138f
PHP
smartthingsro/emagmarketplace
/Model/Logger/RequestLoggerHandler.php
UTF-8
966
2.5625
3
[]
no_license
<?php namespace Zitec\EmagMarketplace\Model\Logger; use Magento\Framework\Filesystem\DriverInterface; use Magento\Framework\Logger\Handler\Base; use Monolog\Logger; /** * Class RequestLoggerHandler * @package Zitec\EmagMarketplace\Model\Logger */ class RequestLoggerHandler extends Base { const LOG_FILENAME_FO...
true
ff8b6ca70dab7381a319f5edd3b52373bf23aadc
PHP
domshep/exp-platform
/app/Plugin/HealthyWeightModule/View/BodyMassIndex/minigraph.ctp
UTF-8
3,353
2.515625
3
[]
no_license
<?php App::import('Vendor', 'jpgraph/jpgraph'); App::import('Vendor', 'jpgraph/jpgraph_line'); App::import('Vendor', 'jpgraph/jpgraph_date'); // Some data $ydata = $graphData; $xdata = $dates; // Create the graph. These two calls are always required $graph = new Graph(434,475); $graph->SetScale('datlin',min($ydata)-1...
true
1598a9b2421eff1b0a880cd76d44c6b0f0b9f411
PHP
Johardmeier/purpurbackend
/database/seeds/PerformanceTableSeeder.php
UTF-8
2,691
2.640625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: Johannes * Date: 08.12.2018 * Time: 14:54 */ use App\PerformanceType; use App\Performance; use App\Play; class PerformanceTableSeeder extends BaseSeeder { private const firstDate = '01.10.2018'; private const lastDate = '01.05.2019'; private const maxPerf...
true
be8d2f63810661a62ee4a69b3ad7c938755b0146
PHP
Warror08/Integrador_CIDP_
/application/controllers/Usuario.php
UTF-8
824
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /**Fazer commit */ defined('BASEPATH') OR exit('No direct script access allowed'); class Usuario extends CI_Controller { public function login() { $this->load->view('login'); } public function autenticar(){ $usuario = $this->input->post("usuario"); $senha = $this->input->p...
true
41ab76da01ec3016e6184610c3cf2df7b42f5bae
PHP
benhbenny/pack-pot
/src/Pack/Domain/Models/Group.php
UTF-8
1,803
2.921875
3
[]
no_license
<?php namespace App\Pack\Domain\Models; use App\Pack\Domain\BaseEntity; class Group extends BaseEntity { /** * @var integer */ protected $id; /** * @var string */ protected $code; /** * @var string */ protected $name; /** * @var string */ pr...
true
56efff7b840e7f2cdc3206fc5528efae1fcb8499
PHP
stanislav-web/express-mailer
/src/Deliveries/Aware/Console/Command/BaseCommandAware.php
UTF-8
4,678
2.703125
3
[ "MIT" ]
permissive
<?php namespace Deliveries\Aware\Console\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\Question; use Symfony\Component\Console\Input\InputDefinition; use Deliveries...
true
87ba1eefc359aa4bf7c49368c309885950a3b8ab
PHP
sujitrulz/php-certification-studies
/strings/gettype.php
UTF-8
113
3.1875
3
[]
no_license
<?php $var = 'lala'; if ( gettype ( $var ) == 'lala') { echo "$var is a string"; } echo gettype($var);
true
97db114fd7b68b38bd51d28a2e034aff3b97870f
PHP
davron112/laravel-1c
/src/Services/OrderService.php
UTF-8
2,127
2.765625
3
[]
no_license
<?php namespace Davron112\Integrations\Services; use Davron112\Integrations\Services\Interfaces\CreateInterface; use Davron112\Integrations\Services\Interfaces\UpdateInterface; use Davron112\Integrations\Services\Interfaces\DeleteInterface; /** * Class OrderService * @package namespace Davron112\Integrations\Servi...
true