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
a80c778de4d09de43a71dfdb5eb07a24846564fe
PHP
wilson212/Frostbite-Framework
/system/core/Loader.php
UTF-8
9,441
3.078125
3
[]
no_license
<?php /* | -------------------------------------------------------------- | | Frostbite Framework | | -------------------------------------------------------------- | | Author: Steven Wilson | Copyright: Copyright (c) 2011, Steven Wilson | License: GNU GPL v3 | | ----------------------------------------...
true
87036e00916fccf99cdfb42b53bfcf857b455fd3
PHP
kobayashidaisuke/easyboards
/src/lib/escape.php
UTF-8
181
2.625
3
[]
no_license
<?php //マジックナンバーの定数化 const MAXIMUM_LENGTH_50 = 50; const MAXIMUM_LENGTH_200 = 200; function h($s) { return htmlspecialchars($s, ENT_QUOTES, "utf-8"); }
true
06cb8c53e6dd841793d76583b2d4ec4b96eb878b
PHP
lauratopacio/Sociedad-Ganadera
/conexion/conexion.php
UTF-8
1,330
3.1875
3
[]
no_license
<?php $conexion=mysqli_connect('localhost','root','','cosecha'); abstract class DBAbstractModel { private static $SERVER = 'localhost'; private static $USER = 'root'; private static $PASS = ''; protected $DATABASE = 'cosecha'; protected $query; protected $rows = array(); private $conn; //Métodos Abstractos a...
true
73886da5d341ffd2c6df61d6dde8da6f768d7bfb
PHP
Dil-G/cl-gen2020
/src/add_user.php
UTF-8
5,674
2.59375
3
[]
no_license
<?php require_once '../config/conn.php'; include '../utils/helpers.php'; if (isset($_GET['user_type'])) { $userType = $_GET['user_type']; $sql = "SELECT * from user WHERE userType = '$userType' "; $result = mysqli_query($conn, $sql); $maxID = 0; while ($row = mysqli_fetch_array...
true
85fcba34c15df45e9a31cd4e75d8e966b6ccbb34
PHP
geobase/countries
/generator/src/DataGenerator/Country/WikipediaCountryList/WikipediaCountryList.php
UTF-8
690
2.546875
3
[ "MIT" ]
permissive
<?php namespace Smart\Geo\Generator\DataGenerator\Country\WikipediaCountryList; use GuzzleHttp\Client; use Smart\Geo\Generator\Container; use Smart\Geo\Generator\HtmlParser; use DOMElement; use Symfony\Component\Console\Output\OutputInterface; class WikipediaCountryList { /** * @param Container $container ...
true
9770106daa240fd17aa168cb7aad59bc7f1f9070
PHP
rudashi/orwell-laravel
/tests/Feature/WordRepositoryTest.php
UTF-8
1,420
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace Rudashi\Orwell\Tests\WordRepositoryTest; use InvalidArgumentException; use Tests\TestCase; use function Rudashi\Orwell\Tests\repository; uses(TestCase::class); it('pass input phrase validation', function (string $phrase) { expect(repository()->prepareInputSearch($phras...
true
e61dd4a037a07e9d3b5fe1c57aeecd5998afc367
PHP
AviationCode/elasticsearch
/src/Query/Aggregations/Metric/WeightedAvg.php
UTF-8
716
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace AviationCode\Elasticsearch\Query\Aggregations\Metric; use AviationCode\Elasticsearch\Model\Aggregations\Metric\WeightedAvg as WeightedAvgModel; class WeightedAvg extends Metric { /** * @var array */ private $value; /** * @var array */ private $weight; public ...
true
b3a213130d3fbb8079401a62ab22c815ed4a2f4a
PHP
qodrorid/kelas-web
/pertemuan_4/Kucing.php
UTF-8
2,231
3.234375
3
[]
no_license
<?php class Kucing extends IbuKucing { use TraitShare; const MAX_UMUR = 17; private $warna; private $ras; private $harga; public static $makanan = "Mie Ayam"; public function __construct($harga = 10000, $ras = "Persia", $warna = "Merah") { $this->harga = $harga; $thi...
true
c9f3d1942967fad9115fb95076b41587a8da4f73
PHP
kwn/adventofcode
/6/1.php
UTF-8
439
2.75
3
[]
no_license
<?php $lines = explode(PHP_EOL, file_get_contents(__DIR__ . '/input.txt')); $answers = array_reduce($lines, static function(array $acc, string $line) { if ($line !== '') { $questions = array_pop($acc); return [...$acc, trim($questions . $line)]; } return [...$acc, '']; }, ['']); $map = ...
true
abab1f429958554d1f1dd3b708920e38c089806a
PHP
Mikaeldus/ExoCDA
/developperDesComposantsdInterface/developperLaPartieBack_end/php/record/controllers/add_script.php
UTF-8
5,119
2.96875
3
[]
no_license
<?php // requete permettant l'affichage des artistes dans le select try { $requete = $db->prepare('SELECT * FROM artist ORDER BY artist_name'); $requete->execute(); $artistList = $requete->fetchAll(PDO::FETCH_OBJ); } catch (PDOException $e) { echo 'Error: ' . $e->getMessage(); } //J'include la connect...
true
e423d8526d8256f2b8eda1615490dd4aecf0a364
PHP
Dhii/iterator-base
/test/unit/IterationTest.php
UTF-8
1,145
2.6875
3
[ "MIT" ]
permissive
<?php namespace Dhii\Iterator\Test; use Dhii\Iterator\Iteration; use PHPUnit_Framework_TestCase; /** * Tests {@see \Dhii\Iterator\Iteration}. * * @since [*next-version*] */ class IterationTest extends PHPUnit_Framework_TestCase { /** * Tests whether a valid instance of the test subject can be created. ...
true
516b614a7c4720dd967f98d340656c3485c84c53
PHP
SotirisZegk/Emedicine-E-shop-
/order.php
UTF-8
2,810
2.75
3
[]
no_license
<?php function randomOrderId() { $alphabet = '1234567890'; $order = array(); $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 6; $i++) { $n = rand(0, $alphaLength); $order[] = $alphabet[$n]; } return implode($order); } //turn the array into a string $orde...
true
4aaef83119b97ab2abbc09370e62bc59ae6f8e09
PHP
menthainternet/mtDoctrineExtraPlugin
/lib/action/BaseMtSortableActions.class.php
UTF-8
2,028
2.71875
3
[ "MIT" ]
permissive
<?php /** * BaseMtSortableActions * * @package mtDoctrineExtraPlugin * * @author Gábor Egyed <egyed.gabor@mentha.hu> */ abstract class BaseMtSortableActions extends sfActions { /** * Gets all record from the table. * * @param sfWebRequest $request */ public function executeSort(sfWebRequest $requ...
true
12d7fb532eed819645d054fd3ec85a406c8731d0
PHP
paulojamero/mdmsystem
/application_details.php
UTF-8
2,797
2.78125
3
[]
no_license
<?php // if(!isset($_SESSION)){ session_start(); } //if naka set ang userLogin / if may naka login if(isset($_SESSION['RefLogin'])){ echo "Welcome"." ".$_SESSION['RefLogin']."<br>"; echo "Account:"." ".$_SESSION['ApplicantType']; } else { echo header("Locati...
true
c41f88ae2791488f3d8210a853166b0530fa101e
PHP
ChungTM1209/BC2_SS6_ThucHanh1
/Chicken.php
UTF-8
438
3.328125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: chungtran * Date: 28/01/2019 * Time: 08:57 */ include_once 'Animal.php'; include_once 'Edible.php'; class Chicken extends Animal implements Edible { public function makeSound() { return "Chicken: cluck - cluck!"; // TODO: Implement makeSound() method. ...
true
b8484e5b6fe68ca860f149481fe73f5c537e1791
PHP
j-d/draggy
/src/Draggy/Utils/Indenter/IndentationRule.php
UTF-8
778
3.28125
3
[ "MIT" ]
permissive
<?php namespace Draggy\Utils\Indenter; /** * Class IndentationRule * * Small class that contains the rule (a callable function) and the pass number in which it should be executed * * @package Draggy\Utils\Indenter */ class IndentationRule { /** * @var integer */ protected $pass; /** ...
true
32e47e74ae9148133fcef911263c20baf76e7534
PHP
vestia/vestia
/database/seeds/FeatureTableSeeder.php
UTF-8
840
2.65625
3
[ "MIT" ]
permissive
<?php use Faker\Factory as Faker; use Illuminate\Database\Seeder; use Vestia\Feature; class FeatureTableSeeder extends DatabaseSeeder{ public function run() { /** * Seed our table * * @return void */ $faker = Faker::create(); Feature::truncate(); ...
true
2b2bc73dfeb89ed36a616b6592c1384f1236b991
PHP
robertomiguel/empresax2
/app/filters.php
UTF-8
1,698
2.578125
3
[]
no_license
<?php /* |-------------------------------------------------------------------------- | Application & Route Filters |-------------------------------------------------------------------------- | | Below you will find the "before" and "after" events for the application | which may be used to do any work before or after a...
true
ddfd7262cf532a82db717da86548529d4eced1fe
PHP
picasso250/chnstyle
/function/串.php
UTF-8
6,004
3.609375
4
[ "MIT" ]
permissive
<?php namespace 串; /** * (PHP 4, PHP 5) * 获取字符串长度 * @param string $字符串 * @return int 返回目标字符串长度 */ function 度($字符串){ return strlen($字符串); } /** * (PHP 4, PHP 5) * 使用一个字符串分隔符分割另一个字符串,得到一个数组. * @param string $分隔符 ...
true
1beb636a506ecaeb9acd93c5d0e5e4eeb3ceac5e
PHP
k0nstant1n1/schtuka
/recursion.php
UTF-8
1,130
3.28125
3
[]
no_license
<?php function colorPick($i, $j){ if(($i + $j) % 2 === 0){ echo 'background-color: blue'; // Тут можно поменять цвет. } else {echo 'background-color: yellow';} } function pickWidth($j){ echo "width: " . (sin(deg2rad($j*10))*100+130)/6 . "px"; } function pickHeight($i){ echo "height: " . ...
true
588a9f178f299c2ec3afa551e9ae178ff0659123
PHP
thohuynh/laravel-api-example
/app/Traits/ResponseTrait.php
UTF-8
2,707
2.859375
3
[]
no_license
<?php namespace App\Traits; use Illuminate\Http\JsonResponse; use Illuminate\Http\Response; /** * Trait ResponseTrait. * * @package App\Contracts */ trait ResponseTrait { /** * Response success structure. * * @param $data * @param string $message * @param int $code * @return Jso...
true
987323df22ff7abfc440d9d34f81371f81414ac5
PHP
jdrich/wingnut
/src/Console/Console.php
UTF-8
1,045
2.6875
3
[ "MIT" ]
permissive
<?php namespace Wingnut\Console; class Console extends \ConsoleKit\Console { protected $helpCommandClass = false; public function execute($command = null, array $args = array(), array $options = array()) { if(isset($options['format'])) { $format = $options['format']; if(!in_a...
true
95cd7e0ed5cf2b74a57e1d0615a0a154092782c3
PHP
haidarafif0809/tokodasar12312ad99945s
/download_lap_penjualan.php
UTF-8
4,075
2.59375
3
[]
no_license
<?php // Fungsi header dengan mengirimkan raw data excel header("Content-type: application/vnd-ms-excel"); // Mendefinisikan nama file ekspor "hasil-export.xls" header("Content-Disposition: attachment; filename=laporan_penjualan.xls"); include 'db.php'; include 'sanitasi.php'; //menampilkan seluruh data yang ada p...
true
b50a3c1154d69c75da0bd9f17e9b0b3e538e627c
PHP
pedromlcosta/LBAW
/proto/database/attendance.php
UTF-8
3,287
2.703125
3
[]
no_license
<?php function createAttendance($student,$class,$attend){ global $conn; $stmt = $conn->prepare("INSERT INTO Attendance(studentcode,classid,attended) VALUES (?, ?, ?)"); $stmt->execute(array($student,$class,$attend)); } function updateAttendance($student,$class,$attended){ global $conn; $stmt = $conn->pre...
true
631d8341115a10cace8ee6d9f2426c8c78ec6ea2
PHP
arifsetyo21/toko-buku
/app/Http/Controllers/BookController.php
UTF-8
7,113
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Str; use Illuminate\Support\Facades\Gate; class BookController extends Controller { public function __construct(){ $this->middleware(function($request, $next){ if(Gate::allows('manage-books')) return $next($re...
true
ebf809636b4cb1c462117c46dce4502a914cb148
PHP
faille76/netcms
/src/Partner/Application/Command/CreatePartnerCommand.php
UTF-8
1,163
2.875
3
[ "0BSD", "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace App\Partner\Application\Command; use Symfony\Component\HttpFoundation\File\UploadedFile; final class CreatePartnerCommand { private string $name; private string $url; private UploadedFile $image; private bool $enabled; private int $userId; private int...
true
50560a33831f051073c7011a2f5e4636061deee1
PHP
stefanogelmini/charts
/dataSondaLocazioneOverSoglia.php
UTF-8
3,485
2.578125
3
[]
no_license
<?php #Include the connect.php file include('connect.php'); include('functions.php'); $idlocazione = $_GET[IDLocazione]; // Ricavo IDSonda dalla IDLocazione $sql = "SELECT IDSonda,IDTipoSonda FROM Sonda WHERE IDLocazione=" . $idlocazione . " ;"; //echo $sql; $result = mysql_query($sql) or die("SQL Error 1: " ...
true
e1e4a8becda7a6d754fd5fcd3d847443ea4b565b
PHP
isdampe/malamute-wordpress
/lib/parse.php
UTF-8
1,056
2.6875
3
[]
no_license
<?php namespace malamute; defined('ABSPATH') or exit; include dirname(__FILE__) . '/../vendor/parsedown/Parsedown.php'; /** * Removes the default wordpress the_content filters * This is essential to allow proper markdown parsing * @param {string} $content - The post content * @return {void} */ function remove_...
true
97b07dedb20c36bf5c34cc153d8f767bd6b48427
PHP
BhatAmruta/ccxt
/samriddhee_db/classes/binanceApiKeysDAO.php
UTF-8
666
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: neerajudai * Date: 27/4/18 * Time: 3:11 AM */ require_once (dirname(__FILE__)."/baseDAO.php"); class binanceApiKeysDAO extends DAO { public static function getBinanceApiKeys() { $pdo = $GLOBALS['pdo']; $query = $pdo->prepare("SELECT * fr...
true
39579ddef3efeeaf7bd0c25ecad75b09d5d673e6
PHP
jacob182/GameHub
/GameHub/controller/registration_process.php
UTF-8
1,838
2.921875
3
[]
no_license
<?php //start session management session_start(); //connect to the database require('../model/database.php'); //retrieve the functions require('../model/function_members.php'); ?> <?php //retrieve the registration details into the form $username = $_POST['username']; $confirmpassword = $_POST['confirm-passwo...
true
2b7d21356b27834f667679f643ca485c0c91f7d3
PHP
KIHOSI/Homework2
/10-21.php
UTF-8
1,375
3.109375
3
[]
no_license
<?php //使用佔位符避免SQL INJECTION,確保資料每一個項目會直接插入資料庫中,無法被編譯SQL指令 require_once 'login.php'; $db_server = mysql_connect($db_hostname,$db_username,$db_password); if(!$db_server) die("Unable to connect to MySQL: " . mysql_error()); mysql_select_db($db_database) or die("Unable to select database: " . mysql_error()); //準備一個statem...
true
a203af0a3389f2a13eef729ebb6228cf0363bd21
PHP
suin/cakephp-subcommand-injector
/src/Subcommand.php
UTF-8
858
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Suin\CakeSubcommandInjector; /** * Subcommand representation. */ final class Subcommand { /** * @var string */ private $name; /** * @var TaskClass */ private $taskClass; /** * @param string $name * @param TaskClass $tas...
true
d152bde14d9aadf6d1cd43268b666134d2a71014
PHP
kuzma1234/example
/forms/CardByTemplate.php
UTF-8
803
2.59375
3
[]
no_license
<?php /** * Discount card form. * Used for adding discount cards to clients. */ class Card_Form_CardByTemplate extends Card_Form_ByTemplate { public function init() { parent::init(); $this->addElement('text', 'user_id', [ 'required' => true, 'validators' => [ ...
true
40f7dbc0ab00c328de652155c5cbfca13cc93e9f
PHP
yutsuku/php-code-samples
/_includes/mailwizz/apps/console/commands/PanoplyCommand.php
UTF-8
1,501
2.78125
3
[]
no_license
<?php defined('MW_PATH') || exit('No direct script access allowed'); abstract class PanoplyCommand extends CConsoleCommand { public $username; public $password; public $charset = 'utf8'; public $dsn; public $customer_id; public function actionIndex() { $logger = new PanoplyLogg...
true
7beeb8d514660685197ddbe88ae329b1a7b8af95
PHP
alexisvannier/xulub
/library/internal/Xulub/Migrate/Command/Abstract.php
ISO-8859-1
2,236
2.90625
3
[]
no_license
<?php abstract class Xulub_Migrate_Command_Abstract { const SCM_TYPE_GIT = 'git'; const SCM_TYPE_SVN = 'svn'; const SCM_TYPE_UNKNOWN = 'inconnu'; private $_isTest = true; private $_scmPath; private $_scmType; /** * Retourne le type de SCM utilis * return string...
true
72cf7379079bfd72a0a1f22d6e05fa70266af64a
PHP
zidanc/20200320
/index.php
UTF-8
900
3.59375
4
[]
no_license
<?php //(單行註解) 宣告一個變數 $a=1; echo $a; echo "<br>"; $a=2.1; echo $a; echo "<br>"; print($a); echo "<br>"; <<<<<<< HEAD $AA; $BB; $CC; ======= $studentInSchool="Yes"; >>>>>>> baa69fa529b6f582f269aa483d27d3ba764b0a83 /* (多行註解) 宣告一個常數,常數不可被變更。 */ define("PI",3.14159); echo PI; echo "<br>"; echo PI*2; echo "<br>"; ec...
true
f0a9814daa05a7323fd4f8986ca938d26ca8a051
PHP
Nosto/nosto-magento2-cmp
/Exception/GraphqlModelException.php
UTF-8
359
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Nosto\Cmp\Exception; use Magento\Store\Model\Store; class GraphqlModelException extends CmpException { const DEFAULT_MESSAGE = "Could not get graphql model from session"; /** * @param Store $store */ public function __construct(Store $store) { parent::__construct($s...
true
f4eaa0bf063f14b12cbe744b23660f93f8d40c0c
PHP
rafuch0/surface-oned
/oned.php
UTF-8
2,052
2.703125
3
[]
no_license
<?php if (isset($_GET['3141592654'])) die(highlight_file(__FILE__, 1)); function getPageJS($canvas, $width, $height) { $output = ''; $output .= '<script src="surface.js"></script>'; $output .= '<script>'; $output .= "var canvas = '$canvas';"; $output .= "var width = '$width';"; $output .= "var height = '$hei...
true
bb48767a2cc5f6d0b6f3ed7a605f577ef1528e98
PHP
RepComm/component-php
/component.php
UTF-8
3,188
3.28125
3
[]
no_license
<?php function getStdObjPropCount ($stdObj) { $i=0; foreach ($stdObj as $key =>$value) { $i++; } return $i; } function writeComponent ($comp, $recursive = true) { //write the first part of the tag echo $comp->buildTagBegin(); //Build immediate content of the element echo $comp->buildTagContent();...
true
8affa8765d7d5f4a4ef797332827d6ec54b01ce5
PHP
dmeikle/gossamerFormBuilder
/src/Gossamer/CMS/Forms/Controls/AbstractMultiChoiceControl.php
UTF-8
5,044
2.703125
3
[]
no_license
<?php namespace Gossamer\CMS\Forms\Controls; use Gossamer\CMS\Forms\Exceptions\ParameterNotFoundException; /** * Description of AbstractControl * * @author Dave Meikle */ abstract class AbstractMultiChoiceControl extends AbstractControl{ protected $textBox; protected function buildParams($fiel...
true
afa0160f4e39641580ebd4e369cfd8316dbeb696
PHP
Eduardo0725/CentralBras
/laravel/database/migrations/2020_11_13_175900_create_products_table.php
UTF-8
1,622
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
true
387f9ac2ea00a568106a45e4560407b5595601ca
PHP
vumanskyi/post-by-time
/app.php
UTF-8
808
2.625
3
[]
no_license
<?php //Need root path to project define("ROOT_PATH", __DIR__); //use path to log $defaultLogPath = getenv('LOG_PATH') ?: ROOT_PATH . "/storage/logs/"; define("LOG_FILE", $defaultLogPath . getenv("LOG_FILE_NAME")); date_default_timezone_set('UTC'); try { $app = new \Notification\App(); $app->execute(); } ca...
true
277ebcd2cb550a434c8d4b66caa487384e727b66
PHP
karimw786/single-player-tic-tac-toe
/register.php
UTF-8
2,327
2.640625
3
[]
no_license
<?php session_start(); // If user has registered, take them to the game board if (isset($_POST["player_name"]) and isset($_POST["player_move"]) and isset($_POST["grid_size"])) { $_SESSION["player_name"] = $_POST["player_name"]; $_SESSION["player_move"] = $_POST["player_move"]; $_SESSION["grid_size"]...
true
bc355823f7bf406e4ba8d40cfb511e608779b02e
PHP
HubertWnukiewicz/Symfony_blog_app
/src/Entity/PackageType.php
UTF-8
2,513
2.578125
3
[]
no_license
<?php namespace App\Entity; use App\Repository\PackageTypeRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=PackageTypeRepository::class) */ class PackageType { /** * @ORM\Id * @O...
true
1cca3137161b58121fc6cf0a64b6cedcee55cd4b
PHP
osxm/demoworkspace
/extjs/ext7-demo-library/ext/examples/kitchensink/data/direct/router.php
UTF-8
2,460
2.671875
3
[ "Apache-2.0" ]
permissive
<?php require('config.php'); class BogusAction { public $action; public $method; public $data; public $tid; } $isForm = false; $isUpload = false; if(isset($HTTP_RAW_POST_DATA)){ header('Content-Type: text/javascript'); $data = json_decode($HTTP_RAW_POST_DATA); }else if(isset($_POST['extAction'])) { // form pos...
true
6871f88212321a58d61b69acc38c37c9ca779936
PHP
ramblerswebs/ramblers-library
/jsonwalks/items.php
UTF-8
451
2.734375
3
[]
no_license
<?php // no direct access defined('_JEXEC') or die('Restricted access'); /** * Description of items * * @author Chris Vaughan */ class RJsonwalksItems { public $items; //put your code here function __construct($values) { foreach ($values->items as $value) { $item= new RJsonwalksI...
true
1b7bd9f6719c7030042073c718d9a4893bd83261
PHP
modmore/SimpleAB
/core/components/simpleab/processors/mgr/tests/stats/normalized.class.php
UTF-8
3,272
2.53125
3
[ "MIT" ]
permissive
<?php /** * Gets a list of sabConversion objects. */ class getNormalizedStatsGetListProcessor extends modProcessor { protected array $picks = []; protected array $conversions = []; protected array $dates = []; protected array $labels = []; public function initialize() { $init = parent...
true
82b5a5f01a6288497a42aca4f1bf60ffb1f3ccbd
PHP
merchantos/MerchantOS-Highrise-Sync
/test/testSyncAccountDAO.php
UTF-8
3,029
2.71875
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', '1'); require_once('SyncAccountDAO.class.php'); require_once('SyncDateTime.class.php'); define('BR', '<br />'); $dao = new SyncAccountDAO(); testGetExceptions(); function testLogException() { global $dao; $now = new SyncDateTime(); $when = $now-...
true
e14bd6d7969428a3945ccb71816f916991abbe20
PHP
Gueststream-Inc/iqware
/src/API/RoomType.php
UTF-8
1,660
2.796875
3
[ "MIT" ]
permissive
<?php namespace Gueststream\PMS\IQWare\API; class RoomType { /** * @var int $ID_RoomType */ protected $ID_RoomType = null; /** * @var string $RoomTypeName */ protected $RoomTypeName = null; /** * @var ArrayOfDetail $ApplicableDatesAndValues */ protected $Applic...
true
80758146c1a56723ecd15a61c103a5b508adf1e9
PHP
gugunso/laravel-notification-template
/src/Entity/NotificationSetting.php
UTF-8
4,737
2.59375
3
[]
no_license
<?php namespace Gugunso\LaravelNotificationTemplate\Entity; use Gugunso\LaravelNotificationTemplate\Common\ConfigurationChecker; use Gugunso\LaravelNotificationTemplate\Entity\Contracts\NotificationTemplate; use Gugunso\LaravelNotificationTemplate\Exceptions\TemplateNotFoundException; use Gugunso\LaravelNotificatio...
true
f6924dc097b82554d46132fa94a6589e9cf2400f
PHP
phpOpenbiz/phpopenbiz2
/openbiz/bin/ui/BizForm.php
UTF-8
39,682
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?PHP /** * BizForm class - BizForm is the base class that contains UI controls. * BizForm is a html form that is included in a BizView which is a html page. * * @package BizView * @author rocky swen * @copyright Copyright (c) 2005 * @access public */ include_once(OPENBIZ_BIN."/ui/BizForm_Abstract.php"); cla...
true
85441b4b9f64ccf57b4bcb3d447cd066372f155d
PHP
Grundmanis/laracms
/src/functions.php
UTF-8
1,011
2.6875
3
[]
no_license
<?php /** * Get the translated value in LaraCMS multi language fields */ if (!function_exists('formValue')) { function formValue($variable, $name, $locale = null) { if ($locale) { return isset($variable) ? $variable->translate($locale)[$name] : old($locale . '.' . $name); } ...
true
f95d97941df33a5830f37ef99531d81c76cd1394
PHP
infotech-ru/reference
/src/models/dromru/UserModificationMap.php
UTF-8
863
2.546875
3
[]
no_license
<?php namespace infotech\reference\models\dromru; use infotech\reference\models\ActiveRecord; /** * This is the model class for table "dromru_user_modification_map". * * @property int $user_complectation_id * @property int $ref_modification_id * */ class UserModificationMap extends ActiveRecord { /** ...
true
0a13726d28d62bdccb25c3fcd278660bbb1142fa
PHP
MateHelpers/LemonBundle
/Element/Menu.php
UTF-8
1,286
2.53125
3
[]
no_license
<?php /** * This file is part of the MateLemonBundle package. * * (c) Mohamed Radhi Guennichi <https://www.mate.tn> <https://github.com/MateHelpers/LemonBundle> * * Email: rg@mate.tn - contact@mate.tn * * For the full copyright and license information, please view the LICENSE * file that was distributed with th...
true
ba8b90c94649aa04c3cfb31f9f5a9708f32ccde9
PHP
brockGledhill/hometeachme
/app/Http/helpers.php
UTF-8
461
3.8125
4
[ "MIT" ]
permissive
<?php /** * Convert any variable to a boolean value. A true boolean value consists of one of the following: * 1, true, "yes", "on", "1", "y", "true", "t" * * @param mixed $var The variable to check * * @return boolean */ function toBool($var) { if (true === $var || 1 === $var) { return true; } switch (strto...
true
3a426d4940c00d206c8a6a5cfe1ba679d879cec9
PHP
Zhylon/zhylon-cli
/app/Commands/PhpRestartCommand.php
UTF-8
1,743
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Commands; use App\Support\PhpVersion; class PhpRestartCommand extends Command { use Concerns\InteractsWithPhp; /** * The signature of the command. * * @var string */ protected $signature = 'php:restart {version? : The PHP version}'; /** * The description...
true
cfee15614e971d3e6c645098ace308c36b7ccb0e
PHP
delight-im/PHP-PrivacyPolicy
/src/Markup/TextMarkup.php
UTF-8
1,038
3.0625
3
[ "MIT" ]
permissive
<?php /* * PHP-PrivacyPolicy (https://github.com/delight-im/PHP-PrivacyPolicy) * Copyright (c) delight.im (https://www.delight.im/) * Licensed under the MIT License (https://opensource.org/licenses/MIT) */ namespace Delight\PrivacyPolicy\Markup; /** Generic markup for text */ final class TextMarkup extends Marku...
true
1ab61cb6d0943baa153b970e925e505edc10eb80
PHP
webemyos/webemyoside
/Trunk/Apps/EeIde/Modele/Site/JHom/JPage.php
ISO-8859-1
583
3.015625
3
[]
no_license
<?php /* * Classe de base pour les pages execut par le runner */ class JPage implements IJpage { //constructeur function JPage() { } //Initialisation : charge les controls avec leurs bonnes valeurs function Init() { } //Insertion des control dans la page function Create() { } ...
true
e69f9ad9a6c3fa65ca1d79e92a6c3c6353e60d47
PHP
FelipeSousa12/MarketingPlatform
/Anuncio/Upload.php
UTF-8
1,797
2.640625
3
[]
no_license
<?php header('Content-type:application/json;charset=utf-8'); require '../Anuncio/Anuncio.php'; include '../BancoDeDados/PDO.php'; //CONSTANTES define('TAMANHO_MAXIMO', (2 * 1024 * 1024)); if(isset($_FILES['file'])){ $ModeloAnuncio = $_POST['ModeloAnuncio']; $nomeAnuncio = $_POST['Nome']; $caminho = $_POST['Ca...
true
33cf8ce06126c5417973a968c771002af933f766
PHP
leoqbc/FastQ
/src/Collections/Jobs.php
UTF-8
242
2.671875
3
[]
no_license
<?php namespace FastQ\Collections; use SplQueue; use FastQ\Job; class Jobs extends SplQueue { public function __construct(array $jobs) { foreach ($jobs as $job) { $this->enqueue(new Job($job)); } } }
true
1781cfeae26aa5071a31e6740e85d3148c02b167
PHP
Ramsescce/Lista3Exerc-ciosPhp
/Algoritmo/exe01.php
UTF-8
386
3.390625
3
[]
no_license
<?php $primeiroNum = $_POST["primeiroNum"]; $primeiroNum =(int)$primeiroNum; $segundoNum = $_POST["segundoNum"]; $segundoNum = (int) $segundoNum; $primeiroNum +=$segundoNum; if ($primeiroNum > 20) { $primeiroNum += 8; echo 'O número é maior que 20 , resultado '.$primeiroNum; } else { $primeiroNum -= 5; ...
true
dcbf906f33940c48e28b2478d337df58a8f91a03
PHP
Al-un/archived_website
/Tuto/html/list.php
UTF-8
1,504
3.140625
3
[]
no_license
<?php include("../tools/header.php"); ?> <h1> HTML </h1> <h2> Les Listes </h2> <!---------- Liste &agrave; puce -------------> <h4> Liste &agrave; puce </h4> <pre class = "code"> &lt;ul&gt; &lt;li&gt; &eacute;lement 1 &lt;/li&gt; &lt;li&gt; &eacute;l&eacute;ment 2 &lt;/li&gt; &lt;li&gt; ... &lt;/...
true
66b6c7c53f567ea3fb2049fb8475629fa716f986
PHP
Ualikhan/promzona
/cms/mods/registration/registration_class.php
UTF-8
1,298
2.625
3
[]
no_license
<?class Registration extends api{ function __construct(){ parent::__construct(); } # DB ЗАПРОСЫ function getUsers(){ } /* function showForm($posts){ $out = '<h1>Регистрация пользователя</h1>'; $out .= '<form action="" method="post">'; $out .= 'Email: <input type="text" value=...
true
047a212df093744196aa7ebf9afc90128fbdf45a
PHP
jjbier/demo-monolog
/src/AppBundle/Listeners/ListenerWriteInGoogleChrome.php
UTF-8
2,342
2.796875
3
[]
no_license
<?php /* * This file (ListenerWriteInGoogleChrome.php) is part of the monolog-sf project. * * 2014 (c) jjbier@gmail.com. * Created by Xabier Fernández Rodríguez <jjbier@gmail.com> * Date: 25/11/2015 - 22:20 * * For the full copyright and license information, please view the LICENSE * file that was distributed w...
true
0c20e760b6dae37db673b630740c4db25d99d4b5
PHP
fredsted/primi
/src/Handlers/Kinds/Program.php
UTF-8
849
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Smuuf\Primi\Handlers\Kinds; use \Smuuf\Primi\Context; use \Smuuf\Primi\Helpers\Func; use \Smuuf\Primi\Helpers\Interned; use \Smuuf\Primi\Handlers\SimpleHandler; use \Smuuf\Primi\Handlers\HandlerFactory; class Program extends SimpleHandler { protected static function handle...
true
82ba8b4cc69ca0c4553f233a9bf9d1381ebaf021
PHP
skie/cakephp-factory-muffin
/src/Model/Factory/AbstractFactory.php
UTF-8
2,161
2.546875
3
[ "MIT" ]
permissive
<?php /** * CakephpFactoryMuffin plugin for CakePHP Rapid Development Framework * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @author Evgeny Tomenko * @since CakephpFactoryMuffin 1.0 * @license http://www.opensource.org/licenses/mi...
true
1ba6004fe585db54117022da06c2ffad2151dd95
PHP
Stolz/php-stubs
/res/php/ncurses/functions/ncurses-termname.php
UTF-8
226
2.578125
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Returns terminals (short)-name * * @phpstub * * @return string Returns the shortname of the terminal, truncated to 14 characters. * On errors, returns null. */ function ncurses_termname() { }
true
df93a104a0b2dd065e7f7496a530f55b0ca6d5f6
PHP
gmr/framewerk
/Base/Toolkit/tMutex.inc
UTF-8
2,671
3.375
3
[ "MIT" ]
permissive
<?php /** * A mutually exclusive lock helper class * Creates a mutex lock via memcache when instantiated, or throws an exception if it can't create the lock. * Lock will be released on destruction, but can be released manually as well * @since 2008-06-12 */ class tMutex extends fObject { protected $id; /** ...
true
8bd469aaa31556ae5e1bdb817c16722aa5dfbab3
PHP
salesigniter/SalesIgniter2
/includes/modules/orderTotalModules/loworderfee/module.php
UTF-8
976
2.59375
3
[]
no_license
<?php class OrderTotalLoworderfee extends OrderTotalModuleBase { public function __construct() { /* * Default title and description for modules that are not yet installed */ $this->setTitle('Low Order Fee'); $this->setDescription('Low Order Fee'); $this->init('loworderfee'); if ($this->isInstalled()...
true
cb98a85bdf8dbd3d8c459ea46941e09f7b50969a
PHP
divyanshukr96/slietalumni-backend
/database/migrations/2019_04_14_202244_create_professionals_table.php
UTF-8
1,048
2.671875
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProfessionalsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('professionals', function (Blueprint $table) { ...
true
63bf6532afe71b4939fdc415de952ff4b238ae7b
PHP
elmiraakmala/Perpustakaan
/buku/penerbitcontroller.php
UTF-8
976
2.5625
3
[]
no_license
<?php include_once 'koneksi.php'; include_once 'penerbitmodel.php'; //untuk tangkapan request form $nama= $_POST['nama']; $alamat= $_POST['alamat']; $kota= $_POST['kota']; $hp= $_POST['hp']; $data = [$nama, $alamat,$kota,$hp]; //mengumpulkan semua array menjadi satu /* Panggil fungsi simpan di pegawaimodel.php*...
true
44ef7be920a996e9190b69471d8cafd32c3e610b
PHP
Ashishshill/E-Commerce_With_OOP_PHP_-_Sqli
/class/Order.php
UTF-8
5,639
2.625
3
[]
no_license
<?php $filepath = realpath(dirname(__FILE__)); include_once ($filepath."/../lib/Database.php"); include_once ($filepath."/../helpers/Format.php"); ?> <?php class Order{ private $db; private $fm; public function __construct() { $this->db = new Database(); $this->fm = new Form...
true
4d1bd5a3b5c012356dfb250820a91c28f33c058b
PHP
MartaJasikNitrosell/phpFund
/index.php
UTF-8
362
2.828125
3
[]
no_license
<?php define('BASE_DIR', __DIR__); spl_autoload_register( function ($class) { $fn = str_replace('\\', '/', $class) . '.php'; require(BASE_DIR . '/' . $fn); } ); use \Lab\Mammal; $cat = new Mammal("Meowie", 3.6, 4, 4, true, true); $dog = new Mammal("Barkie", 8.2, 9, 4, true, true); $cat->callForMeal(); $d...
true
46f439e46402495b0c93a4b205717abcfb823836
PHP
dutycorpse/squad-of-robotic
/src/Model/Coordinate.php
UTF-8
672
3.296875
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Model; class Coordinate { /** * @var int $coordinate */ private $coordinate = 0; /** * Coordinate constructor. * @param int $coordinate */ public function __construct(int $coordinate) { $this->coordinate = $coordinat...
true
a77f7bd611fdb6ddcea9e2bbe22eccf32189a673
PHP
nikic/Ardent
/src/AbstractSet.php
UTF-8
2,721
3.578125
4
[ "MIT" ]
permissive
<?php namespace Collections; abstract class AbstractSet implements Set { /** * Algorithms such as set difference need to be able to return a new * set object that includes any hashing or sorting functions needed but * without any data in the structure. This method provides that ability. * ...
true
0465b0a9cdc875c92a3473aab53323ec5c7b3232
PHP
juan2ramos/lemur
/app/controllers/LoginController.php
UTF-8
5,375
2.546875
3
[ "MIT" ]
permissive
<?php class LoginController extends \BaseController { public function login() { $userdata = [ 'email' => Input::get('email'), 'password' => Input::get('password'), 'activo' => 1 ]; if (Auth::attempt($userdata, Input::get('remember-me', 0))) { ...
true
b675060181d5f0e42463d5ed5004703f1c3ce510
PHP
ShcherbakanD/uplata
/app/src/Service/SaveTopicService.php
UTF-8
607
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace App\Service; use App\Repository\Topic\TopicRepositoryInterface; class SaveTopicService { /** @var TopicRepositoryInterface */ private $topicRepository; /** * SaveTopicService constructor. * @param TopicRepositoryInterface $topicRepository */ p...
true
83592cb296ca65dbbb94fc8e7b03bd50c2c132fb
PHP
horakdani/gyakorlas
/beolvasas_kiiras/negyszog.php
UTF-8
2,416
2.921875
3
[]
no_license
<?php # request quadrilateral points echo "\n************************************************************* \n"; echo "*** ADD MEG A NÉGYSZÖG CSÚCSPONTJAINAK KOORDINÁTÁIT! *** \n"; echo "************************************************************* \n"; $Ax = readline("*** Ax --> a négyszög A pontjának X koordin...
true
57da2ba32b9006d9b5708aadc4b424e54324c2ae
PHP
FIXDISC/phpua
/admin/phpfunc/func.php
WINDOWS-1250
1,333
2.921875
3
[]
no_license
<?php function dia_semana($dds){ if ($dds==0){$dds="Domingo";} if ($dds==1){$dds="Lunes";} if ($dds==2){$dds="Martes";} if ($dds==3){$dds="Miercoles";} if ($dds==4){$dds="Jueves";} if ($dds==5){$dds="Viernes";} if ($dds==6){$dds="Sbado";} } function mes($dds){ if ($dds==1){$dds="Enero";} if ($dds==2){$dds="Febrero";}...
true
77de0cce03fdaa2ee6302ffa767af63bcdcc4ae7
PHP
Catfeeds/wld-h5
/.svn/pristine/40/400f15a878f4500d4ddc3213069d3238ecc25024.svn-base
UTF-8
21,522
2.53125
3
[]
no_license
<?php /** * 砍价活动页面 */ class BargainActivity { //新增砍价活动产品 function InserBargeinproduct($parr) { $pname = $parr['pname']; $mprice = $parr['mprice']; $minprice = $parr['minprice']; $num = $parr['num']; $aid = $parr['aid']; $acode = $parr['ucode']; $img =...
true
2cf95eacd0aa8ed12f9558c0d4512b3c36a7a454
PHP
emrekose26/todo-app
/application/models/Dashboard_Model.php
UTF-8
3,422
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Emre Köse * Date: 09.08.2015 * Time: 12:51 */ class Dashboard_Model extends CI_Model{ public function __construct(){ parent::__construct(); } //userID'ye göre kullanıcı verilerini döndüren fonksiyon public function getUserData($userID){ $query = "SELECT * FROM us...
true
4a7e3e377b0af17e1db20c16d77f0bdf6edaf991
PHP
alejandrito14/proyectolimpio
/www/clases/class.Horarios.php
UTF-8
1,386
2.59375
3
[]
no_license
<?php class Horarios { public $db;//objeto de la clase de conexcion public $idhorario; public $dia; public $mes; public $anio; public $hora; public $estatus; public $tipo_usuario; public $lista_empresas; public function ObtenerTodosHorarios() { $query="SELECT * FROM horario "; $resp=$this->db->consult...
true
7b4cadea6a56fc8c9ea7863f2351e1a6eb7d3258
PHP
roman2861/Light-CMS
/comment.php
WINDOWS-1251
1,532
2.515625
3
[]
no_license
<?php session_start(); include("include/init.php"); include("templates/$theme/header.php"); if (isset($_SESSION["captcha"]) && $_SESSION["captcha"]!==$_POST["captcha"]) { bark (" "); unset($_SESSION["captcha"]); } if (empty($_POST['name']) || empty($_POST['postid']) || empty($_POST['text']))...
true
5990b59065432c510d194432529c0ce00ea3aebf
PHP
janzal/ZUMScore
/app/presenters/UserPresenter.php
UTF-8
3,304
2.578125
3
[]
no_license
<?php use Nette\Application\UI; /** * Description of ScorePresenter * * @author Jenda */ class UserPresenter extends BasePresenter { /** @var ZUMStats\ScoreRepository */ private $scoreRepository; /** @var ZUMStats\UsersRepository */ private $usersRepository; protected function startup()...
true
6af55e50ae775ad4d1b09a8896262a60c57786bf
PHP
shahmanish877/Khanepani-system
/modules/reports/form.php
UTF-8
6,778
2.578125
3
[]
no_license
<?php $total = 0; if($_POST['paid_date']!='' || $_GET['date']!=''){ if($_GET['reports']!='monthly'){ $data = $reports->daily($_POST); echo '<h1 class="title">Reports of '.$_POST["paid_date"].'</h1>'; if($data){ echo '<button class="btn print_btn pull-right" onclick="printDiv()">Print</button...
true
317846af0672b47e70f06d2465a103663a7aa1b4
PHP
simokhalil/books
/include/amazonAPI.php
ISO-8859-1
6,827
2.984375
3
[]
no_license
<?php function aws_signed_request($region, $params, $public_key, $private_key, $associate_tag) { /* Dfinition des paramtres selon Amazon: $region - the Amazon(r) region (ca,com,co.uk,de,fr,co.jp) $params - an array of parameters, eg. array("Operation"=>"ItemLookup", "ItemId"=...
true
9907b499d784032e2de44188b64ffc12ca39e1aa
PHP
khalrizmi/Kraviti
/app/Http/Controllers/AboutController.php
UTF-8
2,798
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\about; use Illuminate\Http\Request; class AboutController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $about = About::find(1); return view...
true
5de3a1556373ddc691c423e902df6560f59e75c6
PHP
shineunited/composer-build-minify
/src/Task/MinifyCssTask.php
UTF-8
4,163
2.546875
3
[ "MIT" ]
permissive
<?php namespace ShineUnited\ComposerBuildPlugin\Minify\Task; use ShineUnited\ComposerBuild\Task\Task; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Composer\IO\IOInterface; use MatthiasMullie\Minify\CSS as...
true
c930e28e0b0a99f8eaa9370b2812bd56a76fd35d
PHP
kellyadele/bar_app
/bar_app/bartender.php
UTF-8
791
2.703125
3
[]
no_license
<?php include 'db_connection.php'; include 'templates/bartender.html'; session_start(); $conn = OpenCon(); $sql = "SELECT * FROM orders"; $result = mysqli_query($conn, $sql); $_SESSION['numRows'] = mysqli_num_rows($result); if($_SESSION['numRows'] > 0) { while($row = mysqli_fetch_assoc($result)) { $nam...
true
abed5f13b7c3e8d5947bca89e2c9ac383c0402a6
PHP
xinranhe/Avalon_PHP
/showItemInfo.php
UTF-8
4,745
2.890625
3
[]
no_license
<?php include 'authCheck.php'; include 'dbConfig.php'; ?> <?php if($_GET['itemId'] && $_GET['itemType']) { $itemId = $_GET['itemId']; $itemType = $_GET['itemType']; if($itemType=="Module") { if(isset($_GET['paramStr'])) { $paramStr = $_GET['paramStr']; ...
true
df084c0e7c0d3614d376667f703f23bc66544129
PHP
simos16/PDO_MVC_SIMPLE
/views/modules/ajax.php
UTF-8
884
2.65625
3
[]
no_license
<?php require_once "../../controllers/controller.php"; require_once "../../models/crud.php"; class Ajax{ public $validUser; public $validMail; public function validUserAjax(){ $dati = $this->validUser; $response = MvcController::userValidationController($dati); //echo $dati; ...
true
7072b2edac9975c1875770b68a36dead93a0339f
PHP
dudarts/widok
/controller/funcoes.php
UTF-8
1,196
2.625
3
[]
no_license
<?php function fSubdominio($url, $indice){ $arrayUrl = explode(".",$url); return $arrayUrl[intval($indice)]; } function fSeguranca(){ if (!$_SESSION['codUsuario']) { fPaginaInicial(); } } function fPaginaInicial(){ header('location:../index.php?msg=Sessão Expirada'); } function fDecimalMySQL...
true
2c5b834d48e68d659f9d2c95aa5dd8ba53f903a9
PHP
cti/core
/src/php/String.php
UTF-8
2,307
3.09375
3
[]
no_license
<?php namespace Cti\Core; /** * String transformation * @package Cti\Core */ class String { /** * convert under_score to UnderScore * @param $string * @return string */ public static function convertToCamelCase($string) { foreach(array('_', '-', '.') as $del...
true
5e2dcfdf2b112c919704a995105658aff5153cf9
PHP
barbaragavalda/examenOOP
/RecomendadorExterno.php
UTF-8
1,716
3.28125
3
[]
no_license
<?php namespace Mpwar; abstract class RecomendadorExterno implements RecomendadorInterface { /** * @var bool indica si el sistema externo ha sido inicializado o no. Para poder obtener recomendaciones, debe ser true. */ protected $sistema_externo_inicializado = false; /** * inicializa el sistema, porque es co...
true
4b761e28e619a70974564b27b021ad40764e8c73
PHP
areoid/evoting
/apps/controllers/LoginController.php
UTF-8
850
2.640625
3
[ "MIT" ]
permissive
<?php /* * LoginController.php * Class Controller untuk login Admin */ class LoginController { public function auth() { $is_auth = Session::getAuth(); if($is_auth) { Session::jump(); } } public function index() { $this->auth(); View::run(true, 'login'); } public function process($params = null) { ...
true
6a204d89610d6a8e9065a60dd67d7838df68896b
PHP
jeroendesloovere/sport-tracker-connector
/src/SportTrackerConnector/Workout/Workout/SportGuesser.php
UTF-8
990
2.9375
3
[ "MIT" ]
permissive
<?php namespace SportTrackerConnector\Workout\Workout; /** * Class that tries to guess the sport from text representation. */ class SportGuesser { /** * Get the sport code from the tracker sport code. * * @param mixed $code The code from the tracker. * @return string */ public stat...
true
55a6902e2dc04d6d62d788443425c977f215fa3f
PHP
lvsambou/Projet-Z
/src/Controller/DefaultController.php
UTF-8
2,018
2.546875
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Category; use http\Env\Response; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; class DefaultController extends \Symfony\Bundle\FrameworkBundle\Controller\AbstractController { /** * Page / Actio...
true
d06bb97598dd679c26555c497afe4c26b642f127
PHP
Nicholas-Nwanochie/PHP-OOP
/calculate.php
UTF-8
274
2.609375
3
[]
no_license
<?php declare(strict_types=1); include "./Autoloader.php"; $op = $_POST['op']; $num1 = $_POST['num1']; $num2 = $_POST['num2']; $calc = new Calc($op, (int)$num1, (int)$num2); try{ echo $calc->calculator(); } catch(TypeError $e){ echo "error:". $e->getMessage(); } ?>
true
865989da0d7a8b77ec9d4f60140416e36d25f936
PHP
gitter-badger/salic-minc
/application/modules/default/models/ArquivoModel.php
ISO-8859-1
2,609
2.765625
3
[]
no_license
<?php /** * Description of ArquivoModel * * @author xti */ class ArquivoModel { private $id; public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } /** * * @throws Exception */ public function cadastrar($in...
true
36a4dd1982293b8ded45b076859d9d9b03c206ca
PHP
agni-s-chakraborty/nxontv
/database/migrations/2021_03_31_163539_create_languages_master_table.php
UTF-8
775
2.515625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateLanguagesMasterTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('languag...
true