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
cf8886281b908266df9a833e2a40153eacb9a3e0
PHP
jorjomir/PHP-Web-Development
/1. Introduction to PHP/digits letters and others.php
UTF-8
322
3.078125
3
[]
no_license
<?php $input=readline(); $others=''; $text=''; $digits=''; for ($i=0; $i<strlen($input); $i++) { if(is_numeric($input[$i])) { $digits.=$input[$i]; } elseif (ctype_alpha($input[$i])) { $text.=$input[$i]; } else { $others.=$input[$i]; } } echo $digits . "\n" . $text . "\n" . $other...
true
0af19ee72ef9816819de63f9bd80203ccef8181d
PHP
admacro/php101
/p01-introduction/startup.php
UTF-8
465
3.0625
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> Man: So, Mr...? <br/> <?php // print output echo 'Bond: Bond, James Bond.';...
true
0109bf4253a4a19c2c30685d6b37d1f7cf502dd2
PHP
mhrezaei/fiche
/app/Models/Unit.php
UTF-8
994
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Traits\TahaModelTrait; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Unit extends Model { use TahaModelTrait, SoftDeletes; public static $reserved_slugs = 'root,admin'; protected $guarded = ['id']; /* |---------------...
true
9acda6a7503e62657851286ace74ec5d6218d305
PHP
mdesilva/wooter
/app/Commands/Game/UpdateGameCommand.php
UTF-8
4,536
2.609375
3
[ "MIT" ]
permissive
<?php namespace Wooter\Commands\Game; use Carbon\Carbon; use Wooter\Commands\Command; use Illuminate\Contracts\Bus\SelfHandling; use Wooter\RegularStage; use Wooter\Wooter\Exceptions\GameNotFound; use Wooter\Wooter\Exceptions\NotPermissionException; use Wooter\Wooter\Exceptions\SportNotFound; use Wooter\Wooter\Except...
true
1cf78b71528aae73b7c57bf108b4389fcb91e092
PHP
muhdiqbal1/disiplinSistem
/StudentRecord.php
UTF-8
1,070
3.125
3
[]
no_license
<?php $start=0; $limit=2; $t=mysqli_query($connection,"select * from student"); $total=mysqli_num_rows($t); if(isset($_GET['id'])) { $id=$_GET['id']; $start=($id-1)*$limit; //$start=2*1; //$start=2; } else { $id=1; } $page=ceil($total/$limit); $query=mysqli_query($connection,"select * from student limit $start...
true
3a15b1cb1f32aa08a0d7c8d59a37feb231f4f82c
PHP
kawai92/Sudoku
/tests/tests/CellTest.php
UTF-8
2,265
3.03125
3
[]
no_license
<?php /** @file * @brief Empty unit testing template * @cond * @brief Unit tests for the class */ class CellTest extends \PHPUnit_Framework_TestCase { public function test_construct() { $cell = new Cell(2,3); $this->assertInstanceOf('Cell', $cell); $this->assertTrue($cell->getStatus()); $...
true
5657d016b5ba2a15672100dd2d85ea73e543d354
PHP
oliverCJ/haitao
/item/Module/Item.php
UTF-8
1,936
2.625
3
[]
no_license
<?php namespace Module; /** * 首页模块. * * @author oliver <cgjp123@163.com> */ class Item extends \Module\ModuleBase { public static function instance() { return parent::instance(); } /** * 获取当前可用的广告. * * @param unknown_type $adPosId * @param unknown_type $num */ ...
true
11fb466e3715a0dac7970714b9f7e6d26fdd49df
PHP
spatie/laravel-webhook-server
/src/Exceptions/InvalidSigner.php
UTF-8
415
2.609375
3
[ "MIT" ]
permissive
<?php namespace Spatie\WebhookServer\Exceptions; use Exception; use Spatie\WebhookServer\Signer\Signer; class InvalidSigner extends Exception { public static function doesNotImplementSigner(string $invalidClassName): self { $signerInterface = Signer::class; return new static("`{$invalidClass...
true
514b79a9dcf672e8d91ab382f01ed699d630a70b
PHP
SKleine78/dishwaser_test
/classes/SKleine/Devices/AbstractDevice.php
UTF-8
767
3.125
3
[]
no_license
<?php namespace SKleine\Devices; /** * abstract device * contains common methods * * @package SKleine */ abstract class AbstractDevice { protected $_hash = ''; protected $_type = ''; protected $_description = ''; protected $_typeInfo = array(); protected $_additional = array(); protected $...
true
337d14403c35ad72a5becb4f71aa09bc2647dbaf
PHP
estafons/database_project
/php files/deleteprivateowners.php
UTF-8
1,010
2.765625
3
[]
no_license
<!DOCTYPE html> <html> <body> <h1> Give AFM of Business Owner you want to delete. </h1> <form action="deleteprivateowners.php" method="get"> AFM:<br> <input type="text" name="AFM" required> <br> <input type="submit" value="Ok"> </form> <?php $servername = "localhost"; $username = "root"; $password = "s122...
true
e51d6b37d6f7042c9d544d87be75d49e7ebd9646
PHP
dessoya/sibedge-test-task
/Class/ProductHolder.php
UTF-8
886
3.15625
3
[]
no_license
<?php class ProductHolder { public function __construct() { $this->products = [ ]; } public function addProduct($productId, $count = null) { return $this->products[$productId] = new Product($productId, $count); } public function jsonSerialize_products() { $products = [ ]; foreach($this->products as $id ...
true
a6d0659ae9eaea0041017fa1040f40be4dde6b04
PHP
ilivanoff/www
/postupayu.ru/www/sdk/kitcore/defines/PsDefines.php
UTF-8
2,814
2.640625
3
[]
no_license
<?php /** * Расширение {@see PsDefinesEngine} * * @author azazello */ final class PsDefines extends PsDefinesEngine { /* * ЗАМЕНА ФОРМУЛ НА КАРТИНКИ */ const F_REPLACE_NONE = 'F_REPLACE_NONE'; // - Замена не производится const F_REPLACE_IMG = 'F_REPLACE_IMG'; // - Заменяем на картинки ...
true
d856dcc99aa424522b4ce6826415231cf28cf138
PHP
indd01/justcode_test
/sources/lib/model/ProductHasSalePeer.php
UTF-8
1,140
2.609375
3
[]
no_license
<?php /** * Skeleton subclass for performing query and update operations on the 'product_has_sale' table. * * * * This class was autogenerated by Propel 1.4.2 on: * * 08/20/15 23:01:48 * * You should add additional methods to this class to meet the * application requirements. This class will only be genera...
true
984a91e8afa0215a56d1bc28a1c69c2a5f07a250
PHP
kodus/chrome-logger
/src/LogEntry.php
UTF-8
602
2.90625
3
[]
no_license
<?php namespace Kodus\Logging; /** * Interal model representing a single, unprocessed (PSR-3) log-entry. * * @internal */ class LogEntry { /** * @var mixed */ public $level; /** * @var string */ public $message; /** * @var array */ public $context; /** ...
true
936f9ac62e6be5eac97a583c761eccc03a48ea4e
PHP
sitewards/db-compare
/src/Sitewards/DBCompare/Factory/ItemFactory.php
UTF-8
587
2.59375
3
[ "MIT" ]
permissive
<?php namespace Sitewards\DBCompare\Factory; use Sitewards\DBCompare\Worker\Item\StoreConfigWorker; use Sitewards\DBCompare\Exception\NoItemWorkerMappingException; use Doctrine\DBAL\Connection; class ItemFactory { /** * @param int $iItemTypeId * @param Connection $oConnection * @return StoreConfig...
true
34386c4beffa0b48c8b4f60f8c3d4c53032ba39a
PHP
ricpelo/empresa
/usuarios/auxiliar.php
UTF-8
2,753
2.71875
3
[]
no_license
<?php function comprobarValoresLogin(&$args, $pdo, &$errores) { if (!empty($errores) || empty($_POST)) { return; } extract($args); if (isset($args['login'])) { if ($login === '') { $errores['login'] = 'El nombre de usuario es obligatorio.'; } elseif (mb_strlen($log...
true
bb1288257de4d5ef5233bfd04b24f272d73629a0
PHP
Just-Man/PHP
/Lection4/Homework_3/Task_7.php
UTF-8
1,589
3.65625
4
[]
no_license
<?php /** * Created by PhpStorm. * User: just * Date: 08.11.15 * Time: 18:20 */ /* * Задача 7: * Напишете програма, която първо чете масив и после създава нов * масив със същия размер по следния начин: стойността на всеки * елемент от втория масив да е равна на сбора от предходния и * следващи...
true
924fed494da65912c23b0dba2d1d2717118da681
PHP
infotech-ru/reference
/src/models/CatalogForeshortening.php
UTF-8
808
2.640625
3
[]
no_license
<?php namespace infotech\reference\models; /** * Class Foreshortening * @package infotech\reference\models * @property integer $id * @property string $name * @property integer $order * @property string $url * @property string $created_at * @proper...
true
b2a24538d6b3a71ebb1153d29a0e8e27ee6294dd
PHP
raphaelamselli/viddyoze-basket
/src/basket/model/ProductFactory.php
UTF-8
547
3.125
3
[]
no_license
<? namespace model; class ProductFactory { private $products = array(); private $json_products_file = '/../data/products.json'; public function __construct () { $json_products = json_decode( file_get_contents(dirname(__FILE__).$this->json_products_file ) ); foreach ($json_products as $ref => $json_produc...
true
97795f080a1aadec9efb2a0693014c4e91a7f107
PHP
mangobb/core
/src/Web/SessionKernel.php
UTF-8
2,430
2.703125
3
[ "MIT" ]
permissive
<?php namespace FluxBB\Web; use Carbon\Carbon; use Symfony\Component\HttpFoundation\Cookie; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpKernel\HttpKernelInterface; class SessionKe...
true
e8dda086dc752579659055d94c645de3128a87fd
PHP
crystlbrd/DatabaseHandler
/src/Connections/PDOConnection.php
UTF-8
20,052
3.171875
3
[ "MIT" ]
permissive
<?php namespace crystlbrd\DatabaseHandler\Connections; use crystlbrd\DatabaseHandler\Exceptions\ConnectionException; use crystlbrd\DatabaseHandler\Interfaces\IConnection; use crystlbrd\Exceptionist\Environment; use crystlbrd\Exceptionist\ExceptionistTrait; use PDO; use PDOException; use PDOStatement; abstract class ...
true
712e4293e5cd5f692a9ecbd65f53ee214f19d274
PHP
n8davis/shopify-app-lumen
/app/Skeleton/Shopify/Collection/Smart.php
UTF-8
4,846
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: nate * Date: 8/12/18 * Time: 8:30 AM */ namespace App\Skeleton\Shopify\Collection; use App\Skeleton\Shopify\Collection\Smart\Metafield; use App\Skeleton\Shopify\Collection\Smart\Rule; use App\Skeleton\Shopify\Shopify; class Smart extends Shopify { protected $body_h...
true
85a586ca6b29df69dd8fba2c34b0526e2879d50d
PHP
rama-emeefe/subscriptions
/database/migrations/2020_02_12_175638_create_plan_periods_table.php
UTF-8
1,315
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePlanPeriodsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create(config('emeefe.subscriptions.tables.plan_periods'), function(Blueprint $table...
true
1ff7df95c31c373faa4e9369e20e18bbf0c2c5ac
PHP
artashesamiryan/Magento-API
/app/Http/Controllers/OrderController.php
UTF-8
763
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Services\OrderService; use Illuminate\Http\Request; class OrderController extends Controller { /** * service * * @var OrderService $service */ private $service; /** * __construct * * @param OrderService $service * @ret...
true
967362ab1da623ef17539a302a626424168bbafd
PHP
wandypurnomo/transaction
/src/Services/Transaction/MainTransactionService.php
UTF-8
1,472
2.84375
3
[]
no_license
<?php namespace Wandxx\Transaction\Services\Transaction; use Wandxx\Transaction\Contracts\TransactionDetailRepositoryContract; use Wandxx\Transaction\Contracts\TransactionRepositoryContract; class MainTransactionService { private $_transactionRepository; private $_transactionDetailRepository; private $...
true
08abbd918ed2306ce083fec3412ed87e7cf15e05
PHP
pietersartain/dokuwiki-plugin-pqraid
/syntax.php
UTF-8
4,122
2.6875
3
[ "MIT" ]
permissive
<?php // must be run within Dokuwiki if(!defined('DOKU_INC')) die(); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(DOKU_PLUGIN.'syntax.php'); /** * All DokuWiki plugins to extend the parser/rendering mechanism * need to inherit from this class */ class syntax_plugin_pqraid...
true
0eef247a7861076becd59848637ae4db63b25989
PHP
tal-shulgin/Shulgin_SqlReports
/Api/Data/QuerysSearchResultsInterface.php
UTF-8
454
2.515625
3
[]
no_license
<?php namespace Shulgin\SqlReports\Api\Data; interface QuerysSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface { /** * Get Querys list. * @return \Shulgin\SqlReports\Api\Data\QuerysInterface[] */ public function getItems(); /** * Set Query list. * @p...
true
33911e548245f806ee6bc3f68e3cb362c4259e6b
PHP
mybsdc/yunaj
/app/mobile/model/Room.php
UTF-8
5,829
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * 该模型对应yunaj_room表 * */ namespace app\mobile\model; use think\Model; use think\db\Query; // use function think\where; 这个是编辑器自作聪明加的,服务器端会报错,先注释 class Room extends Model { // 设置当前模型对应的完整数据表名称 protected $table = 'yunaj_room'; // 实际上遵循规范会自动对应,无需此步 /** * 获取所有楼层以及对应的房间 * @param int...
true
c019da1f829629b805df2c70ff7fd48797d44209
PHP
jefterlf/aulas_php_turma_2
/mateus/Atividades Word JF/2_2.php
ISO-8859-1
737
3.59375
4
[]
no_license
<!DOCTYPE html> <html lang="pt-br"> <head> <title>Igual - maior ou menor</title> </head> <body> <form method="post" action="2_2.php"> <label>Insira seu nmero:</label> <input name="numero" type="number" id="numero" placeholder="Exemplo: 10, 7, 15, ..."/> <i...
true
c5e747ab4e70df7d29e902ae959a670c67195f7e
PHP
adriangalan/Tareas
/Ejercicios01/05.php
UTF-8
1,244
3.296875
3
[]
no_license
<?php /* * 5.- Realizar un segunda versión del primer ejercicio donde * la página de resultado tiene que mostrar una tabla con el siguiente * formato utilizando estilo. */ $num1=random_int(1, 10); $num2=random_int(1, 10); echo' <table border="1" cellspacing="0" > <tbody> <tr> <th bgcolo...
true
f44a521f7f7e260ff25311dbd261c5a1533272a0
PHP
Araik5004/laravel8
/app/Http/Requests/CarRequest.php
UTF-8
1,996
2.71875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CarRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the v...
true
4c125c892af53902ef1005900af03590bc9f8ac8
PHP
andparsons/mage-app-start
/app/code/Magento/QuoteGraphQl/Model/Cart/AssignBillingAddressToCart.php
UTF-8
1,706
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Magento\QuoteGraphQl\Model\Cart; use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Exception\NoSuchEntityException; use Magento\Framework\GraphQl\Exception\GraphQlInputException; use Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException; use ...
true
fc3e64ba376f28f8bf1eca9f557ee7759e9f4719
PHP
niden/cardoe
/src/Html/Link/Serializer/Header.php
UTF-8
2,400
2.9375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ declare(strict_types=1); namespace Phalcon\Html\Link\Serializer; use function im...
true
aa8c947a723185ff6f64084556cc2869378fc529
PHP
SeliSuhaeli/pw2020_193040015
/praktikum/P2_SENIN13_193040015/latihan2c.php
UTF-8
685
2.859375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Membuat bulat</title> <style> .bulat{ width: 50px; height: 50px; border: 2px solid #000; text-align: center; line-hei...
true
0417b94f7b99a582cc3955a50d0728d96f5e111a
PHP
vansang1012/HinhChuNhatMD2
/rectangle.php
UTF-8
693
3.984375
4
[]
no_license
<?php class Rectangle { public $width; public $height; public function __construct($width, $height) { $this->width = $width; $this->height = $height; } public function getArea() { return $this->width * $this->height; } public function getPerimeter() {...
true
c9174b3e848302f69f3c9e50cae75fb0eef7be99
PHP
yuhqzz/tthinkSite
/app/goods/validate/CouponValidate.php
UTF-8
912
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\goods\validate; use think\Validate; class CouponValidate extends Validate { protected $rule = [ 'title' => 'require', 'type' => 'require', 'img' => 'require', 'using_cars' => 'require', 'coupon_price' => 'checkPriceValue', ]; protected $mess...
true
1dca84b787eb1f0cab61b42d1f4cc08e138d1275
PHP
alfredholmes/phpbingo
/game.php
UTF-8
3,380
2.71875
3
[ "MIT" ]
permissive
<?php include ('sql/validate_login.php'); if(isset($_COOKIE['username']) && isset($_COOKIE['password'])) { if(!(validate($_COOKIE['username'], $_COOKIE['password'], $database))) { header('location: index.php'); die; }else{ } }else{ header('location: index.php'); die; } $user = $_COOKIE['use...
true
dd7e9553ab6fd9d83b3841d8c7bd9ad59a9e5e17
PHP
ElitezInc/mars-game-exam
/app/code/Controller/City.php
UTF-8
631
2.546875
3
[]
no_license
<?php namespace Controller; use Core\Controller; use Helper\Url; use Session\User; use Model\User as UserModel; class City extends Controller { public function __construct() { parent::__construct(); if(!$this->isLogedIn()){ Url::redirect(Url::make('/user/login')); } } ...
true
00a227020f96cb6bbc667cfac281ab11832bbce2
PHP
leson1986/gddwx
/core/classes/page_list.class.php
GB18030
9,194
2.703125
3
[ "MIT" ]
permissive
<?php /*********************************************************** * Document Type: Classes * Update: 2006/11/08 * Author: Akon * Remark: ҳʾ ***********************************************************/ include_once ( __CLASS_PATH . 'page.class.php' ); Class PageList { var $PageTitle; // ҳ var $PageS...
true
601f1c885bd72a113e8e4a605f86def414a5a022
PHP
kodnificent/urban-cruise
/tests/Utils/Model/TestsModelTimestamp.php
UTF-8
699
2.6875
3
[]
no_license
<?php namespace Tests\Utils\Model; trait TestsModelTimestamp { use TestsModel; /** * Set if the model is expected to be timestamped * * @return bool */ protected abstract function shouldBeTimestamped(): bool; public function testModel_ShouldOrShouldNot_BeTimeStamped() { ...
true
2482bc693a6208a22dc51c996307ff1e2873cb27
PHP
lambo10/vtuexchange
/api/create_product_post_table.php
UTF-8
347
2.609375
3
[]
no_license
<?php include'connect.php'; $sql = "CREATE TABLE products_posts ( id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), price VARCHAR(50), phone VARCHAR(30), date TIMESTAMP )"; if ($conn->query($sql) === TRUE) { echo "Table products_posts created successfully"; } else { echo "Error creating tabl...
true
da646bdcaa55a60f010d0f329bb8579050a3f290
PHP
popphp/pop-mail
/src/Client/AbstractClient.php
UTF-8
3,822
2.921875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Pop PHP Framework (http://www.popphp.org/) * * @link https://github.com/popphp/popphp-framework * @author Nick Sagona, III <dev@nolainteractive.com> * @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) * @license http://www.popphp.org/license N...
true
813e31ad48af71a08127fe89b4dc4008b4238e23
PHP
Arivu-abacies/mycaar
/common/models/Module.php
UTF-8
4,396
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "module". * * @property integer $module_id * @property integer $program_id * @property string $title * @property string $short_description * @property string $featured_video_url * @property string $detailed_description * @proper...
true
cb137061fc8bebd2a51dc93fa6cd464d7e587315
PHP
emilioaor/control-de-compras
/app/Exceptions/ProductPriceImportException.php
UTF-8
851
2.984375
3
[ "MIT" ]
permissive
<?php namespace App\Exceptions; use Exception; class ProductPriceImportException extends Exception { protected $errors = []; protected $fileLine; /** * DigitalInventoryException constructor. * @param array $errors * @param int $line * @param string $message * @param int $code ...
true
089eb0101dbe674f59303f20234aee7f4c5fa1c2
PHP
abulkhairsohag/dealer_cox_bazar
/ajax_order_cancelled.php
UTF-8
3,209
2.59375
3
[]
no_license
<?php ini_set('display_errors', 'on'); ini_set('error_reporting', 'E_ALL'); include_once("class/Session.php"); Session::init(); Session::checkSession(); error_reporting(1); include_once ('helper/helper.php'); ?> <?php include_once("class/Database.php"); $dbOb = new Database(); // The following section is for sh...
true
45c7cc89f0d7fddbb4489b26749984910885223b
PHP
ElGringov2/RebellionServer
/getplanetinfos.php
UTF-8
5,348
2.609375
3
[]
no_license
<?php require_once("class.php"); $mysqli = GetMySQLConnection(); $user = DatabaseRead('user', $mysqli, "connectionguid='" . $_POST["guid"] . "'"); $planet = DatabaseRead("planet", $mysqli, "id=" . $_POST["planetGUID"]); $history = "Pas d'historique pour l'instant."; echo "<planet name=\"{$planet->Name}\" description...
true
24f5cd75495d801db745edc2be6d782c25887454
PHP
tuhin-inflack/EC
/Modules/HM/Services/RoomService.php
UTF-8
5,809
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: siaminflack * Date: 10/24/18 * Time: 3:59 PM */ namespace Modules\HM\Services; use App\Traits\CrudTrait; use Illuminate\Validation\ValidationException; use Modules\HM\Entities\Hostel; use Modules\HM\Entities\Room; use Modules\HM\Repositories\RoomRepository; class RoomSe...
true
f1650420686fbe94ce1e0779cbaff8fcf9eae3ae
PHP
hammenth2u/MyFirstProject
/src/Repository/CardRepository.php
UTF-8
1,958
2.546875
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Card; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Common\Persistence\ManagerRegistry; /** * @method Card|null find($id, $lockMode = null, $lockVersion = null) * @method Card|null findOneBy(array $criteria, array $orderBy = null)...
true
0859075c26bce30353efa1ec0d174ba441fe59d8
PHP
panosban/Cloup-Management-System
/Classes/Oxhma.php
UTF-8
670
2.859375
3
[]
no_license
<?php class Oxhma { var $ar_kykloforias; var $xroma_oxhm; var $montelo_oxhm; var $marka_oxhm; var $odhgos; function __construct(){ $this->ar_kykloforias = ""; $this->xroma_oxhm = ""; $this->montelo_oxhm = ""; $this->marka_oxhm = ""; $this...
true
47d8351171d030999633c7466a3f2bdfd7efd0dc
PHP
JeanJacquesPARRINELLO/php_mvc.bwb
/core/Exception.php
UTF-8
581
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: padbrain * Date: 08/06/18 * Time: 10:42 */ namespace Core; class Exception extends Response { protected $message; public function __construct($e) { parent::__construct("errorException.php"); $this->title = "Erreur de l'application"; $...
true
d4a91781784533aedd90c443839e729dc6f535e1
PHP
mishakorolcov1/php-autch
/system/functions.php
UTF-8
273
2.625
3
[]
no_license
<?php function dd($data){ echo "<pre>"; var_dump($data); echo "</pre>"; } function __($text){ global $languages; if($_SESSION['lang'] == 'ru'){ return $text; } return $languages[$text]; }
true
dedc6a8e59fe2d7f5479ca4624180b65ed5ae076
PHP
okki23/pdct_wave
/tanggal.php
UTF-8
287
2.953125
3
[]
no_license
<?php $start = '11-07-2014'; $end = '10-07-2017'; $starting = date('Y-m-d',strtotime($start)); $ending = date('Y-m-d',strtotime($end)); echo $starting; echo "<br>"; echo $ending; if($ending <= $starting){ echo "akhir ga boleh kurang atau sama dari start"; }else{ echo "selamat"; } ?>
true
97122a05ea9629a814058d87d0f1fc00f1cfd6c6
PHP
fonzi73/kneipentest
/index.php
UTF-8
1,803
2.515625
3
[]
no_license
<?php include './config.php'; // Lädt die Klassen so wie benötigt spl_autoload_register(function($class) { include './class/' . $class . '.php'; }); include './view/begin.php'; $navigation = isset($_GET['navi']) ? $_GET['navi'] : '0'; $view = 'default'; switch ($navigation) { case "0": echo "<h2>Willko...
true
5117a5cd4508950f1804b543a3d79f0e8ee5b588
PHP
Pabluster/Cascam_Control
/add_sup_int.php
UTF-8
3,244
2.546875
3
[]
no_license
<?php /** * * Sistema para control y gestion de componentes * Cas-Cam/LV * Desarrollado para Compañia Minera Doña Ines de Collahuasi SCM * * * * * * * * * * * * * * * * * * * Datos de desarrollo * * * Nombre de Archivo * Version 0.0.1 * Fecha Creacion 2...
true
1b1c72550d141eb6a03b76273fab8324e31ebad2
PHP
kalliopitzimi/HAR-files-project
/user/user_queries.php
UTF-8
5,276
2.703125
3
[]
no_license
<?php include "../config.php"; session_start(); if (isset($_SESSION['username'])) { $username = $_SESSION['username']; // STATISTICS: Last upload if (isset($_GET['data']) && ($_GET['data']) == "last_updated") { //Bring the timestamp from last update $time_query = "SEL...
true
b7f900bcc84c1297acd1a510279d6c6a5225c5ca
PHP
mscamarilla/hillel_php
/home_tasks/task_13/src/Entity/DB.php
UTF-8
1,267
3.0625
3
[]
no_license
<?php namespace Entity; use Service\DbManager; class DB extends DbManager { /** Select article by id * @param int $id * @return array $data */ public function GetArticleById(int $id) { $articles = $this->query("SELECT * FROM articles WHERE id = '" . $id . "'"); if ($artic...
true
451e127ce2083519d854eaeba91be1ef91119ecd
PHP
asbiqalalawi/Kademy
/app/Models/PaymentModel.php
UTF-8
984
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class PaymentModel extends Model { protected $table = "payment"; protected $primaryKey = 'id'; protected $allowedFields = ['no_rekening','nama_rekening','id_user', 'nominal', 'course_id']; public function getPayment($id = false) { i...
true
00f32af208d8f756439580664041d85fbc4f7c3d
PHP
censam/great_american
/Modules/Testimonials/Composers/LatestTestimonialsComposer.php
UTF-8
413
2.53125
3
[ "MIT" ]
permissive
<?php namespace Modules\Testimonials\Composers; use Illuminate\Contracts\View\View; use Modules\Testimonials\Repositories\TestimonialsRepository; class LatestTestimonialsComposer { public function __construct(TestimonialsRepository $testimonials) { $this->testimonials = $testimonials; } public function compose(Vie...
true
c73d1ab5afb528f5f3e7831bd18313c32e1044c2
PHP
putudyatmika/SI-BPSNTB
/fungsi/fungsi_lama.php
UTF-8
5,853
2.53125
3
[]
no_license
<?php //kumpulan fungsi-fungsi require 'fungsi_gencode.php'; function tgl_hari_ini() { global $hari_ini,$hari_english,$nama_bulan; $hari=date('l'); $bln=date('n'); $tgl=date('j'); $tahun=date('Y'); $hari_ini="$hari_english[$hari], $tgl $nama_bulan[$bln] $tahun"; return $hari_ini; } function return_bytes($val) ...
true
a3cdab4475e0a6bc7de38199bcb9b34d654d248e
PHP
exgamer/yii2-core
/replication/mongo/handlers/BaseMongoReplicationHandler.php
UTF-8
6,447
2.59375
3
[]
no_license
<?php namespace core\replication\mongo\handlers; use Yii; use core\replication\base\handlers\BaseReplicationHandler; use yii\db\ActiveRecord; use yii\base\Exception; /** * Base replication handler for mongodb * * * @author CitizenZet <exgamer@live.ru> */ abstract class BaseMongoReplicationHandler extends BaseR...
true
a39d72766b2a406929f75b883f4dcd6e5d816720
PHP
cyclops1007/I-Project-Groep-48
/Website/EenmaalAndermaal/Wachtwoord_vergeten.php
UTF-8
1,753
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Emerson * Date: 5-6-2018 * Time: 11:25 */ include "template.php"; if (!empty($_POST)) { $mailaddress = $_POST['mail']; $hash = hashmail($mailaddress); $subject = "Wachtwoord vergeten"; //title $email = "Hello it seems you forgot your password <br> ...
true
7d1ef85d413618a2f10b3500c3bef785545262a1
PHP
beiyuiu/demo
/JS/06-testJSON.php
UTF-8
276
2.9375
3
[]
no_license
<?php #声明响应消息头 header("Content-Type:application/json"); #声明一个数组 $province=["黑龙江","吉林","辽宁"]; #将数组通过json_encode()转换成JSON格式的字符串 $str=json_encode($province); #将字符串响应给客户端 echo $str; ?>
true
b7566ef43c5adb5ec3a5b257042cf592596c27af
PHP
xhide12/9_34_HiroshiNakano
/list.php
UTF-8
9,219
2.625
3
[]
no_license
<?php require_once 'functions.php'; $pdo = connectDB(); $pdo1 = connectDB(); if ($_SERVER['REQUEST_METHOD'] != 'POST') { // 画像を取得 $sql = 'SELECT * FROM images1 ORDER BY created_at DESC'; $stmt = $pdo->prepare($sql); $stmt->execute(); $images = $stmt->fetchAll(); $sql1 = 'SELECT *...
true
a881fdc183125f55755ceb8cd645e11da3373d0d
PHP
danieldil/PHP-HuffmanCode
/huffman.php
UTF-8
528
2.875
3
[]
no_license
<html> <head> <?php $actual; $myfile = fopen("k.txt", "r") or die("Unable to open file!"); $W = fread($myfile,filesize("k.txt")); echo $W; $arr1 = str_split($W); //print_r($arr1); //populate array with zeros for($i = 0; $i < sizeof($...
true
9efaaf285a7abb2c44c4f943693fa5064c67aac9
PHP
helmut/forms
/src/Utility/Str.php
UTF-8
441
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Helmut\Forms\Utility; class Str { public static function snake($var) { if ( ! ctype_lower($var)) { $var = preg_replace('/\s+/', '', $var); $var = strtolower(preg_replace('/(.)(?=[A-Z])/', '$1'.'_', $var)); } return $var; } public stati...
true
5fd15e8dc2f6069c874650f22a974fd2e90c9d47
PHP
DFAU/bernard
/src/Envelope.php
UTF-8
904
3.09375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Bernard; /** * Wraps a Message with metadata that can be used for automatic retry * or inspection. */ final class Envelope { private $message; private $class; private $timestamp; /** * @param Message $message */ public function __construct(Message $message) { ...
true
f3a1d73a62a0396a93f8e10deae3800249650f05
PHP
vm217/leftover_killer
/tests/GetRecipesDetailsTest.php
UTF-8
3,821
2.640625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; require __DIR__ . "/../classes/getRecipeDetails.php"; /** * @covers \GetRecipeDetails * */ class GetRecipesDetailsTest extends TestCase { protected static $RecipeModel; protected function setUp(): void { // please change it as your local or remote ...
true
b8171d41dc9a1c4a7bf6bca93cef7aa4c630e04d
PHP
sagikazarmark/tulip-framework
/tulip-framework/core/System/IO/FileNotFoundException.php
UTF-8
323
2.796875
3
[]
no_license
<?php namespace System\IO; class FileNotFoundException extends IOException { public function __construct( $path, $previous = null ) { parent::__construct("The file \"$path\" cannot be found.", EXCODE_FILE_NOT_FOUND, $previous, "An error occoured on the server. Please contact the developers of the application."); ...
true
e15fe2b134a5fb9c05d56ec1b235239ba467fe44
PHP
sunlongv520/laravel-thrift-tasks
/tasks/app/Gdmin/Models/AdminChoices.php
UTF-8
498
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: snower * Date: 16/7/28 * Time: 下午5:00 */ namespace Gdmin\Models; trait AdminChoices { public static function getChoices(){ return new Choices(static::class); } public static function formatChoicesKey($key){ return $key; } public func...
true
5fe488c9682fb1f0684867a1f0d685f324ae4c6b
PHP
Rizalrubyrahman/abizra_kitchen
/app/Http/Controllers/AuthController.php
UTF-8
2,506
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use Validator, Auth; class AuthController extends Controller { public function login(Request $request) { $input = $request->all(); $fieldType = filter_var($request->username, FILTER_VALIDATE_EMAIL) ? 'email...
true
b196938eed96965816212ad83a275655328dd79f
PHP
adilsonfuta/FrontEnd_Covid_Zero
/api/Controlador/usuarios.php
UTF-8
6,019
2.609375
3
[]
no_license
<?php class usuarios{ public static function showDados(){ if (isset($_GET["id"]) && !empty($_GET["id"])) { $id = $_GET["id"]; if(!empty($id)){ $getDadosId = modelo::getDadosIdModelo("usuarios",$id); if (!empty($getDadosId)) { $retorno = array(); $newValue ...
true
4d59b3b6e5dd92bd02ef773423f13ca3428f556e
PHP
NullCodeXx/php-poo
/Rappeljoueur.php
UTF-8
2,212
3.65625
4
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Rappeljoueur * * @author solo */ //Object modele joueur. //La class c'est le moule. class Rappeljoueur...
true
4286ace7f5a348b8e22630325d4625548829a71e
PHP
okandeji1/boq
/app/Http/Controllers/CustomerController.php
UTF-8
2,830
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Customer; use Illuminate\Http\Request; use Ramsey\Uuid\Uuid; use Auth; class CustomerController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $custo...
true
cb2441392a8ffd3db6ecc1ed7d5e6e313d656b6e
PHP
prateekchandan/ninja
/main.php
UTF-8
59,535
2.578125
3
[]
no_license
<?php include 'php/dbconnect.php'; $colleges=[]; function clean($string) { return ''; $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens. return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars. } foreach ($_GET as $key => $value) { $value = str_replace("'", ''...
true
0c241f8e1a5d7c4bb4cc586af15a58776f499159
PHP
radekstepan/Fireside
/fari/Application/ApplicationEnvironment.php
UTF-8
2,803
2.765625
3
[]
no_license
<?php if (!defined('FARI')) die(); /** * Fari Framework * * @copyright Copyright (c) 2008, 2010 Radek Stepan * @license http://www.opensource.org/licenses/mit-license.php The MIT License * @link http://radekstepan.com * @category Fari Framework */ /** * Determines the environment we run under. * *...
true
df1532021749c80b96e3712ed1f76aa103bf5ff6
PHP
pvgomes/biso
/src/Domain/Product/CategoryRepository.php
UTF-8
569
2.765625
3
[ "MIT" ]
permissive
<?php namespace Domain\Product; use Domain\Core; interface CategoryRepository extends Core\RepositoryInterface { /** * List All categories by Market * @param Core\Market $market * @param int $firstResult * @param int $maxResult * @param array $filter * @return array */ publ...
true
8846469404797befe2d4c342618188ff4ddb7429
PHP
cstuller/iu-library-hr-project
/Supervisor Portal/hired.php
UTF-8
1,191
2.65625
3
[]
no_license
<?php /** * Contains the function calls mark applicant as hired in Supervisor Portal * * @author Craig Stuller <cstuller@indiana.edu> */ // External PHP file contains all functions to build page require "pageBuilder.php"; // Initialize everything needed for the page initializePage(); // Build the ma...
true
ee1a4e23bd116b43945551c531e0c3698aa034cd
PHP
robertdigital/wap
/lib/lloydredis.php
UTF-8
4,232
2.828125
3
[]
no_license
<?php define('NL', sprintf('%s%s', chr(13), chr(10))); class RedisException extends Exception(){ public function __construct($msg, $code=0, Exception $prev=null){ $msg = __CLASS__ . ':' . $msg; parent::__construct($msg, $code, $prev); } } class lloydredis { public $host; public $port; private $socket;...
true
30d2eac03eb73e22e3f9499561c262283dc02588
PHP
c3cka/ClanciWeb
/php/class/db.php
UTF-8
433
2.765625
3
[]
no_license
<?php class db{ private $host="localhost"; private $user="root"; private $password="C3cK@1_!0"; private $db="clanciweb"; public $conn; function __construct() { $this->conn = new mysqli($this->host,$this->user,$this->password,$this->db); } } /* $db = new db(); ...
true
5a5f3ba2f13f64a74838fd13e21be81b6605da06
PHP
XAKEPEHOK/LowLevelTelegram
/src/Telegram.php
UTF-8
1,900
2.9375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created for LowLevelTelegram * Date: 22.04.2021 * @author Timur Kasumov (XAKEPEHOK) */ namespace XAKEPEHOK\LowLevelTelegram; use GuzzleHttp\Client; class Telegram { private Client $client; private string $apiKey; private array $handlers = []; private ?int $lastUpdateId = null; ...
true
11e68c402aa5ac881ff167acfe1cb1769b50c792
PHP
asgorobets/TokensExtension
/src/Context/RawTokensContext.php
UTF-8
748
2.5625
3
[ "MIT" ]
permissive
<?php /** * @author Alexei Gorobet <asgorobets@gmail.com> */ namespace Behat\TokensExtension\Context; use Behat\Gherkin\Node\StepNode; use Behat\TokensExtension\Context\TokensContextInterface; /** * Class RawTokensContext. * * @package Behat\TokensExtension\Context */ class RawTokensContext implements TokensC...
true
b0ca4139090682a7d7e1539807d82a85892144e1
PHP
tayduivn/abcxyz
/model/UsersPeer.php
UTF-8
7,392
2.53125
3
[]
no_license
<?php /** * Users * @version $Id$ * @package Model */ require_once dirname(__FILE__) .'/Base/UsersBase.php'; class UsersPeer extends \UsersBase { const DEPOSIT_ERR_LEVEL_4 = 'Tài khoản chưa xác thực'; const DEPOSIT_ERR_LEVEL_7 = 'Email chưa xác thực'; const DEPOSIT_ERR_LEVEL_8 = 'Số điện thoại chưa x...
true
95c8da4549cbbca534e2919523aece0b81534b1c
PHP
Erlesand/alpha-base
/alpha/src/CNavigation/CNavigation.php
UTF-8
6,840
2.65625
3
[ "MIT" ]
permissive
<?php class CNavigation { public static $parent; public static $child; public static function breadcrumb() { $html = "<div id='breadcrumb'>☰ "; if (!empty(self::$parent)) $html .= "<a href='".self::$parent['url']."' title='".self::$parent['title']."'>".self::$parent['text']."</a>" . ' > '; ...
true
8cf302b9c34d7005fc35d64fd8eecce488127d35
PHP
Spenalva1/trabajo-intregrador-laravel
/dhshop/app/Http/Controllers/CategoriesController.php
UTF-8
2,896
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; use App\Product; class CategoriesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $Categories = Categ...
true
046e5a9fbf729c490fee38cf6035cee2fea25333
PHP
arials93/royalwine
/database/migrations/2020_01_20_172918_create_products_table.php
UTF-8
1,550
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
aa09ae3d4570c8421b4e464a543f7db78cf11cae
PHP
yakimov/queue-from
/src/QueueFromGenerator.php
UTF-8
381
2.828125
3
[]
no_license
<?php namespace S25\Queue; class QueueFromGenerator extends QueueFrom { private $object; public function __construct($key, \Generator $object) { parent::__construct($key); $this->object = $object; } public function generate(): void { foreach ($this->object as $object) ...
true
cf19f4d84190c5675d524dc810d89800a39672f1
PHP
ferminfeng/testWorkerman
/helper.php
UTF-8
356
2.546875
3
[ "MIT" ]
permissive
<?php function setLog(string $dirName, string $fileName, $message) { $filePath = __DIR__ . DIRECTORY_SEPARATOR . 'runtime' . DIRECTORY_SEPARATOR . $dirName . DIRECTORY_SEPARATOR . $fileName . '.log'; $message = date('Y-m-d H:i:s', time()) . ' ' . json_encode($message, JSON_UNESCAPED_UNICODE) . "\n\n"; e...
true
e3ebe8660d91fcb1ce9be34113eeb933bef823b4
PHP
nuannuanwu/qtxiaoxin
/protected/backend/models/member/Duty.php
UTF-8
3,824
2.75
3
[]
no_license
<?php /** * This is the model class for table "{{duty}}". * * The followings are the available columns in table '{{duty}}': * @property integer $dutyid * @property string $name * @property integer $state * @property string $creationtime * @property string $updatetime * @property integer $deleted * @property ...
true
8b7ff43e0c09e6ceb89ae8d0b6042d675ef3c9f7
PHP
leedavis81/141015-TECH-TEST-LD
/bin/process.php
UTF-8
1,255
2.578125
3
[]
no_license
<?php // Set the default timezone date_default_timezone_set('Europe/London'); require realpath(__DIR__ . '/../vendor/autoload.php'); require realpath(__DIR__ . '/helper.php'); $service = new \Smart\Service\Email( new \Smart\Service\Adapter\PdoAdapter(parse_ini_file(realpath(__DIR__ . '/../conf/db.ini'))) ); $...
true
c5e7811b6e67f343a7c608b6ed523ec45a694d69
PHP
rulox12/invoicesJunior
/app/Imports/InvoicesImport.php
UTF-8
1,664
2.53125
3
[]
no_license
<?php namespace App\Imports; use App\Entities\Customer; use App\Entities\Invoice; use App\Entities\Seller; use App\Rules\DateHigherToday; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; use Maatwebsite\Excel\Concerns\WithValidation; class InvoicesImport implements ToModel, With...
true
48b4e349b716cf78bb8a06eabfa10eb98c371770
PHP
InsomniaNY/cms
/lib/Cms/Apgdiff.php
UTF-8
4,143
3.0625
3
[]
no_license
<?php namespace Cms; /** * SkyPHP wrapper for apgdiff */ class Apgdiff { /** * Path to apgdiff jar file (apgdiff-2.3.jar) * http://apgdiff.startnet.biz/ * @var string */ public static $jar_path = ''; /** * @var string */ public static $java_version_required = '1.6.0';...
true
25ff01581ee522ef0be9c5d98b88c34c45860b5b
PHP
dejakob/Bay-Area-Bike
/source.php
UTF-8
1,700
3.015625
3
[]
no_license
<?php header('Content-type: text/json'); $params = $_POST; if (isset($params['latitude']) && isset($params['longitude'])) { $json_file = file_get_contents('http://bayareabikeshare.com/stations/json'); $json = json_decode($json_file); $stations = $json->stationBeanList; $outpu...
true
b3490446c6305401ff3238ec0acc5676eb38af5b
PHP
amirzac/mission_apollo
/codebase/src/Model/JourneyParticipant/Entity/ExpectedPrice.php
UTF-8
1,313
2.96875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Model\JourneyParticipant\Entity; use Webmozart\Assert\Assert; class ExpectedPrice { public const ZERO_TEN = '0-10'; public const TEN_FIFTY = '10-50'; public const FIFTY_ONE_HUNDRED = '50-100'; private string $value; public function __construct(strin...
true
a42937d2a993828baaf4a393e075ad25289bee12
PHP
digraph-cms/digraph-core
/src/RichContent/ShortCodesListener.php
UTF-8
7,915
2.65625
3
[ "MIT" ]
permissive
<?php namespace DigraphCMS\RichContent; use DigraphCMS\Config; use DigraphCMS\Content\AbstractPage; use DigraphCMS\Content\Pages; use DigraphCMS\Content\Router; use DigraphCMS\Context; use DigraphCMS\HTML\A; use DigraphCMS\HTML\Text; use DigraphCMS\RichContent\Video\VideoEmbed; use DigraphCMS\RichMedia\RichMedia; use...
true
28dfd43f000c4c437ceac4cbbdf3378b89798b21
PHP
anutka0306/STYLED
/src/Twig/InjectContentImageExtension.php
UTF-8
1,341
2.546875
3
[]
no_license
<?php namespace App\Twig; use Twig\Environment; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; class InjectContentImageExtension extends AbstractExtension { public function getFilters(): array { return [ new TwigFilter('inject_image', [$this, 'injectContentImage'], ['needs_env...
true
fc227fc2bd8a60c2cbe3c04ddccda83b58a0c11c
PHP
pricewaiter/magento
/app/code/community/PriceWaiter/NYPWidget/controllers/CheckoutController.php
UTF-8
6,090
2.703125
3
[ "Apache-2.0" ]
permissive
<?php /** * Controller that serves the checkout_url endpoint used for deals. */ class PriceWaiter_NYPWidget_CheckoutController extends Mage_Core_Controller_Front_Action { /** * Header used to provide feedback about errors. * This is non-spec behavior added as a convenience. */ const ERROR_...
true
bc7a276973e179318707816e4e9907ce6a5009a2
PHP
tequilarapido/consolify
/src/Progress/ProgressHelper.php
UTF-8
971
2.578125
3
[ "MIT" ]
permissive
<?php namespace Tequilarapido\Consolify\Progress; use Symfony\Component\Console\Output\OutputInterface; class ProgressHelper { public static function newProgressInstance($max, $uid, OutputInterface $output) { if (! class_exists($progressClass = config('consolify.progress.concrete_class'))) { ...
true
d7ff10823acf796e92b9d600a24888e040a3a395
PHP
augusto642/farmacia
/classes/Backup.php
UTF-8
3,320
3.140625
3
[ "MIT" ]
permissive
<?php use \Ifsnop\Mysqldump\Mysqldump; class Backup { private $backupFolder; private $maxNumberFiles; private $host; private $database; private $username; private $password; /** * Construtor * * @param string $backupFolder Pasta onde serão armazenados ...
true
0c78cae98e773c508e280af0e65a8f54efcd22d9
PHP
FDSoil/dev_lab_php_oop_curso
/cap012_LaEscuelaYlosCochesEscolares/index.php
UTF-8
1,334
3.109375
3
[]
no_license
<?php require_once 'Persona.php'; require_once 'Perro.php'; require_once 'Gato.php'; require_once 'Escuela.php'; require_once 'CocheEscolar.php'; class Index { public function ejecutar() { /* Micaela tiene un perro */ $persona = new Persona('Micaela', 5); $perro = new Perro('Tito', 'bl...
true
a9b676f32e423f5f06dd6b8830e7dc48fb970457
PHP
sergnochevny/file-share
/backend/models/Company.php
UTF-8
3,546
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use backend\behaviors\CitrixFolderBehavior; use backend\behaviors\HistoryBehavior; use backend\behaviors\NotifyBehavior; use backend\behaviors\VerifyPermissionBehavior; use backend\models\traits\ExtendCompanyFindConditionTrait; use yii\db\Query; use yii\helpers\Inflector; /** * Clas...
true