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
8fff53d7a7e7203fac530ea307c8cd8438c2fd37
PHP
erevan22/wildrider
/sources/config/app.config.php
UTF-8
719
2.5625
3
[]
no_license
<?php /** * Paramètres de connexion * Création : 05/08/2014 * Stephan GIULIANI */ /* Récupération du fichier paramètres */ require("app.parametres.php"); /* Connexion base de données */ $db_name = "wildrider"; $db_user = "root"; $db_password = "troiswa"; //Test sur serveu...
true
cbe066403facf3527ddcee76b589be97747ae0ef
PHP
FastyBird/gateway-node
/src/Models/Keys/KeyRepository.php
UTF-8
1,796
2.59375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types = 1); /** * KeyRepository.php * * @license More in license.md * @copyright https://www.fastybird.com * @author Adam Kadlec <adam.kadlec@fastybird.com> * @package FastyBird:GatewayNode! * @subpackage Models * @since 0.1.3 * * @date 1...
true
8210185859671f1368ba1ca47abd93d44edcbb40
PHP
google-code/acp3
/ACP3/Core/View/Renderer/Smarty/Functions/WYSIWYG.php
UTF-8
1,364
2.515625
3
[]
no_license
<?php namespace ACP3\Core\View\Renderer\Smarty\Functions; use ACP3\Core; use Symfony\Component\DependencyInjection\Container; /** * Class WYSIWYG * @package ACP3\Core\View\Renderer\Smarty\Functions */ class WYSIWYG extends AbstractFunction { /** * @var \Symfony\Component\DependencyInjection\Container ...
true
891675325700bd031ec7c0ce26271e32d5b66077
PHP
oscarotero/psr7-unitesting
/src/Html/Count.php
UTF-8
628
2.625
3
[ "MIT" ]
permissive
<?php namespace Psr7Unitesting\Html; use Symfony\Component\DomCrawler\Crawler; use Psr7Unitesting\Utils\KeyValueConstraintTrait; class Count extends AbstractConstraint { use KeyValueConstraintTrait; public function toString() { return sprintf('has %d elements matching with the selector "%s"', $t...
true
3a7d72a2f249127d95fd263050bef9ac24ab0cf2
PHP
garagepoort/BiblioMania
/app/service/filter/BookCountryFilter.php
UTF-8
1,304
2.6875
3
[ "MIT" ]
permissive
<?php use Bendani\PhpCommon\FilterService\Model\OptionsFilter; use Bendani\PhpCommon\Utils\StringUtils; class BookCountryFilter implements OptionsFilter { /** @var CountryService $countryService */ private $countryService; /** * BookCountryFilterHandler constructor. */ public function __con...
true
fff668612395c06665821963054fb87121f93cb3
PHP
tatsuya-yoshikawa/bbs
/models/PostRepository.php
UTF-8
13,221
2.796875
3
[]
no_license
<?php class PostRepository { const MESSAGE_MAX_IMAGE_SIZE = '2MB'; protected $pdo; public function __construct($pdo) { $this->pdo = $pdo; } public static function getColors() { return [ 'red' => '赤', 'blue' => '青', 'yell...
true
32fc0c6b444ad59e998f42bb355ffecfd7b13dbf
PHP
PosUpIoT/LonguinusApp
/application/models/User_model.php
UTF-8
706
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class User_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_users() { $query = $this->db->query('SELECT * FROM users'); $users = $query->result_array(); return $users; } public fu...
true
05e8d8bf932730bb657c8dd1a66b47eb76d9e4e3
PHP
tzyluen/cms
/cms.server/crimes/Convict.inc
UTF-8
472
3.15625
3
[]
no_license
<?php class Convict { private $id; private $fname; private $middle; private $lname; private $age; private $address; public function __construct($id, $fname, $middle, $lname, $age, $address) { $this->id = $id; $this->fname = $fname; $this->middle = $middle; $this->lname = $lname; $this...
true
b8bcb61155c0fc7bff2363d1b68aa0d69d23914d
PHP
whangdr3/uct
/uct/view.php
UTF-8
1,653
2.703125
3
[]
no_license
<html> <head> <title>Edit Data</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> </head> <body> <div class="container pt-5"> <?php incl...
true
0e8d26e3ba37aee9f42c9ce614f36c97529e1c74
PHP
Wisembly/sfBalloon
/apps/frontend/lib/form/SimpleUserForm.class.php
UTF-8
766
2.65625
3
[]
no_license
<?php class SimpleUserForm extends sfGuardUserForm { public function configure() { parent::configure(); $this->useFields(array('first_name', 'last_name', 'email_address', 'password')); $this->setWidget('password', new sfWidgetFormInputPassword(array(), array('autocomplete' => 'off'))); $th...
true
2d4657024f6e57db6f6b44bfdb14f2c8fe56ddca
PHP
roddy60/roddy60.github.io
/projects/a7.build-a-javascript-calculator/index.php
UTF-8
1,890
2.84375
3
[]
no_license
<?php /* This program is used during development, as a wrapper for index.xhtml. Its purpose is to defeat the browser's caching of certain CSS and JavaScript files. */ const NO_CACHE_BUST_CLASS = 'no-cache-bust'; const XHTML_FILE = __DIR__ . '/index.xhtml'; libxml_use_internal_errors(TRUE); $doc = new DomDocume...
true
fae96b93626e241b338861058d730f48eed87892
PHP
Ditmar/school
/application/libraries/captcha.php
UTF-8
2,041
2.71875
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /* * this class is created by: mohammad tareq alam * email: tareq.mist@gmail.com * web:commitmentsoft.com * blog: tareqalam.wordpress.com */ class Captcha { var $CI = null; function Captcha() { $this->...
true
89f7acfb994fa7a9cbe85fd01d29646fa1a2624c
PHP
inabahtrg/KalturaServerCore
/api_v3/lib/types/KalturaWidget.php
UTF-8
2,442
2.609375
3
[]
no_license
<?php /** * @package api * @subpackage objects */ class KalturaWidget extends KalturaObject implements IFilterable { /** * @var string * @readonly * @filter eq,in */ public $id; /** * @var string * @filter eq */ public $sourceWidgetId; /** * @var string * @readonly ...
true
24248c4943e6c10616d143bf9606eb83dcd347f1
PHP
voter101/renting-berlin
/src/phalcon-cli/models/Commands/MonitorCommand.php
UTF-8
2,007
2.796875
3
[]
no_license
<?php /** * This file is part of the PHP Telegram Bot example-bot package. * https://github.com/php-telegram-bot/example-bot/ * * (c) PHP Telegram Bot Team * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * User "/echo" comm...
true
d53a77cec7493275ee6e2a196971efa8a71ed569
PHP
fernetass/php
/gordo/enviar1.php
UTF-8
852
2.5625
3
[]
no_license
<?php session_start(); require_once 'funciones/validaciones.php'; $nombre=$_POST['nombre']; $apellido=$_POST['apellido']; $edad=$_POST['edad']; $_SESSION['imp']=$_POST; $errores=array(); if (!ctype_alpha($nombre) || (strlen($nombre)>10)|| $nombre=="") { $errores[]=true; $_SESSION['error1']="el nombre debe ser sol...
true
cb6a6b8bdfaa0bc55d821602d79a60e784f351f3
PHP
alexyves/SiberianCMS
/lib/Siberian/Design.php
UTF-8
5,219
2.75
3
[]
no_license
<?php /** * Class Siberian_Design * * @version 4.1.0 * * Adding inheritance system in the design folders * */ class Siberian_Design { public static $design_cache = array(); public static $design_codes = array(); public static $editions = array( "sae" => array("sae", "local"), "mae"...
true
81bb6dd020ebaefadda6ae34642c20271ba9367a
PHP
ranjan1703/HPEassignmentcode
/even.php
UTF-8
695
3.796875
4
[]
no_license
<html> <body> <h3> To check given number is Odd or Even PHP</h3> <form action="" method="post"> <label>Enter a number</label><input type="text" name="number" /> <input type="submit" /> </form> </body> </html> <?php if($_POST){ $number = $_POST['number']; //check if the enter value is a number or throw an ...
true
b648dd3d410f7eae25cbade081ac4ead7fe119de
PHP
A-1198/building-database-applications-in-php-Coursera
/week5/crud/delete.php
UTF-8
1,355
2.921875
3
[]
no_license
<?php require_once "pdo.php"; session_start(); if (isset($_POST['delete']) && isset($_POST['user_id'])) { $sql = "DELETE FROM users WHERE user_id = :id"; $statement = $pdo->prepare($sql); $statement->execute(array( ":id" => $_POST["user_id"] )); $_SE...
true
130bbb5e2c8bafeb91001d589b90939dbc1f0ec2
PHP
sahibalejandro/dev-releases-bot
/app/Conversations/AddRepositoryConversation.php
UTF-8
2,514
2.546875
3
[]
no_license
<?php namespace App\Conversations; use App\Repository; use App\RepositoryTags; use Mpociot\BotMan\Answer; use Mpociot\BotMan\Conversation; use App\Jobs\ReleaseNotification; use App\Exceptions\RepositoryNotFound; class AddRepositoryConversation extends Conversation { protected $additionalParameters = [ 'p...
true
0c6732348f3d29192000e1b85496e0625872a1e2
PHP
JulietaAtanasova/php-mvc
/Models/Picture.php
UTF-8
3,076
2.984375
3
[]
no_license
<?php namespace PhotoAlbum\Models; use PhotoAlbum\Repositories\PictureRepository; class Picture { /** * @var int */ private $id; /** * @var string */ private $name; /** * @var string */ private $url; /** * @var string */ private $description;...
true
507e4f6d9f317604fa24aaf95b0522db7cc6ab55
PHP
rizkyL/ca-sdk
/src/models/Representation.php
UTF-8
1,273
3.046875
3
[]
no_license
<?php class Representation { private $primaryKey; private $primary; private $originalFilename; private $versions = array(); private $annotations = array(); private $mimeType; public function __construct($options = array()) { $this->primaryKey = $options['representation_id']; ...
true
2f1f3d748c13aa9bd9ba137b454f850bdb9c4f9d
PHP
lukasbachlechner/halla-store
/app/Controllers/ProductController.php
UTF-8
4,324
2.65625
3
[]
no_license
<?php namespace App\Controllers; use App\Models\Product; use Core\Config; use Core\Router; use Core\Session; use Core\Validator; use Core\View; /** * Class ProductController * @package App\Controllers */ class ProductController { private ImageController $imageController; public function __construct() ...
true
daaf73a1bc9abe2e41bd72706fb9c1643824d3e2
PHP
red-robots/brackett-flagship
/index.php
UTF-8
5,328
2.515625
3
[]
no_license
<?php /** * The main template file * * */ get_header(); ?> <?php // Query the Post type Slides $querySlides = array( 'post_type' => 'slides', 'posts_per_page' => '-1', 'orderby' => 'menu_order', 'order' => 'ASC' ); // The Query $the_query = new WP_Query( $querySlides ); ?> <?php // The L...
true
5b93b97813c91ff5f306ca37001f59b7bbd274e5
PHP
strifejeyz/framework
/kernel/Route.php
UTF-8
1,282
3.234375
3
[ "MIT" ]
permissive
<?php use Kernel\Engine; /** * Class Route */ abstract class Route extends Engine { /** * This method will get the route url * get('route.name -> /foo/bar') * Route::get('route.name.here') * output: /foo/bar * * @param $route * @return mixed */ public static function ...
true
b1d00aa01bc82ebf38e7aa9eac58f0d7ba6bef19
PHP
NicktheGeek/genesis-style-select
/admin.php
UTF-8
1,964
2.515625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ add_action( 'admin_menu', 'ntg_add_style_settings_box', 20 ); function ntg_add_style_settings_box() { global $_genesis_admin_settings; add_meta_box('genesis-theme-settings-style-select', __('Sty...
true
cfb74efd4af5384081dea0a061686ac1f63d1c87
PHP
jonathansc92/softblue
/PHP7/StringsFunctions/exercise03.php
UTF-8
282
3.671875
4
[]
no_license
<?php // Create a function look like the function strposwithout using it function pos(string $string) { $result = ""; for ($x = strlen($string) - 1; $x >= 0; $x--) { $result .= substr($string, $x, 1); } return $result; } echo pos("Exemplo de string"); ?>
true
a4ff4597a8081b092bb17acf7365fc6e9899974a
PHP
phacility/phabricator
/src/applications/phurl/query/PhabricatorPhurlURLQuery.php
UTF-8
2,199
2.609375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class PhabricatorPhurlURLQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $names; private $longURLs; private $aliases; private $authorPHIDs; public function newResultObject() { return new PhabricatorPhurlURL(); } public function withIDs...
true
5196adda412a247dd4c09a5e95cbb133a907d90d
PHP
mohamednagy/Permissions-Handler
/src/Migrations/migrations.php
UTF-8
3,271
2.53125
3
[ "MIT" ]
permissive
<?php use Doctrine\Common\Inflector\Inflector; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserPermissionsMigrations extends Migration { /** * @var array */ private $tables; /** * __construct. * * @return void */ pu...
true
9ff0b6f40a69cc5b67523c237e6c5265cafc2678
PHP
ingenerator/form
/src/Renderer/FormElementRenderer.php
UTF-8
3,583
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @author Andrew Coulton <andrew@ingenerator.com> * @licence proprietary */ namespace Ingenerator\Form\Renderer; use Ingenerator\Form\Criteria\FieldCriteriaMatcher; use Ingenerator\Form\Element\AbstractFormElement; use Ingenerator\Form\Element\Field\AbstractFormField; use Ingenerator\Form\Form; use...
true
7463635f11afc94641234df49e8f0df2a46891d9
PHP
trashtoy/PEACH2
/src/Peach/DF/JsonCodec/StructuralChar.php
UTF-8
3,846
2.953125
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) 2015 @trashtoy * https://github.com/trashtoy/ * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to...
true
7f95abbff12fd68277a1e50920fe814813addc8a
PHP
AlexanderAndreev94/test_project1.1
/test/migrations/m170708_160928_create_categoryTree_table.php
UTF-8
918
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `categoryTree`. */ class m170708_160928_create_categoryTree_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('categorytree', [ 'id' => \yii\db\Schema::TYPE_INTEGER . 'NOT...
true
26290fdc3e073bebb8389599742ac86110fe6b80
PHP
kkMatt/ProgrammingAssignments
/NFQ-Challenge/include.api.php
UTF-8
1,714
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: KestutisIT * Date: 2014/11/27 * Time: 2:29 AM */ // Read calls $apiCommand = Flight::request()->query->command; $apiData = Flight::request()->query->command; // Set default output $returnedData = ""; // DB: get new instance $db = Flight::db(); // Depending on the call...
true
8c2a0c766eb8411d0d1c84765d273991861ca2ee
PHP
Umudo/slim-base
/App/Base/Task.php
UTF-8
1,364
2.609375
3
[]
no_license
<?php namespace App\Base; use App\ConnectionManager\RedisManager; use App\Helper\Container; use App\Interfaces\Task as TaskInterface; abstract class Task implements TaskInterface { private $rk; private $rk_timeout; /** * @return bool */ abstract public function isActive() : bool; /** ...
true
dc6381870712d3e41cfe51009217b09fa16f888e
PHP
dittto/router
/Route/Tests/RouteNodeArgumentsTest.php
UTF-8
1,521
2.703125
3
[]
no_license
<?php namespace Route\Tests; use Route; /** * Class RouteNodeArgumentsTest * Tests that RouteNodeArguments is working * * @package Route\Tests */ class RouteNodeArgumentsTest extends \PHPUnit_Framework_TestCase { /** * Tests the RouteNodeArguments() can be instantiated */ public function test...
true
d04604f252f68f01477ab9fe26a0bfe49002607e
PHP
manf11/belajar-web-simpan-data
/controllers/index.php
UTF-8
372
2.71875
3
[]
no_license
<?php require_once('database.php'); // disini kita ambil semua kodingan yang ada di database // pertama siapin query nya dulu $sql = "SELECT * FROM product"; $query = mysqli_query($connection, $sql); $products = []; while($product = mysqli_fetch_assoc($query)){ $products[] = $product; } require_once('views/in...
true
d592daa618692b88d492c7620fec9f57b9c64551
PHP
NickoBrown/Web-Development
/Project/userlist.php
UTF-8
1,872
2.515625
3
[]
no_license
<!-- Nicholas Brown 30032159 Activity 3 --> <head> <link rel="stylesheet" href="style.css"> </head> <nav> <h2> <a href="topten.php">Top 10</a> <a href="index.php">Movie Search</a> </h2> </nav> <body> <header> <h1>User List</h1> ...
true
225964dc30628f0b335e1c0680bccb0f210e1cea
PHP
EddyArellanes/chemicalquery
/application/controllers/classes/functions.php
UTF-8
1,565
2.796875
3
[]
no_license
<?php function crypt_pass($password, $digito = 9) { $set_salt = '/1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; $salt = sprintf('$2x$%02d$', $digito); for($i = 0; $i<22; $i++) { $salt .= $set_salt[mt_rand(0, 62)]; } return crypt($password, $salt); } function encriptar($cadena, $clave = "una ...
true
cbf87310b3e1dedbbf31fa0331145f6979c53246
PHP
webforge-labs/cms
/src/php/Webforge/Doctrine/Test/Entities/CompiledUser.php
UTF-8
1,531
2.796875
3
[ "MIT" ]
permissive
<?php namespace Webforge\Doctrine\Test\Entities; use Doctrine\ORM\Mapping as ORM; /** * Compiled Entity for Webforge\Doctrine\Test\Entities\User * * To change table name or entity repository edit the Webforge\Doctrine\Test\Entities\User class. * @ORM\MappedSuperclass */ abstract class CompiledUser { /** ...
true
89940225e797c9bab3e469ccb1abf2d2fac8a645
PHP
birdshark/phalcon_multimodule_example
/app/common/models/RoleAdmin.php
UTF-8
1,835
2.734375
3
[]
no_license
<?php namespace Application\Common\Models; class RoleAdmin extends ModelBase { /** * * @var integer * @Primary * @Column(column="admin_id", type="integer", length=10, nullable=false) */ public $admin_id; /** * * @var integer * @Primary * @Column(column="role_...
true
0fd0580e1757a8af3a3bd97a0eee8fe050299a87
PHP
loveyu/Linger
/sys/core/lib/pcache.php
UTF-8
2,011
2.734375
3
[]
no_license
<?php namespace CLib; c_lib()->load('interface/PCacheInterface'); /** * 页面缓存类 * Class PCache * @package CLib */ class PCache{ /** * @var PCacheInterface */ private $drive; /** * @var bool 是否启用缓存的状态 */ private $status; /** * @var int 设置的超时时间 */ private $exp = 0; /** * 构造方法 * @param string ...
true
031fdd9f90b5fb42ad9c8184d3fea30f4663c8ee
PHP
hinaloe/tissue
/app/MetadataResolver/FantiaResolver.php
UTF-8
1,488
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\MetadataResolver; use Illuminate\Support\Facades\Log; class FantiaResolver implements Resolver { public function resolve(string $url): Metadata { preg_match("~\d+~", $url, $match); $postId = $match[0]; $client = new \GuzzleHttp\Client(); $res = $client->ge...
true
d2677630d73a8b080c4f9395bfe8eb60746741c6
PHP
123lens/postnl-rest-api-client
/src/Messages/Requests/PostalcodeCheckRequest.php
UTF-8
2,917
2.8125
3
[ "MIT" ]
permissive
<?php namespace Budgetlens\PostNLApi\Messages\Requests; /** * Postalcode Check Request * * ### Example * <code> * $request = $client->checkout()->postalcodeCheck(); * $request->setPostalcode('1000AA') * $request->setHouseNumber(1); * $response = $request->send(); * $data = $response->...
true
9546c59afc800565a5196b7d44036942bade6225
PHP
alex687/SoftUni-Homeworks
/phpHomework/PHP Flow Control/PrimesInRange.php
UTF-8
927
3.75
4
[]
no_license
<?php function isPrime($number) { for ($i = 2; $i <= sqrt($number); $i++) { if ($number % $i == 0) { return false; } } return true; } function checkPrimeRange($start, $end) { for ($i = $start; $i <= $end; $i++) { if (isPrime($i)) { echo "<strong>{$i}, </s...
true
2181395949fc02b99509a707c4452f3e0a1e8376
PHP
MimaTomis/yii2-sitemap-generator
/src/SitemapGenerator/Component/SitemapGeneratorComponent.php
UTF-8
3,584
2.921875
3
[]
no_license
<?php namespace SitemapGenerator\Component; use SitemapGenerator\Extractor\CompositeDataExtractor; use SitemapGenerator\Extractor\DataExtractorInterface; use SitemapGenerator\Factory\GeneratorFactoryInterface; use SitemapGenerator\Factory\MultipleGeneratorFactory; use SitemapGenerator\Factory\SimpleGeneratorFactory; u...
true
3eec0ca8d2b90e5289fb6fa69d56d14af44cee56
PHP
mgufrone/google-charts
/tests/CalendarChartTest.php
UTF-8
1,287
2.609375
3
[]
no_license
<?php class CalendarChartTest extends WorkbenchTestCase { public function testBasic() { $options = ['xAxis'=>['title'=>'Hello World']]; $data = [ [ strtotime("2012-3-13"), 37032 ], [ strtotime("2012-3-14"), 38024 ], [ strtotime("2012-3-15"), 38024 ], [ strtotime("2012-3-16"), 38108 ], [ strtotime(...
true
958143f2f0a9a1e95371850d8e92cc03d60f8b3f
PHP
danielsalgadop/utils-1
/src/Lib/Json/Conditionally/Json.php
UTF-8
1,248
2.71875
3
[ "MIT" ]
permissive
<?php namespace Stopsopa\UtilsBundle\Lib\Json\Conditionally; use Stopsopa\UtilsBundle\Lib\AbstractApp; use Stopsopa\UtilsBundle\Lib\Json\Pretty\Json as PrettyJson; use Exception; /** * Warunkowy json. */ class Json { public static function encode($data, $options = 0, $depth = 512) { if ($data === f...
true
8e3f9fa1724867ea49010e873cf375b5a03f3399
PHP
dcotta/code-books
/walace-php5-conceitos/Capitulo 21/class_HTML.inc
ISO-8859-1
8,375
2.828125
3
[]
no_license
<?php class HTML { /* Atributos privativos */ private $html; private $att; private $text; private $tipostag; private $_idtipo; private $_tagid; private $_flgend; /* Contrutor */ function __construct($tipo=0,$att=Array(),$end=FALSE) { $this->html = Array(); ...
true
af149e2e161b00440e73ed84e97ebb7a7f4f7739
PHP
roeltz/mt
/app/framework/data/core/Field.php
UTF-8
395
2.875
3
[]
no_license
<?php namespace data\core; class Field { public $name; public $collection; function __construct($name, Collection $collection) { $this->name = $name; $this->collection = $collection; } function __toString() { $field = $this->name; $collection = $this->collection->alias ? $this->collection->alia...
true
bfa35600edc95410ef27cdf968e86ba277bad0d8
PHP
AlexEvesDeveloper/hl-stuff
/hl-framework/rrp/RRP/Common/PropertyLetTypes.php
UTF-8
787
2.84375
3
[]
no_license
<?php namespace RRP\Common; /** * Class PropertyLetTypes * * @package RRP\Common * @author April Portus <april.portus@barbon.com> */ class PropertyLetTypes { /** * Get Reference Types * * @return array */ public static function getPropertyLetTypes() { return array( ...
true
39fb5d2254a04151584d7856d25aea7a7a44c961
PHP
hiqdev/hipanel-module-finance
/src/forms/DomainTariffForm.php
UTF-8
4,348
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Finance module for HiPanel * * @link https://github.com/hiqdev/hipanel-module-finance * @package hipanel-module-finance * @license BSD-3-Clause * @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/) */ namespace hipanel\modules\finance\forms; use hipanel\modules\finance\logic\In...
true
336b109a7b20ae176be5fef9dd2a12a9b8ae6522
PHP
sankarsanz/api
/db/db.php
UTF-8
9,113
3.09375
3
[ "Apache-2.0" ]
permissive
<?php class DB { /** * Method to connect mysql database and select database * @return void */ function __construct() { global $db; $this->db_conn = mysql_connect(DB_HOST, DB_USER, DB_PASS); if ($this->db_conn) { if (!mysql_select_db(DB_NAME)) { ...
true
c89d67761d523461c90d90b56039009d0d872a2c
PHP
Keya53/Sec-Student-Management-System
/students.php
UTF-8
2,255
2.59375
3
[]
no_license
<?php include "header.php"; ?> <?php $year = $_GET['year']; ?> <h4>Sylhet Engineering College</h4> <h5>Student information: <span class="key-color"> <?php if ($year == 1) echo "First Year"; else if ($year == 2) echo "Second Year"; else if ($year == 3) ...
true
72f40921f601ac1cf810e73acd3d94722e450b5d
PHP
crouchingtigerhiddenadam/magdaldalan
/message/_send.php
UTF-8
1,276
2.625
3
[]
no_license
<?php require_once '../config.php'; if ( !isset( $_SESSION ) ) { session_start(); } $sender_user_id = $_SESSION[ 'user_id' ]; if ( $_SERVER[ 'REQUEST_METHOD' ] === 'POST' ) { $content_value = htmlentities( $_POST[ 'content' ] ); if ( empty( $content_value ) ) { $is_valid = false; } $recipient_user_...
true
fea5d0da8232ca12b06e19564e64123e3bd73293
PHP
werd2000/CronosGit
/Modelos/PacientesModelo.php
UTF-8
2,657
2.828125
3
[]
no_license
<?php //require_once BASE_PATH . 'Modulos' . DS . 'Paciente' . DS . 'Modelos' . DS . 'paciente.php'; require_once BASE_PATH . 'Modulos' . DS . 'Paciente' . DS . 'Modelos' . DS . 'Paciente.php'; /** * Clase Modelo Paciente que extiende de la clase Modelo */ class Modelos_pacientesModelo extends App_Modelo { priv...
true
82832b985bff5a675fbb550365a4a4e18ca83323
PHP
kheniparth/SwiftMealOrderSystem
/items/ingredient.php
UTF-8
2,942
3.046875
3
[]
no_license
<?php session_start(); include_once '../dbconfig.php'; //get all ingredients from the database function getAllIngredients(){ $result = []; try{ //get global database connection global $db_con; //create and execute select query $stmt = $db_con->prepare("SELECT * FROM Item_master...
true
51ecca0e8b24692ea35910a8c2a343de9d529c9b
PHP
alari/ring
/Apps/Ring/Ctr/Tpl/Admin/User.phps
UTF-8
2,776
2.5625
3
[]
no_license
<?php class R_Ctr_Tpl_Admin_User extends R_Ctr_Template { /** * Form with editable user fields * * @var O_Form_Handler */ public $form; /** * Current user * * @var R_Mdl_User */ public $user; /** * Query with available user roles * * @var O_Dao_Query */ public $rol...
true
b866f484da0efc543154cd007d627f309d354527
PHP
cwinchell2883/winchelldesign.com
/minimizer/user3/inc/func.form.php
UTF-8
2,696
2.953125
3
[]
no_license
<?php #### ## Manufacturing Database ## (c) http://winchelldesign.com ## Developed By: Chris Winchell ## ## ## File: func.form.php ## Created: 9-17-2010 ## Updated: -- #### function html_selectbox($name, $values, $selected=NULL, $attributes=array()) { $attr_html = ''; if(is_array($attributes) && !empty($attrib...
true
dc7efe8cbd2ff852ef58999e3e8b563e38dd7961
PHP
ikram220999/Boling-club-membership-system
/boling/q4b.php
UTF-8
399
3.421875
3
[]
no_license
<?php $text = " How can I cook rice in a clean round pot? "; echo strlen ($text). "<br>"; $text = trim ($text); echo $text ."<br>"; echo strtoupper ($text). "<br>"; echo strtolower ($text) . "<br>"; $text = str_replace ("can", "round", $text); echo $text . "<br>"; echo substr ($text, 2, 6). "<br>"; var_dump (...
true
08f94486332331ebbafa955503d0c2a68ea5be28
PHP
inphinit/framework
/src/Inphinit/Dom/Document.php
UTF-8
13,947
2.75
3
[ "MIT" ]
permissive
<?php /* * Inphinit * * Copyright (c) 2023 Guilherme Nascimento (brcontainer@yahoo.com.br) * * Released under the MIT license */ namespace Inphinit\Dom; use Inphinit\Helper; use Inphinit\Storage; class Document extends \DOMDocument { private $xpath; private $selector; private $internalErr; pri...
true
b75e0794703b1a04292f67e52ac41f8046e79aaa
PHP
devcopas/session
/shoping-cart/cart.php
UTF-8
1,471
2.9375
3
[]
no_license
<?php session_start(); include 'connection.php'; $cart = isset($_SESSION['cart']) ? $_SESSION['cart'] : []; $totalItem = 0; foreach ($cart as $item) { $totalItem += $item['quantity']; } ?> <html> <head> <title>Shopping Cart - Cart</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="co...
true
7a263d58120ae6970e08f2ea4f78ba25a6618fdf
PHP
IssamSisbane/GestionfestivalcannesPHP
/Modele/MembreJuryManager.php
UTF-8
4,325
2.859375
3
[]
no_license
<?php class MembreJuryManager extends Model { /** * Ajoute en base de données l'objet passé en paramètre * @param MembreJury $MembreJury */ public function ajouterMembreJury(MembreJury $MembreJury) { $req = $this->getBdd()->prepare("INSERT INTO `membre_jury`(`id`, `nom`, `prenom`, `d...
true
2216ed82cf51a5e0aa5138814b8e078e67532ce8
PHP
redakasbi/PFE
/etudiant.php
UTF-8
318
2.546875
3
[]
no_license
<?php echo"espace d'etudiant"; session_start(); // On appelle la session // On affiche une phrase résumant les infos sur l'utilisateur courant echo 'Pseudo : ',$_SESSION['Nom'],'<br /> Age : ',$_SESSION['Prenom'],'<br /> Sexe : ',$_SESSION['DateN'],'<br /> Ville : ',$_SESSION['Email'],'<br />'; ?>
true
382ad2aaaba4b3e910cc8a9bef4fa730495c94f2
PHP
exesser/cms-bundle
/Api/V8_Custom/Service/EventDispatcher.php
UTF-8
2,944
2.640625
3
[]
no_license
<?php namespace ExEss\Bundle\CmsBundle\Api\V8_Custom\Service; use Psr\Container\ContainerInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * extend the symfony event dispatcher and add lazy initialization of event subscribers */ class EventDispatcher extends \Symfony\Component\EventDis...
true
da71a12a54bb62ec206f2b8409e76db29ea81a3e
PHP
richtermarkbaay/MEDTrip
/src/HealthCareAbroad/SearchBundle/Services/SearchParameterBag.php
UTF-8
6,830
2.609375
3
[ "MIT" ]
permissive
<?php namespace HealthCareAbroad\SearchBundle\Services; use Symfony\Component\HttpFoundation\ParameterBag; //TODO: clean up /** * The behavior of this class differs from ParameterBag in that it * only allows a defined group of parameter names to be set. * This adds special processing and transformation of the passe...
true
2ff647e8ba28c6160bbb80302db59c49494a3678
PHP
evgenyvmi/simple-blog-codeigniter
/application/controllers/blog.php
UTF-8
1,909
2.546875
3
[ "MIT" ]
permissive
<?php class Blog extends CI_Controller{ public function index() { $data['title'] = 'Posts'; $data['users'] = $this->user_model->get_users(); $data['posts'] = $this->blog_model->get_posts(); $this->load->view('templates/header'); $this->load->view('blog/index', $data); $this->load->view('template...
true
a330a48f68b159798684d767e247153167aea767
PHP
khavelka20/gamer_kin
/app/Services/YouTubeService.php
UTF-8
484
2.5625
3
[]
no_license
<?php namespace App\Services; use Alaouy\Youtube\Youtube; class YouTubeService { private $key = 'AIzaSyDaN4NFxNxBGi011jwSWPmvTN89OUzBM-E'; public function findVideoByName($name) { $youtube = new Youtube($this->key); $results = $youtube->searchVideos($name . ' PC gameplay'); return $...
true
00367049679f79c82bb9aec4696639b771453bb0
PHP
MikeLks57/foodtruck
/w/app/Model/IngredientsModel.php
UTF-8
1,379
2.84375
3
[]
no_license
<?php namespace Model; use W\Model\Model; use W\Model\ConnectionModel; use PDO; class IngredientsModel extends Model { public function getIngredientsByIdProduct($idProduct) { $pdo = ConnectionModel::getDbh(); $sql = 'SELECT ingredients.id as ingredientId, ingredients.name as ingredientName FROM ingredients INN...
true
2cc0a9d8ead960df7109a0ed36af2bdd28d0a63a
PHP
ihsonnet/php-bootstrap-CRUD
/index.php
UTF-8
2,175
2.671875
3
[]
no_license
<?php require_once("header.php"); require_once("database.php"); if(isset($_POST['submit'])){ $name = isset($_POST["name"]) ? $_POST["name"] : ""; $email = isset($_POST["email"]) ? $_POST["email"] : ""; $subject = isset($_POST["subject"]) ? $_POST["subject"] : ""; $messege...
true
47ca3cf133ed93717e8b6132031d7568263a8200
PHP
ripasfilqadar/mppljadi
/cikoro2/application/models/userModel.php
UTF-8
797
2.5625
3
[]
no_license
<?php class Usermodel extends CI_Model { function Usermodel() { parent::__construct(); } function check($username,$password) { try{ $sql = "select * from user where username='".$username."' and password=md5('".$password."')"; $query = $this->db->query($sql); if($query->result()){ return 1; ...
true
b45027d4822695662a87b3ad0074bf848840a11b
PHP
jameBruno/platform-client-sdk-php
/lib/Provider/Genesys.php
UTF-8
2,642
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PureCloudPlatform\Client\V2\Provider; use League\OAuth2\Client\Provider\AbstractProvider; use League\OAuth2\Client\Provider\Exception\IdentityProviderException; use League\OAuth2\Client\Token\AccessToken; use League\OAuth2\Client\Tool\BearerAuthorizationTrait; use Psr\Http\Me...
true
c64c9da16581b1b27f2bce376088e618e7d54976
PHP
patrickthibaudeau/selfserve-kiosk
/classes/String.php
UTF-8
634
3
3
[]
no_license
<?php namespace kiosk; /** * Description of String * * @author patrick */ class LanguageStrings { private $folder; public function __construct($lang = 'en', $file = 'kiosk') { global $CFG; if (file_exists($CFG->rootFolder . '/lang/' . $lang . '/' . $file . '.php')) { $this->f...
true
47d45bcaa55d1d10720e83f4fb0556d000eccfc4
PHP
juniordrumsrmv/emporium
/module/Application/src/Entity/PromotionPrize.php
UTF-8
4,557
2.546875
3
[]
no_license
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** * PromotionPrize * * @ORM\Table(name="promotion_prize") * @ORM\Entity */ class PromotionPrize { /** * @var integer * * @ORM\Column(name="promotion_key", type="bigint", nullable=false) * @ORM\Id * @ORM\Generated...
true
0e1fc8ca76aa54b6353031c3bb364da49fe04925
PHP
Anupma-narang/Advantal
/lib/model/doctrine/base/BaseConcursoCategoria.class.php
UTF-8
3,189
2.515625
3
[]
no_license
<?php /** * BaseConcursoCategoria * * This class has been auto-generated by the Doctrine ORM Framework * * @property string $name * @property integer $concurso_tipo_id * @property string $image * @property integer $orden * @property ConcursoTipo $ConcursoTipo * @property Doctrine_Collection $Concurso * @p...
true
4aa8015db9485b1c097ccd952b5f0d5b8b7a54c9
PHP
Jmiy/i-cache
/tests/Cases/CacheNullStoreTest.php
UTF-8
1,044
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace HyperfTest\Cases; use Illuminate\Cache\NullStore; /** * @internal * ...
true
373efe17b412478bc6926b2f942632b89d4fbcbc
PHP
perlnerd/symfony_journey
/src/AppBundle/Entity/JourneyRepository.php
UTF-8
1,563
2.59375
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\Query\ResultSetMapping; /** * JourneyRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class JourneyRepository extends EntityRepository { /** * runa query ...
true
4fbb3b62212569d7280c31403750cabe283eb7d9
PHP
gintast/broedis
/baisus-array.php
UTF-8
1,147
2.953125
3
[]
no_license
<?php session_start(); $colors = [ 'red', [ 'red1', 'blue1', 'green1', 'yellow1' ], 'blue', [ 'red2', 'blue2', ['red3', 'blue3', 'green3', 'yellow3'], 'yellow2' ], 'green', 'yellow' ]; // _d($colors); $komoda = []; for...
true
764549938f4eb38c2bd9dd3968230f43d3cbce6a
PHP
sandeepchetikam/Angular-project
/Angular/connect-employee.php
UTF-8
1,341
2.671875
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); $servername="localhost"; $username="root"; $password="sandeepchetikam"; $dbase="mydb"; $conn=mysqli_connect($servername,$username,$password,$dbase); if (!$conn) { echo "Connection Problem".mysqli_connect_error($conn); } // first only select what you w...
true
ddb911c55d3dc345a9079d005ba67da9a3e6c1b7
PHP
mist-cloud/my_sample_projectA
/kihon/index2.php
UTF-8
140
2.65625
3
[]
no_license
<?php $a = [1,2,3]; echo "<pre>"; print_r($a); echo "</pre>"; echo "<pre>"; var_dump($a); echo "</pre>"; exit; echo "表示されない"; ?>
true
f36b26cbe57d9c24a697b055cee5bc489721ae8d
PHP
Kostersson/github-security-checker
/src/AlertHandler/AlertHandler.php
UTF-8
1,576
2.953125
3
[ "MIT" ]
permissive
<?php namespace Kostersson\GithubSecurityChecker\AlertHandler; use Kostersson\GithubSecurityChecker\Message\MessageInterface; class AlertHandler implements AlertHandlerInterface { /** * @var MessageInterface */ private $messageInterface; /** * @param MessageInterface $messageInterface ...
true
02861808a530a0f8f0b8668352a8bd56e5a6fa1e
PHP
DavidPaca/Sistemaweb
/extras/buscador.php
UTF-8
1,067
2.546875
3
[]
no_license
<!--require_once './inc/top.php'; $salida = ""; $query = "SELECT * FROM users WHERE username not LIKE '' ORDER BY id LIMIT 5"; if (isset($_POST['consulta'])) { $q = mysqli_real_escape_string($con,$_POST['consulta']); $query = "SELECT * FROM users WHERE id LIKE '%$q%' or first_name LIKE '%$q%' OR username LIK...
true
72e19458ae66ad36c470e8676a88b9376e80dbbe
PHP
carolbarbosa101/Cidades_Digitais
/Model/ClassTipologiaPid.php
UTF-8
419
2.609375
3
[]
no_license
<?php class ClassTipologiaPid { private $cod_pid, $cod_tipologia; function getCod_pid() { return $this->cod_pid; } function getCod_tipologia() { return $this->cod_tipologia; } function setCod_pid($cod_pid) { $this->cod_pid = $cod_pid; } f...
true
7a8a6fdd4b8f8e5f8b0120dad3b7f4ba92e28a04
PHP
AnaHolgado/DWES
/CapituloVI/ej8.php
UTF-8
7,983
2.75
3
[]
no_license
<?php session_start(); if (!isset($_COOKIE["palabras"])){ $_SESSION['diccionario'] = array("gato" => "cat","perro" => "dog", "raton" => "mouse","cerdo" => "pig","elefante" => "elephant", "mofeta" => "skun","mapache" => "racoon","leon" => "lion", ...
true
dd5ee2a29c608dba18c45d36f4b70d88eaf37709
PHP
darhmostafa/loginsystem
/loginsystem/home.php
UTF-8
1,419
2.5625
3
[]
no_license
<?php session_start(); if(empty($_SESSION['userdata'])) { header('LOCATION:index.html'); } else { ?> <html> <head> <link rel="stylesheet" href="style.css"> </head> <body> <?php echo '<h1>welcome to home page</h1>'; echo '<a href="logout.php">logout</a>'; $posts...
true
7ea264371b131ef5aaca1d5f2992e12e28a2d747
PHP
nemundo/framework
/src/App/ModelDesigner/Com/Form/DefaultProjectForm.php
UTF-8
1,146
2.53125
3
[ "MIT" ]
permissive
<?php namespace Nemundo\App\ModelDesigner\Com\Form; use Nemundo\Admin\Com\Form\AbstractAdminForm; use Nemundo\Admin\Com\ListBox\AdminListBox; use Nemundo\App\ModelDesigner\Com\ListBox\ProjectListBox; use Nemundo\App\ModelDesigner\ModelDesignerConfig; use Nemundo\App\ModelDesigner\Project\DefaultProject; class Defau...
true
c71ed0b37483a51583b6879830ffd8b32136376c
PHP
peace098beat/Tweetbox
/php/Speache.php
UTF-8
910
3.3125
3
[]
no_license
<?php /* * Speache.php * * (2016/06/04) Tomoyuki Nohara * */ /*************************************************************************/ /* フォーム処理*/ /*************************************************************************/ function get_speaches( ) { // ファイルの内容を配列に取り込みます。 // この例ではHTTPを通してURL上のHTMLソースを取得します。 $...
true
f3eb8db6c1399c421e94db2cc86f4b6ebe4e196c
PHP
icirlin/Football-Management-App
/database-manager.php
UTF-8
786
2.734375
3
[]
no_license
<?php $servername = "127.0.0.1"; $username = "icirlin"; $password = ""; $dbname = "FootballPlayers"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); if (!$conn) { die("Connection failed: " . $conn->connect_error); } $result = mysqli_query($conn, "SHOW TABLE STATUS"); if (!...
true
7022dbd007b3c501781f3285251cf001c8686eaf
PHP
n-suzuki-actself/actself_problem7
/src/Controller/ReviewsController.php
UTF-8
7,357
2.59375
3
[]
no_license
<?php namespace App\Controller; //use Cake\ORM\TableRegistry; class ReviewsController extends AppController{ public $name = 'Reviews'; public $autoRender = false; /**口コミ助 * 口コミ一覧画面 */ public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response =...
true
fe6daaa15e44be4efbe9ee425be6f3838cd4ec74
PHP
sosaavedra/securecoding
/tools for whitebox/phpteam18/models/SecurePin.php
UTF-8
1,043
3.15625
3
[]
no_license
<?php class SecurePinModel{ public $userId =-1; public $securePin =-1; public function parseSecurePin($securePin){ if(isset($securePin->SecurePin)) $this->securePin = $securePin->SecurePin; if(isset($securePin->UserID)) $this->userId = $securePin->UserID; } } class SecurePin extends Model{ function __...
true
0975b12c34353b9a5c456e76b1d1b2ad8e8a8854
PHP
JeroenSteen/ksmvc
/app/classes/xss.php
UTF-8
215
2.71875
3
[]
no_license
<?php class XSS{ //https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet public function XSS(){ } public static function escape($input){ return htmlentities($input); } }
true
fd80d99967a427451f5480c172692b1ab33e321a
PHP
rvfe/cadastro
/src/Controller/Pessoas.php
UTF-8
3,611
2.515625
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use App\Entity\Pessoa; /** * @Route("/pessoa", name="pessoa_") */ class Pes...
true
5ca229b6c4991d4a6e286255ec0569bde516ae85
PHP
netis-pl/yii2-fsm
/components/StateActionInterface.php
UTF-8
3,723
2.765625
3
[]
no_license
<?php namespace netis\fsm\components; /** * Description here... * * @author Michał Motyczko <michal@motyczko.pl> */ interface StateActionInterface { /** * Return target state * * @return integer */ public function getTargetState(); /** * Loads the model specified by $id and p...
true
314db724011ffd89439606ff56e8ccad7a4ee416
PHP
jyoti2911/twitter_search_block
/modules/twitter_search_block/src/Plugin/Block/TwitterAPIClass.php
UTF-8
1,474
2.578125
3
[]
no_license
<?php /** * @file * Contains \Drupal\twitter_search_block\Plugin\Block\TwitterAPIClass. */ namespace Drupal\twitter_search_block\Plugin\Block; class TwitterAPIClass { /** * function to get the embedded timeline of tweets with given search query value and count */ public function twitter_api($hash_value_...
true
85340d709d51b1fb46a5b286c75df2cc30f51745
PHP
UnbreakableEdu/todos
/funcoes/ex11.php
UTF-8
246
3.734375
4
[]
no_license
<?php function polCm($pol){ $cm=$pol*2.54; return $cm; } print "Digite um número em polegadas: "; $pol = (float) fgets(STDIN); $cm = polCm($pol); print $pol." polegadas equivale a ".$cm." centímetros ";
true
04a1aaec4ef54082b7c2bdfa8e8d23636ad8dc35
PHP
orzy/p3
/src/Session.php
UTF-8
5,048
2.8125
3
[ "MIT" ]
permissive
<?php /** * P3_Session * * require * * P3_Abstract * * @version 3.0.6 * @see https://github.com/orzy/p3 * @license The MIT license (http://www.opensource.org/licenses/mit-license.php) */ class P3_Session extends P3_Abstract { const TYPE_SYS = 'system_session'; const TYPE_APP = 'app_session'; ...
true
95e52f6bf4703c42628069fc9190b3a48e761706
PHP
productsupcom/guzzle-examples
/src/Command/AbstractCommand.php
UTF-8
3,199
2.75
3
[]
no_license
<?php namespace Productsup\Command; use \Exception; use \Symfony\Component\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\Logger\ConsoleLogger; use \Symfo...
true
b337d8a3714832c5dc1f5ab9ddd060ffab7e77f3
PHP
sgh1986915/php-oop-mvc-unbeatablecar
/checkoutfolder/module/motorvehiclecompare/controller/ajaxcomparevehiclescount.controller.class.php
UTF-8
1,696
2.71875
3
[]
no_license
<?php class InvModuleAjaxcomparevehiclescountController extends InvPublicController { public function __construct($obj_db , $obj_session , $view_template , $path_info){ $this->view_title = 'Compare Motor Vehicles'; parent::__construct($obj_db , $obj_session , $view_template , $path_info); $this->obj_motorveh...
true
ac58815c27ebfc85b863357aa8326d3013579bcf
PHP
Toruse/Syo-framework
/includes/syo/filter/int.php
UTF-8
800
3.078125
3
[]
no_license
<?php /** * Класс преобразовывает строку в число */ class Syo_Filter_Int extends Syo_Filter_Abstract { /** * Конструктор. * @param array $param */ public function __construct($param='') { //Устанавливаем имя фильтра $this->_name='int'; //Устанавливаем параметры для ф...
true
2d7c75ef3d059bed087208808f61b900f4274e91
PHP
dreamcampaigns/managesend-php
/src/DataClass/Subscriber/Subscriber.php
UTF-8
3,184
2.703125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Managesend package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Managesend\DataClass\Subscriber; use Managesend\Hydrator\AbstractHydrator; /** * Class BaseSubscriber * @package Ma...
true
5bd2469b2a3be361dfd045e14a30185bcd69ac06
PHP
chadedge/php-bluehornet
/src/MethodResponses/TransactionalListTemplate.php
UTF-8
4,332
2.65625
3
[]
no_license
<?php namespace Dawehner\Bluehornet\MethodResponses; class TransactionalListTemplate extends ResponseBase { /** * {@inheritdoc} */ protected $methodName = 'transactional.listTemplates'; /** * @var int */ protected $templateId; /** * @var string */ protected $fro...
true
f9fb646cadf48e8b940c4b1a0c4e9ff6409ff9a6
PHP
ffgalvao/laravel-task
/app/Services/EntityList.php
UTF-8
1,307
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\Company; use App\Models\Employee; use Illuminate\Contracts\Pagination\LengthAwarePaginator; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Collection; class EntityList { /** * @param bool $inArrayKeyValue * * @return array|Collectio...
true