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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d24eb4074c8d927c20b924b6f30186fb916a0067 | PHP | StefMTP/asfaleia-auth | /app/Http/Controllers/AuthController.php | UTF-8 | 3,854 | 3.03125 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Models\Logging;
use DateTime;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Auth;
class AuthController extends Controller
{
// Function for user registration
public function register (Request... | true |
22356d614a142197ebea26d04e29d03810f1f69a | PHP | JodiTan/LBW-API | /app/Controllers/People.php | UTF-8 | 1,083 | 2.671875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php namespace App\Controllers;
use App\Models\PeopleModel;
class People extends BaseController
{
protected $peopleModel;
public function __construct()
{
$this->peopleModel = new PeopleModel();
}
public function popular($page = 1)
{
$data = [
'title' => 'MovieLBW | Popular P... | true |
d071e028c14924fdc2ed1564e6d7ff958447395c | PHP | Almamu/PresentacionPHP | /ejemplos/sobre-escritura-de-metodos/ejemplo1.php | UTF-8 | 661 | 3.28125 | 3 | [] | no_license | <?php
class Vehiculo
{
var $anchoRuedas;
function setAnchoRuedas ($anchoRuedas)
{
$this->anchoRuedas = $anchoRuedas;
}
};
class Formula1 extends Vehiculo
{
var $anchoRuedasDelanteras;
var $anchoRuedasTraseras;
... | true |
8d03ccdad861c36bcbbfc091a7f688780ffa2da7 | PHP | hnphat/framework | /apps/class/database.php | UTF-8 | 11,136 | 3.140625 | 3 | [] | no_license | <?php
/**
* Main class to control to database. All class wanna connect and handle in database must be extends it
* User: HNP
* Date: 08/07/2019
* Time: 10:39 AM
*/
class Apps_Class_Database
{
protected $host;
protected $user;
protected $pass;
protected $dataname;
protected static $connectInstan... | true |
bfec697a90a422c610ffa6dbead380c251d96eda | PHP | tisca26/tog-fm | /app/models/User.php | UTF-8 | 2,422 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
use UserTrait, RemindableTrait;
/**
* The database table ... | true |
0b943672a22a1b7ee33eda1e155f655d1d086132 | PHP | mcgivrer/WebContext | /modules/imanager.php | UTF-8 | 275 | 2.546875 | 3 | [] | no_license | <?php
interface IManager{
/**
* Pre load/process data to process during treatment.
*/
public function preProcess();
/**
* Rendered template.
* @param $template name of the template to render.
*/
public function renderTemplate();
}
?>
| true |
ef903a7e9e393e85b847a58cc5c969259383e1b6 | PHP | i3or1s/UBL | /UBL/CAC/Stowage.php | UTF-8 | 1,743 | 3 | 3 | [
"MIT"
] | permissive | <?php
namespace i3or1s\UBL\CAC;
use i3or1s\UBL\CBC\LocationID;
/**
* http://www.datypic.com/sc/ubl21/e-cac_Stowage.html.
*/
final class Stowage implements \Stringable
{
private const ELEMENT_SIGNATURE = 'cac:Stowage';
public readonly ?LocationID $LocationID; // [0..1] An identifier for the location.
... | true |
cc1ac681d7e9ed98cd18b60375e148d69d13d4be | PHP | baconricky/portfolio | /labs/email-extractor.php | UTF-8 | 3,297 | 2.640625 | 3 | [] | no_license | <?php /**/ ?><?php
set_include_path(
get_include_path() .
PATH_SEPARATOR . '/usr/local/lib/php' . PATH_SEPARATOR . "/home/theharr/.pear/home/theharr/pear/php/"
);
include("SOAP/Client.php");
$google_key = "ABQIAAAAg2WQIfghSw47ci0r3F_a4xQCh0J2O1gBTVoGWXLQMzOkS4ZU4hQB6jUOx-E-FbXhLZObkAAyXFjhGQ";
$google_url ... | true |
b0407a6bf81b2b58f8f6918739e9b359aa756dc2 | PHP | rasyid2027/management-santri-app | /functions.php | UTF-8 | 2,181 | 2.75 | 3 | [] | no_license | <?php
$host = 'localhost';
$usr = 'root';
$pass = 'password';
$dbname = 'learn';
$conn = mysqli_connect( $host, $usr, $pass, $dbname );
function query($query)
{
global $conn;
$result = mysqli_query($conn, $query);
$rows = [];
while( $row = mysqli_fetch_assoc($result) )
{
$rows[] = $row;
... | true |
7be92479bcdc5aa1cefaa12284633728cf4cf48d | PHP | EgeatechSRL/laravel-app-updater | /src/Dto/ApplicationStoreData.php | UTF-8 | 2,295 | 2.671875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
namespace EgeaTech\AppUpdater\Dto;
use EgeaTech\AppUpdater\Constants\BuildChannel;
use EgeaTech\AppUpdater\Contracts\Dto\ApplicationStoreRequestData;
use EgeaTech\AppUpdater\Contracts\Models\ApplicationModelContract;
use EgeaTech\AppUpdater\ValueObjects\ApplicationVersion;
use EgeaTech\AppUpdater\ValueObjects\B... | true |
e8b171f9554a881a252dc1336167f42c157deda1 | PHP | justincc/EventRecorderWebInterface | /index.php | UTF-8 | 590 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | <html>
<head></head>
<body>
<?php
$conn = mysql_connect("localhost", "root", "passw0rd");
mysql_select_db("eventrecorder", $conn);
$res = mysql_query("select * from UserRegionEvents", $conn);
# print_r($count);
echo "<h1>Summary</h1>\n";
echo "Got " . mysql_num_rows($res) . " events.\n";
$res = mysql_query("selec... | true |
9db114b910b923f3fd592130b32d73cf570970ce | PHP | VJohn15/Taskbook | /for/06.php | UTF-8 | 496 | 3.828125 | 4 | [] | no_license | <?php
/**
* Given the price of 1 kg of sweets (as a real number), output the cost of 1.2, 1.4, …, 2 kg of these sweets.
*/
for ($n = 18; $n > 0; ) {
$i = $n*1.2 ;
echo $i.'-price of 1.2 kg of sweets <br/> ';
$x= $n*1.4 ;
echo $x.'-price of 1.4 kg of sweets <br/> ';
$b = $n*1.6 ;
echo $b.'-pric... | true |
58f9dd06ccfb83cee7e65ef0001dddc75298ad79 | PHP | pkplsmnt95855/pkp | /protected/models/common/LoginForm.php | UTF-8 | 1,929 | 2.5625 | 3 | [] | no_license | <?php
class LoginForm extends CFormModel {
public $email;
public $password;
public $social;
public $userType;
private $_identity;
public function rules()
{
return array(
array('email,password', 'required'),
array('password', 'authenticate'),
);
... | true |
4ddc1d0a6bd69181343a4ff22f3f888ebeb638d2 | PHP | kirigokaranja/CHERONO | /ARTIST/ACTIONS/editBooking.php | UTF-8 | 1,219 | 2.546875 | 3 | [] | no_license | <?php
require '../../DBConnect.php';
$status= $_POST['status'];
$Message=$_POST['Message'];
$id = $_POST['id'];
$sql3="SELECT * FROM `book` WHERE `id`='$id'";
$data=mysqli_query($db,$sql3);
while($row=mysqli_fetch_assoc($data)) {
$package = $row['packageID'];
$ctg = explode(" ... | true |
c853b2db37c43097476193c2e596f2c5c7113950 | PHP | flysion/laravel-database-cache | /src/helpers.php | UTF-8 | 194 | 2.65625 | 3 | [] | no_license | <?php
namespace Flysion\Database;
/**
* @param $sql
* @param $bindings
* @return string
*/
function sql($sql, $bindings)
{
return sprintf(str_replace('?', '%s', $sql), ...$bindings);
} | true |
5af9599e6bcc4db6cad67f9eb06d2719f5e5ca37 | PHP | google-code/amud | /admin/char.php | UTF-8 | 6,915 | 2.546875 | 3 | [] | no_license | <?php
require_once('preheader.php');
#the code for the class
include('ajaxCRUD.class.php');
#this one line of code is how you implement the class
########################################################
##
$tbl = new ajaxCRUD("Character", "char", "char_id", "");
##
#########################... | true |
6c5a040a492358511c0a17b892db99292da4b2b3 | PHP | Mercerenies/personal-website | /baby/put_score.php | UTF-8 | 2,616 | 2.78125 | 3 | [] | no_license | <?php
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$request = json_decode(file_get_content... | true |
ea9b162c61618215e0fd72544a3aeaa9d1ddf53d | PHP | annaghd/simple-cafe-manager-assignment | /database/seeds/UserTableSeeder.php | UTF-8 | 881 | 2.703125 | 3 | [] | no_license | <?php
use App\Role;
use App\User;
use Illuminate\Database\Seeder;
class UserTableSeeder extends Seeder
{
/**
* Run the user table seeds.
*
* @return void
*/
public function run()
{
// get manager and waiter roles
$role_manager = Role::where('name', '=', 'manager')->firs... | true |
4ed4182183883f6c1c2665a98d59b7abc324a193 | PHP | brick/postcode | /src/Formatter/BLFormatter.php | UTF-8 | 554 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Brick\Postcode\Formatter;
use Brick\Postcode\CountryPostcodeFormatter;
/**
* Validates and formats postcodes in Saint Barthélemy.
*
* This country uses a single postcode, 97133.
*
* @see https://en.wikipedia.org/wiki/List_of_postal_codes
*/
class BLFormatter implements... | true |
ce472b4e98360433756e08ca4c16af093995770a | PHP | gimmins/Backend-API | /TasksBuilder.php | UTF-8 | 295 | 2.65625 | 3 | [] | no_license | <?php
namespace JSONFormatter;
class TasksBuilder
{
public function toJson($tasks) {
if($tasks) {
echo '[';
for ($i=0; $i<mysql_num_rows($tasks); $i++) {
echo ($i>0?',':'').json_encode(mysql_fetch_object($tasks));
}
echo ']';
}
}
public function toError() {
}
}
| true |
85923ae9f725d92c2ba2647cca7c266795c3a67a | PHP | llliufen/workplace | /work8.11/loginfail.php | UTF-8 | 768 | 2.875 | 3 | [] | no_license | <?php
class Log
{
public function userLogin()
{
if (isset($_POST['submit1'])) {
//传入用户和密码信息
$user = $_POST['user'];
$password = $_POST['password'];
echo $user;
//判断输入信息是否正确
if ($user == "liufen" && $password == "12345") {
... | true |
a6103c10d498a30ab00a1921f46698ea0a52d591 | PHP | nour-diaa/leafplayer | /backend/app/LeafPlayer/Controllers/AlbumController.php | UTF-8 | 1,669 | 2.78125 | 3 | [] | no_license | <?php
namespace App\LeafPlayer\Controllers;
use App\LeafPlayer\Exceptions\Media\Album\NotFoundException;
use App\LeafPlayer\Models\Album;
use Illuminate\Support\Collection;
/**
* This controller houses all the methods to interact with albums.
*
* Class AlbumController
* @package App\LeafPlayer\Controllers
*/
cl... | true |
9e3e32c9246395cc3498ed6cd7dfee1e6316f336 | PHP | TorbenKoehn/lok | /models/map.php | UTF-8 | 7,829 | 2.5625 | 3 | [] | no_license | <?php
class map extends model {
const DUNGEON_TYPE = 1;
const TOWN_TYPE = 2;
const FIELD_TYPE = 3;
const INSTANCE_TYPE = 4;
public $id;
public $name;
public $lore;
public $background_url;
public $north_map_id;
public $south_map_id;
public $west_map_id;
public $... | true |
04c558e4d229cf4bbb1851e289df3e7232ea034c | PHP | Iam444/Test-task | /App/Security/SessionManager.php | UTF-8 | 598 | 2.890625 | 3 | [] | no_license | <?php
namespace App\Security;
class SessionManager
{
public function __construct()
{
if(!isset($_SESSION)) {
session_start();
}
}
public static function setCommonSession(): void
{
$_SESSION['id'] = null;
$_SESSION['name'] = 'Anonymous';
$_SESSION... | true |
7b826f50f5dbfed652f0abe67aa4d1bb185c16c0 | PHP | HealthyB0y/PHP_NC | /App/Models/PostModel.php | UTF-8 | 373 | 2.71875 | 3 | [] | no_license | <?php
namespace App\Models;
use App\Models\BaseModel;
/**
*
*/
class PostModel extends BaseModel{
function __construct()
{
# code...
parent:: __construct();
}
public static function tableName(){
return 'posts';
}
public function find($id = NULL){
$model = new PostModel();
$model->query = 'SELEC... | true |
800032821087e98a52e0578ec9eaffb688b15c15 | PHP | helios-api/php-helios-hpp-sdk | /src/HeliosHpp/Service/PaymentService.php | UTF-8 | 1,050 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace HeliosHpp\Service;
use HeliosHpp\Component\Request;
use HeliosHpp\Model\Payment;
/**
* Class PaymentService
*
* @TODO handle Helios errors when ready
*
* @package HeliosHpp\Service
*/
class PaymentService extends AbstractHppService implements PaymentServiceInterface
{
/**
* @param \... | true |
b2b92bfb0100b01a3d37ef98de3fadd8198cc3ee | PHP | matthewbdaly/statico | /src/Core/Objects/Navigation/Container.php | UTF-8 | 877 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Statico\Core\Objects\Navigation;
use TypeError;
use PublishingKit\Utilities\Collections\Collection;
final class Container extends Collection
{
public function __construct(array $items = [])
{
foreach ($items as $item) {
if (!is_a($item, Page::clas... | true |
149967ffcb2e96b3e35754dab4e5c35df9ba5b10 | PHP | tillkruss/Cloudflare-WordPress | /vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCompatibility/Tests/BaseClass/DoesFunctionCallHaveParametersTest.php | UTF-8 | 2,220 | 2.859375 | 3 | [
"LGPL-2.1-or-later",
"BSD-3-Clause"
] | permissive | <?php
/**
* Function parameters test file
*
* @package PHPCompatibility
*/
/**
* Function parameters function tests
*
* @group utilityDoesFunctionCallHaveParameters
* @group utilityFunctions
*
* @uses BaseClass_MethodTestFrame
* @package PHPCompatibility
* @author Juliette Reinders Folmer <phpcompatib... | true |
a3fae3eb85e4b237b83df16e827aca82d1fc480b | PHP | tentacode-classroom/project-shopping-julien-bonnanfant | /src/Entity/Organ.old.php | UTF-8 | 934 | 2.875 | 3 | [] | no_license | <?php
namespace App\Entity;
class old
{
private $id;
private $name;
private $age;
private $price;
private $picture;
// etc.
public function setName(string $name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public fun... | true |
945c09e83354bac92b1df6a44dfbcaf5b48ecb3c | PHP | JerOOme35/php-oo-framework | /src/Form/Field/FieldInterface.php | UTF-8 | 1,072 | 3.1875 | 3 | [] | no_license | <?php
namespace Form\Field;
/**
* Interface FieldInterface
* @author Étienne Dauvergne <contact@ekyna.com>
*/
interface FieldInterface
{
/**
* Returns the field name.
*
* @return string
*/
public function getName(): string;
/**
* Returns the label.
*
* @return string... | true |
d0895b2c905f5c8c51b9adfb07941507323c0967 | PHP | Sahrmn/Programacion3 | /Verboshttp/clases/usuario.php | UTF-8 | 1,766 | 3.21875 | 3 | [] | no_license | <?php
class Usuario
{
public $nombre;
public $clave;
public function __construct($nom, $pass)
{
$this->nombre = utf8_encode($nom);
$this->clave = utf8_encode($pass);
}
public function ToString()
{
return $this->nombre;
}
public function ToJSON()
{
... | true |
efa03b3b637050fd231416eba854fa3812f6b967 | PHP | Tablieh/applidl10_final | /storev2/src/model/entity/Product.php | UTF-8 | 3,304 | 3.046875 | 3 | [] | no_license | <?php
namespace App\Model\Entity;
use App\Core\AbstractEntity as AE;
use App\Core\EntityInterface;
class Product extends AE implements EntityInterface
{
private $id;
private $name;
private $description;
private $price;
private $available;
private... | true |
cf82827eee695c73288082a80f8c047c242f1ef2 | PHP | xinyeya/xinyebbs_thinphp | /database/migrations/20201026073616_music.php | UTF-8 | 1,703 | 2.671875 | 3 | [
"Apache-2.0",
"PHP-3.0"
] | permissive | <?php
use think\migration\Migrator;
use think\migration\db\Column;
class Music extends Migrator
{
/**
* Change Method.
*
* Write your reversible migrations using this method.
*
* More information on writing migrations is available here:
* http://docs.phinx.org/en/latest/migrations.ht... | true |
37241554ede80c8aaabf11446ba0174973c5c540 | PHP | rsgcata/auth | /auth/jwt/algorithm/HS384Cryptography.php | UTF-8 | 1,282 | 3 | 3 | [
"MIT"
] | permissive | <?php
namespace rsgcata\auth\jwt\algorithm;
/**
*
* Short description
*
* Long description
*
* @category --
* @package --
* @license --
* @version 1.0
* @link --
* @since Class available since Release 1.0
*/
class HS512Cryptography extends AbstractHsCryptography
{
/**
* Th... | true |
d3e456507280df42bf736353e4473703b20a85e8 | PHP | mmoharem/sms2 | /app/Repositories/TimetablePeriodRepositoryEloquent.php | UTF-8 | 617 | 2.828125 | 3 | [] | no_license | <?php
namespace App\Repositories;
use App\Models\TimetablePeriod;
use Carbon\Carbon;
class TimetablePeriodRepositoryEloquent implements TimetablePeriodRepository
{
/**
* @var TimetablePeriod
*/
private $model;
/**
* TimetablePeriodRepositoryEloquent constructor.
* @param TimetablePe... | true |
b93ceee5878e11e156d31c6e7c60760356f8d9ff | PHP | hepanming007/note | /shell/LNMP56/5pureftpdsh/PureAdmin-0.3/libs/dbclass.php | UTF-8 | 1,842 | 2.59375 | 3 | [] | no_license | <?php
if (!defined(ACCESS)) {
echo "can't access";
exit;
}
class Db {
function dbconn($host,$dbuser,$dbpass,$dbname) {
mysql_pconnect($host,$dbuser,$dbpass) or die ("can't connect to mysql server".mysql_error());
mysql_select_db($dbname) or die ("can't select db:".mysql_error());
$this->q('set names "utf8"');
... | true |
885f72eea88c180b121a5e0f5bb2f98a15c80df2 | PHP | DrWalrus1/ISIT307-Backend-Web-Programming | /Assignment 1/page2.php | UTF-8 | 545 | 3.15625 | 3 | [] | no_license | <?php
$loanAmount;
$rate;
$period;
function CalculateMortgage ($loanAmount, $rate, $paymentsNumber) {
$rate /= 12;
$paymentsNumber *= 12;
return round(-($loanAmount * $rate / (1-(1/(1+$rate)^$paymentsNumber))), 2);
}
if(isset($_GET["loanAmount"], $_GET["rate"], $_GET["p... | true |
212c26e736a22d0f4ee8ee58aa92cc83c04dccb6 | PHP | davericher/validator | /src/IValidator.php | UTF-8 | 1,305 | 3 | 3 | [] | no_license | <?php
namespace ir0ny1\Validator;
/**
* Interface IValidator
* @author Dave Richer
* @package ir0ny1\Validator
*/
interface IValidator
{
/**
* Returns the current state of the model
*
* @return bool
*/
public function valid();
/**
* Validates the model agains... | true |
7e4b521679cceb73acf7a13434741e4622ffad73 | PHP | dicrtarasov/yii2-widgets | /src/CustomSelect.php | UTF-8 | 5,304 | 2.8125 | 3 | [] | no_license | <?php
/*
* @copyright 2019-2022 Dicr http://dicr.org
* @author Igor A Tarasov <develop@dicr.org>
* @license MIT
* @version 04.01.22 18:26:36
*/
declare(strict_types = 1);
namespace dicr\widgets;
use yii\base\InvalidConfigException;
use function is_scalar;
use function ob_get_clean;
use function ob_start;
/**
... | true |
16d9d8bec9813c3eb7cd6f292010858784bdb586 | PHP | martinvium/shackle | /tests/Shackle/Rule/SetTest.php | UTF-8 | 2,958 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Copyright 2011 Martin Vium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
a8dda913b75c2089c1037be1fd2fac76317249f8 | PHP | Jirayu-Kaewnongkhoon/backend-php-project | /api/JobServices/createJobRequest.php | UTF-8 | 1,444 | 2.671875 | 3 | [] | no_license | <?php
header("Access-Control-Allow-Origin: *");
header("Content-type: application/json");
require_once('../../config/Database.php');
include('../../models/JobRequest.php');
include('../../helpers/uploadImagePath.php');
// Instantiate DB & connect
$database = new Database();
$db = $... | true |
f4f15fd222f349a66b7e8df288505840b4f4046a | PHP | luthfur/Event-Publish | /eventpublish/libs/Data/EventScheduleQuery.php | UTF-8 | 3,919 | 2.71875 | 3 | [] | no_license | <?php
/*********************************************************
Time Sharp Event Publish
Event Schedule Class
Developed by Luthfur Rahman Chowdhury
November 15, 2006
**********************************************************/
class EventScheduleQuery {
private $mdb2;
private $category_id;
... | true |
b93d82ee7f24c0685bfe50609950dd751baba842 | PHP | bayramfradj/9canards | /model/Service.php | UTF-8 | 1,189 | 2.65625 | 3 | [] | no_license | <?php
/**
*
*/
include_once("Config.php");
class Service extends Config
{
function __construct()
{
parent:: __construct();
}
function all()
{
$q="SELECT * FROM tbl_service";
$res=$this->pdo->prepare($q);
$res->execute();
return $res;
}
function Get($id)
{
$q="SELECT * FROM tbl_service WHE... | true |
62f15f0f314669152ad244391afe8923b88ce217 | PHP | xjohjrdy/laravel-pt-ex | /app/Entitys/OtherOut/AdUserInfoOut.php | UTF-8 | 2,034 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Entitys\OtherOut;
use Illuminate\Database\Eloquent\Model;
class AdUserInfoOut extends Model
{
protected $connection = 'a1191125678_out';
protected $table = 'pre_common_member';
public $timestamps = false;
/*
* 通过用户id得到用户uid
*/
public function getUidById($app_id)
{
... | true |
a74283e6bea2c0830ddb928aebdd6c618a3713f2 | PHP | MezzoLabs/MezzoDemo | /app/Magazine/Events/Http/Controllers/EventProviderController.php | UTF-8 | 1,858 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Magazine\Events\Http\Controllers;
use App\Magazine\Events\Http\Pages\EventProviders\CreateEventProviderPage;
use App\Magazine\Events\Http\Pages\EventProviders\EditEventProviderPage;
use App\Magazine\Events\Http\Pages\EventProviders\IndexEventProviderPage;
use MezzoLabs\Mezzo\Http\Controllers\Coc... | true |
22f342e17a16b2766b8d7776441859e03da6c26c | PHP | ib-mexico/INM | /app/Site.php | UTF-8 | 993 | 2.53125 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use DB;
class Site extends Model
{
protected $table = 'sites';
protected $primaryKey = 'id_site';
public $timestamps = false;
protected $fillable = ['delivery_date', 'latitute', 'longitude', 'created_at'];
/* RELATIONSHIPS - BEGIN */
... | true |
c6139a35dadfe5ffad0065800fa69c50e76a9757 | PHP | nicoleip/date_time_regexes | /task2.php | UTF-8 | 4,347 | 2.875 | 3 | [] | no_license | <?php
require_once 'functions.php';
$validationErrors = [];
$day = getValue($_POST, 'day');
$month = getValue($_POST, 'month');
$year = getValue($_POST, 'year');
$hours = getValue($_POST, 'hours');
$minutes = getValue($_POST, 'minutes');
$seconds = getValue($_POST, 'seconds');
$day_add = getValue($_POST, 'day_add');
$... | true |
c5714e9879572c4a859e9038ca12bcd2ea2ebc66 | PHP | pushkar14/CalendarInvite | /Model/CalendarInviteAttachment.php | UTF-8 | 685 | 2.890625 | 3 | [] | no_license | <?php
class CalendarInviteAttachment{
private $messageBody;
private $fileName;
private $contentType = 'text/calendar';
const FILE_EXTENSION = 'ics';
function getMessageBody() {
return $this->messageBody;
}
function getFileName() {
return $this->fileName;
... | true |
61f732096c027149f25f6ba41c7a27b85f0e6e28 | PHP | Juan1307/ugel-archivo1 | /models/Class.Usuario.php | UTF-8 | 4,073 | 2.578125 | 3 | [] | no_license | <?php
declare(strict_types=1);
require_once __DIR__.'/Abs_Class/Abs.Usuario.php';
class UserPro extends User
{
public function getStatus() : array
{
$qry_arr[0] = "SELECT COUNT(1) FROM tblusuarios";
$qry_arr[1] = "SELECT COUNT(1) FROM tblusuarios WHERE ndni IS NULL AND carnet IS NULL";
return Config:... | true |
d29b300b3b1050533eda7dbde499be891c098c26 | PHP | velisav-boyanov/Diploma-Project-Math-Site | /FigureContainers/FigureTriangle.php | UTF-8 | 48,702 | 3.671875 | 4 | [] | no_license | <?php
namespace FigureContainers;
use Controller\TriangleController;
class FigureTriangle
{
private array $triangleParameters;
private bool $isEquilateral;
private bool $isRight;
private bool $isIsosceles;
private array $givenValues;
public function getParameter($i)
{
return $thi... | true |
486246a4a10501487d32235ee546b3688c04f008 | PHP | evertondewes/ads_poo_2021_2 | /CPF/Main.php | UTF-8 | 216 | 2.859375 | 3 | [] | no_license | <?php
require 'Pessoa.php';
$everton = new Pessoa();
$everton->setCPF('52998224725');
echo $everton->getCPF() . PHP_EOL;
$pedro = new Pessoa();
$pedro->setCPF('688.557.840-13');
echo $pedro->getCPF() . PHP_EOL;
| true |
65c7bf88882c5ce2231c74faf481f00d0869abe4 | PHP | apoorvnaik/BillSplittr | /web/php/classes/User.class.php | UTF-8 | 245 | 2.578125 | 3 | [] | no_license | <?php
/**
* Object represents table 'user'
*/
class User{
var $id;
var $fname;
var $lname;
var $email;
var $phone;
var $salt;
var $password;
var $createdOn;
var $updatedOn;
var $lastLogged;
}
?> | true |
1cc863c151f4f9485117c64abca4a742a20cf50d | PHP | Samffy/graphql-poc | /src/Vehicle/Domain/Truck.php | UTF-8 | 253 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Vehicle\Domain;
use App\Vehicle\Domain\Input\TruckInput;
class Truck extends TruckInput
{
public function setMaximumLoad(int $maximumLoad): Truck
{
$this->maximumLoad = $maximumLoad;
return $this;
}
}
| true |
90a3b28037be056b34288c9d2d2d62a23be23f5e | PHP | blui/gcharris-cpsc-319 | /application/models/SignInChild.php | UTF-8 | 2,909 | 2.984375 | 3 | [] | no_license | <?php
/**
* Model for SignInChild
* @package Frp
* @author Brian Lui
* @version 1.0
*/
class Application_Model_SignInChild extends Frp_Model_Abstract {
/**
* A reference to the singleton instance of child, sign_in_child and
* program_session
*/
private $child_table;
private ... | true |
e1eaa0c4990e83589abef203cb707baf93adb6b5 | PHP | ycs77/laravel-line-bot | /src/Event/Concerns/Eventable.php | UTF-8 | 2,872 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Ycs77\LaravelLineBot\Event\Concerns;
use LINE\LINEBot\Event\BaseEvent;
use Ycs77\LaravelLineBot\Matching\MatchedMessage;
trait Eventable
{
/**
* The base event instance.
*
* @var \LINE\LINEBot\Event\BaseEvent
*/
protected $baseEvent;
/**
* Create a new event inst... | true |
bd016f0ce88d4a39e33cb96dceb9f71f10bd5499 | PHP | bartfeenstra/Doobie | /tests/data/php/Foo.php | UTF-8 | 329 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
/**
* @file
* Contains Foo.
*
* @todo [doobie:bar:baz]
*/
/**
* Makes all foos say "Foo!".
*
* @todo [doobie:foo:foo] Consider whether to make the foos say "Foobar!".
*/
class Foo {
/**
* Says it all.
*/
public function sayItAll() {
// @todo Fix this when [doobie:foo:qux].
echo 'Foo!... | true |
140d16e2507b4317263ec2752e5511dd6bb78abd | PHP | Joyguo0/ss_w | /truckworld/mutiupload/FileProcessingScripts/PHP/uploadfiles.php | UTF-8 | 1,656 | 2.671875 | 3 | [] | no_license | <?php
$uploaddir = dirname($_SERVER['SCRIPT_FILENAME'])."/UploadedFiles/";
// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.
//trying restore browser cookie
if(isset($_POST['MultiPowUpload_browserCookie']))
{
$cookies = explode(";", $_POST['MultiPowUpload_browserC... | true |
43af4e6276ee2d4a7736d1bca592afb370e577eb | PHP | cassell/aframe-react-leapmotion-slot-machine | /src/Slot/Reels.php | UTF-8 | 791 | 3.15625 | 3 | [
"MIT"
] | permissive | <?php
namespace Cassell\Casino\Slot;
class Reels
{
/**
* @var Reel[]
*/
private $reels;
/**
* Reels constructor.
* @param Reel[] $reels
* @throws \Exception
*/
public function __construct(array $reels)
{
if (count($reels) < 1) {
throw new \Exc... | true |
1fca94ff1b0bfc282a892309d5cce558a49a699d | PHP | yongshengli/templi_framework | /Session/Session_mysql.class.php | UTF-8 | 2,287 | 2.78125 | 3 | [] | no_license | <?php
defined('IN_TEMPLI') or die('非法引用');
/**
* session mysql 数据库存储类
*
*/
class Session_mysql {
var $lifetime = 1800;
var $model;
var $table;
/**
* 构造函数
*
*/
public function __construct() {
$this->model = Templi::model('sessions');
$this->lifetime = Templ... | true |
dced7e06ec241d990dcb7b19104cc6f1cba1638e | PHP | fallenreaper/OCS | /scripts/UserPasswordDiv.php | UTF-8 | 748 | 2.921875 | 3 | [] | no_license | <?php
/*
[IN] inRows: Optional input to add additional rows to the input. String of <tr></tr> elements
*/
require ("connect.php");
$q = "select * from users where dropped is not true order by l_name asc, f_name asc;";
$users = mysql_query($q);
$options = "";
while ($row = mysql_fetch_array($users)... | true |
abeda52e3d5a8ec1e5dabc6452d453432b5a0e98 | PHP | sarahM17/mysql | /excercise_1/read.php | UTF-8 | 1,986 | 2.609375 | 3 | [] | no_license | <?php
require "db.php";
$sql = 'SELECT * FROM hiking';
$query = $newpdo->query($sql);
$query->setFetchMode(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Randonnées</title>
<link rel="stylesheet" href="css/basics.css" media="screen" title="no title" charset=... | true |
aaf03e02d9ef8b005cec615bc03a8c9ac431a154 | PHP | robotkudos/RKImage | /src/Size.php | UTF-8 | 338 | 2.859375 | 3 | [] | no_license | <?php
namespace RobotKudos\RKImage;
class Size {
public $height;
public $width;
function __construct($width = 0, $height = 0) {
if ($width === 0 && $height === 0) {
throw new \Error('Width and Height cannot both be null');
}
$this->width = $width;
$this->height ... | true |
73db06c9bc5d76941cdc77318d3c9b37c6be8712 | PHP | hyj511/Mini-Shop | /Backend/application/controllers/order.php | UTF-8 | 5,610 | 2.53125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* This is the controller for order.
* @author : kmr
* @created_at: 2017/7/3
*/
class Order extends CI_Controller {
/* constructor */
public function __construct()
{
parent::__construct();
$this->load->model('order_model');
$thi... | true |
87e326240375f5477909e3ab10cacd1593388998 | PHP | osimosu/sysart.fi | /wp/wp-content/themes/sysart/components/menuwalker.php | UTF-8 | 645 | 2.875 | 3 | [] | no_license | <?php
/**
* @name Navigation
* @description main menu nav
*/
class MenuWalker extends Walker {
var $db_fields = array( 'parent' => 'parent_id', 'id' => 'object_id' );
function start_lvl (&$output, $depth = 0, $args = array()) {
$output .= '<ul class="menu">';
}
function end_lvl (&$output, $depth = 0, ... | true |
258e878fc8e80bf60f1428be6958ad90a2818a51 | PHP | Lucardi94/Parcial26-05 | /TestTorneoAnual.php | UTF-8 | 2,542 | 2.515625 | 3 | [] | no_license | <?php
include 'Partido.php';
include 'Equipo.php';
include 'Categoria.php';
include 'Torneo.php';
include 'TorneoNacional.php';
include 'TorneoProvincial.php';
include 'MinisterioDeporte.php';
$catA = new Categoria(1, "Infantiles");
$catB = new Categoria(2, "Menores");
$catC = new Categoria(3, "Mayores");
$objE1 = ne... | true |
9d530c5f2a54997b1d75149643946c84d2460487 | PHP | hthieu1991/responsize_website | /class/class_rewrite_link.php | UTF-8 | 560 | 3.1875 | 3 | [] | no_license | <?php
class rewrite_link{
function slug($string, $spaceRepl = "-") {
// Replace "&" char with "and"
$string = str_replace("&", "and", $string);
// Delete any chars but letters, numbers, spaces and _, -
$string = preg_replace("/[^a-zA-Z0-9 _-]/", "", $string);
// Optional: Make the string lowercase
... | true |
f83ffcf865b1f478108e71d160340541f304b2ff | PHP | LohithaYalavarthi/PHP | /registration-system/students/search-courses.php | UTF-8 | 3,314 | 2.671875 | 3 | [] | no_license | <?php
session_start();
$count = "";
$coursename="";
include "../shared/database.php";
if (empty($_SESSION['username'])) {
header('location:index.php');
} else {
if (isset($_POST['submit'])) {
$coursename = $_POST['coursename'];
if ($coursename) {
$result = mysqli_query($con, "SELECT ... | true |
fde71183aaba6e293ce71f5faf5d1feb20964f1b | PHP | hdpsilva/tictactoe | /src/Application/UseCases/MarkCellUseCase.php | UTF-8 | 577 | 2.984375 | 3 | [] | no_license | <?php
namespace App\Application\UseCases;
use App\Domain\Game\Entity\GameBoard;
class MarkCellUseCase
{
public function __construct()
{
}
/**
* @param array $params
* @return string
*/
public function execute($params = null)
{
try {
$gameBoard = new GameBoar... | true |
a3e6dfb094558b13253175a175e30f593c27e886 | PHP | Wesleyotio/russiancatholica | /database/seeders/ChurcheSeeder.php | UTF-8 | 1,646 | 2.75 | 3 | [] | no_license | <?php
namespace Database\Seeders;
use App\Models\Church;
use Illuminate\Database\Seeder;
class ChurcheSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
$dados1 = [
'name' => 'Igreja Nossa Senhora ... | true |
80707abecd02a3af5703d02749c8cf658a24e0be | PHP | noelsj007/product-view-wpplugin | /admin/class-points-of-sale-admin.php | UTF-8 | 19,535 | 2.625 | 3 | [] | no_license | <?php
/**
* The dashboard-specific functionality of the plugin.
*
* @link http://lucianotonet.com
* @since 1.0.0
*
* @package Points_Of_Sale
* @subpackage Points_Of_Sale/admin
*/
/**
* The dashboard-specific functionality of the plugin.
*
* Defines the plugin name, version, and two examples h... | true |
07e2782334e3d14ebf788ff45d4e876ecf63c620 | PHP | elnizar/tahwissa-web | /src/TahwissaBundle/Entity/Compte.php | UTF-8 | 2,923 | 2.6875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Elhraiech Nizar
* Date: 2017-02-10
* Time: 21:54
*/
namespace TahwissaBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="TahwissaBundle\Repository\CompteRepository")
* @ORM\Table(name="compte")
*/
class Compte
{
/**
* @ORM\Genera... | true |
b0a5c395508fcc992dd97d1b3fd59b96415c9f1a | PHP | bosoy83/Alideria | /htdocs/profile.php | UTF-8 | 1,132 | 2.796875 | 3 | [] | no_license | <?
class Profile
{
var $player_id;
var $name;
var $city;
var $quote;
var $icq;
var $skype;
var $birthday;
var $descr;
var $email;
var $show_email;
var $title;
function Profile( $id )
{
$this->player_id = $id;
$res = f_MQuery( "SELECT email FROM characters WHERE player_id={$thi... | true |
d626631491ec5f7a35f67add814fa8ea119227bb | PHP | tonopurwanto/android-api | /app/Http/Controllers/BookController.php | UTF-8 | 1,126 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Book;
use Carbon\Carbon;
use Illuminate\Http\Request;
class BookController extends Controller
{
public function index()
{
return array_map(function($book) {
return [
'id' => $book['id'],
'title' => $book['title'... | true |
8d01bbd12aa91751366c6b4e2fb2cfacb0679018 | PHP | php/presentations | /slides/peru/ejemplos/simplexml.php | UTF-8 | 210 | 2.5625 | 3 | [] | no_license | <?php
$xml = 'libros.xml';
$libros = simplexml_load_file($xml);
foreach($libros->libro as $libro) {
echo "* '{$libro->titulo}' fue; "
."escrito por {$libro->autor}\n";
}
?>
| true |
793230c7954aa42a27941983ddc6026fddd7b91a | PHP | evil0/startsilex | /src/Services/Builder/EntityBuilderInterface.php | UTF-8 | 372 | 2.796875 | 3 | [] | no_license | <?php
namespace Services\Builder;
interface EntityBuilderInterface {
/**
* @param array $values
* @return mixed
*/
public function buildEntity(array $values);
/**
* @return mixed
*/
public function getEntity();
/**
* @param $attribute
* @return mixed
*/
... | true |
3b94cf489bf6df125adddaeabf6c1ea066cdbcba | PHP | expos-ermont/expos-web | /lib/Flickr.class.php | UTF-8 | 1,524 | 2.546875 | 3 | [] | no_license | <?php
/**
* Set of functions to deal with Flickr! sets
*
* UNUSED FOR THE MOMENT
*
* @author Florent Captier <florent@captier.org>
* @filesource
*/
class ExposFlickr {
// SHOULD NOT be modified
private static $key = 'e3f062d260a088ada8505d49be09cb06';
private static $perms = 'read';
// SHOULD NOT be mod... | true |
335ac725e290d263db8ad3ed95f97a57b96213ce | PHP | Arcencielmagic/p20 | /ch2_cours2/index.php | UTF-8 | 1,675 | 2.59375 | 3 | [] | no_license | <?php
function send_email(){
$destinataire = $_POST["destinataire"];
$emetteur = $_POST["emetteur"];
$objet = $_POST["objet"];
$message = $_POST["message"];
$headers = 'From: '. $emetteur . "\r\n" .
'Reply-To: '. $emetteur . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($destinataire, $objet,... | true |
6d1287eabba06b18f96e6087ec58c6a7d36c5f11 | PHP | markehb/tasks | /objects/TaskControls.php | UTF-8 | 3,304 | 3.109375 | 3 | [] | no_license | <?php
namespace task\add;
class TaskControls {
private $db;
private $taskName;
private $taskDescription;
private $taskCategoryId;
private $taskPriorityId;
private $taskStatusId;
private $taskCategoryOptions;
private $taskPriorityOptions;
private $taskStatusOptions;
private... | true |
9123aabf3c0ff52fd583b08332d90267f6907498 | PHP | PeeHaa/MicroFramework | /MicroFW/MFW/Form.php | UTF-8 | 4,496 | 3.125 | 3 | [] | no_license | <?php
/**
* HTML forms
*
* PHP version 5.3
*
* @category MicroFramework
* @package Form
* @author Pieter Hordijk <info@pieterhordijk.com>
* @copyright Copyright (c) 2012 Pieter Hordijk
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 1.0.0
*/
/**
* HTML... | true |
37ccbeaab6b186cf2d526269f753c9c9477a085a | PHP | vbilan/glass | /views/edit_settings.php | WINDOWS-1251 | 1,730 | 2.671875 | 3 | [] | no_license | <?php
/*
* Created on 17 2010
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
include_once 'base_object.php';
include_once 'utils/settings.php';
class edit_settings extends base_object {
function prepare_prices($data) {
$tmp = explode('... | true |
6344bbaa825b82c33061e6e04180f59bc99e436f | PHP | Likekickdoor/suixing | /app/Model/shipModel.php | UTF-8 | 7,836 | 2.640625 | 3 | [] | no_license | <?php
namespace app\Model;
use \lib\core\DB;
error_reporting(0);
/**
*船务信息
*/
class ship
{
private $start;
private $end;
private $line;
private $ship_name;
private $money;
private $time;
private $days;
private $qite;
private $aa;
//判断数据为城市还是渡口或港口
function pan($start,$end){
$this->start = $start;
... | true |
c3a9169ed63135ee6b5ab0c410bb6d3b2baa734c | PHP | kasp89s/anime | /models/BasketProductAttribute.php | UTF-8 | 2,228 | 2.59375 | 3 | [] | no_license | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "basketproductattribute".
*
* @property string $id
* @property string $basketProductId
* @property string $productOptionId
* @property string $productOptionValueId
*
* @property BasketProduct $basketProduct
* @property Option $prod... | true |
07e043160d60fe6690c3491fd5dc02e921662c48 | PHP | jodfedlet/buscar-cep | /src/ws/ViaCep.php | UTF-8 | 276 | 2.625 | 3 | [] | no_license | <?php
namespace jodfedlet\buscar_cep\ws;
class ViaCep
{
const URL = 'https://viacep.com.br/ws/';
public function get(string $zipCode) : array
{
$result = file_get_contents(self::URL.$zipCode.'/json');
return json_decode($result, true);
}
} | true |
186aa2bfcc3531514de7d9b1a2ab6805adb99c9c | PHP | rafaelzuckerberg/teste_system | /app/Http/Controllers/Auth/AuthApiController.php | UTF-8 | 2,646 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\User;
use Tymon\JWTAuth\Exceptions\TokenBlacklistedException;
use Tymon\JWTAuth\Exceptions\TokenExpiredException;
use Tymon\JWTAuth\Facades\JWTAuth;
use Validator;
class AuthApiController extends Co... | true |
06088e3f9697646aff6e22928693328f8ff8983c | PHP | BenMakesGames/PsyPets | /admin/errorlogs.php | UTF-8 | 2,203 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
$_GET['maintenance'] = 'no';
require_once $_SERVER['DOCUMENT_ROOT'] . '/commons/init.php';
$require_petload = "no";
// confirm the session...
require_once "commons/dbconnect.php";
require_once "commons/rpgfunctions.php";
require_once "commons/sessions.php";
require_once "commons/grammar.php";
require_once "com... | true |
556d7c8ecc543415ecda88780363dd103d6e969f | PHP | TheSimpleCoder/getskill | /app/Model/User/Entity/User.php | UTF-8 | 7,042 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Model\User\Entity;
use App\Events\User\UserEmailChangedRequest;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Lar... | true |
a139cb14410148a98eafbebf1830419a7af1fd02 | PHP | JonathanLoscalzo/Proyecto2014_grupo45 | /model/PedidoHasDetallesModel.php | UTF-8 | 1,027 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
include_once("repository/DetalleRepository.php");
class PedidoHasDetallesModel extends Model
{
public $numero;
public $detalle_alimento_id;
public $cantidad;
public $detalle_alimento_model;
public function __construct($numero, $detalle_alimento_id, $cantidad){
$this->numer... | true |
eebdac07dc254f586ab501699c139d7cb5edf8e8 | PHP | chrisjuin/poo-pokemon.php | /energie.php | UTF-8 | 630 | 3.421875 | 3 | [] | no_license | <?php
class Energie
{
private $type;
private $pokemon;
private $degat;
public function __construct($type , $pokemon, $degat)
{
$this->type = $type;
$this->pokemon = $pokemon;
$this->degat = $degat;
}
public function setTypeEnergie($type)
{
$this->type = $type;
}
public functio... | true |
213dcdab2c5aa09082a6cadc9cf66a710ae74219 | PHP | code-tool/artd | /src/CodeTool/ArtifactDownloader/DomainObject/Factory/DomainObjectFactoryInterface.php | UTF-8 | 458 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace CodeTool\ArtifactDownloader\DomainObject\Factory;
use CodeTool\ArtifactDownloader\DomainObject\DomainObjectInterface;
interface DomainObjectFactoryInterface
{
/**
* @param array $data
*
* @return DomainObjectInterface
*/
public function makeFromArray(array $data);
/**... | true |
f3e0a1e1bc652437daee7d18b0e0c69e7176d710 | PHP | Pedrox42/Trainee-Grupo-2 | /core/database/QueryBuilder.php | UTF-8 | 797 | 2.90625 | 3 | [] | no_license | <?php
namespace App\Core\Database;
use PDO;
class QueryBuilder
{
/**
* The PDO instance.
*
* @var PDO
*/
protected $pdo;
/**
* Create a new QueryBuilder instance.
*
* @param PDO $pdo
*/
public function __construct()
{
}
/**
* Select all reco... | true |
f136570f84be6e56dfecfe357633cbc8834aabe9 | PHP | vsemdobra/SumDU-winter-examps-17-18-y | /Проектирования веб-систем/TychenkoITMz62/lab4/pr3.php | UTF-8 | 245 | 2.84375 | 3 | [] | no_license | <?php
class A
{
public static function test()
{
echo "odin";
}
public static function get()
{
echo "odin";
}
}
class B extends A
{
public static function test()
{
echo "neodin";
}
}
B::test(); | true |
6f96f163cdbbef2f41432216c43084f70a2b3323 | PHP | sasezaki/mirror-pear.eveyron.com | /Zend-1.0.8/Eveyron/Zend/View/Helper/Cdn.php | UTF-8 | 3,417 | 2.53125 | 3 | [] | no_license | <?php
/**
* Eveyron PHP Library
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.opensource.org/licenses/bsd-license.php
*
* @category Eveyron
... | true |
ce9731538cf3d2b6b98228bc7b02d1a4f882319a | PHP | ramosth/sistema-de-alerta-de-risco-a-deslizamento | /sistemaLogin/consultaMeteorologia.php | UTF-8 | 3,919 | 2.875 | 3 | [] | no_license | <?php
include_once("conexao.php");
$filtro = isset($_GET['filtro'])?$_GET['filtro']:"";
$sql = "select * from tbmeteorologia where data like '%$filtro%' order by id";
$consulta = mysqli_query($conn, $sql);
$registros = mysqli_num_rows($consulta); //informa quantas linhas existem no BD
?>
<!DOCTYPE html... | true |
560b3a66f471bd8d728de7c0dd17c41a5668e293 | PHP | lgillie/openstore-schema-core | /src/OpenstoreSchema/Core/Tools/Console/Command/Schema/CreateCommand.php | UTF-8 | 3,363 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/*
* opentore-schema-core
*
* @author Vanvelthem Sébastien
* @link https://github.com/belgattitude/openstore-schema-core
* @copyright Copyright (c) 2015-2017 Vanvelthem Sébastien
* @license MIT License, https://github.com/belgattitude/openstore-schema-core/blob/master/LI... | true |
9e69d2faaa409156e5e3a558c1de13e750822595 | PHP | singularphp/command | /src/Singular/Command/Command/CreatePackCommand.php | UTF-8 | 2,619 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
namespace Singular\Command\Command;
use Singular\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Classe do comando de cri... | true |
09ce1afac9b8e9d504352303bff6a4a0f1118d25 | PHP | ActiveEngagement/metrics | /src/TransformsResults.php | UTF-8 | 784 | 2.828125 | 3 | [] | no_license | <?php
namespace Actengage\Metrics;
use Closure;
trait TransformsResults
{
/**
* The callback used to transform the value before display.
*/
public Closure|null $transformCallback = null;
/**
* Set the callback used to transform the value before presentation.
*
* @return $this
... | true |
64cc985ba2e27aa93d272e5a1ea63e4b694dc284 | PHP | carlesalonso/factorial | /index.php | UTF-8 | 1,601 | 2.734375 | 3 | [
"MIT"
] | permissive | <!doctype html>
<html lang="en">
<head>
<title>Factorial</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/boo... | true |
185a4776a454ca26cce5e86d1b810863d358cf04 | PHP | RWilberth/incadepPage | /app/models/Training.php | UTF-8 | 1,029 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
use LaravelBook\Ardent\Ardent;
/**
* Description of Training
*
* @author Zero
*/
class Training extends Ardent {
protected $guarded = array();
public $autoHydrateEntityFromInput = true;
public $... | true |
2de1fd7f0c8e544be656ba1c7ac0a400e7a94009 | PHP | denisdotdev/mealplan | /app/Http/Middleware/EnsureIsInstalled.php | UTF-8 | 534 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class EnsureIsInstalled
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure... | true |
9618d5343f2f6911358e53c28b27791f56bd7a2b | PHP | WIWOMedia/takeaway-api | /app/Http/Controllers/Scraper/ProductsController.php | UTF-8 | 2,718 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Scraper;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Symfony\Component\DomCrawler\Crawler;
use App\Products;
class ProductsController extends Controller
{
private $_products = [],
$_product_dom;
public function info($products_dom){
... | true |