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
ace2aa5ea799bf4732a1df2f3a16b579fa507ca5
PHP
xuefengyang/PhpFirst
/index.php
UTF-8
2,282
3.09375
3
[]
no_license
<?php setcookie("user","yxf",time()-3600); ?> <!DOCTYPE html> <html> <head> <title></title> </head> <body> <div> <a href="index2.php"> jump </a> <?php // PHP 的保函文件的关键字 include require // 效果一样 但是在处理错误的时候 incline会继续执行 只会翻出 // 警告 require 会立即停止运行 require 'head.php'; ?> </div> <?php function sortArrarTe...
true
dafe0f46d46850e70c0fc32c94dff6ff3418506d
PHP
barttyrant/SiteConf
/Model/Config.php
UTF-8
3,817
2.53125
3
[ "MIT" ]
permissive
<?php App::uses('SiteConfAppModel', 'SiteConf.Model'); /** * Config Model * */ class Config extends SiteConfAppModel { public $displayField = 'key'; public $validate = null; // _prepareValidationRules const TYPE_TEXT = 'SIMPLE'; //short text or numeric const TYPE_FILE...
true
f965a60b840ece04f7ac241bd8ef1037cf91b53c
PHP
judyyang40/PHPWebDemo
/login.php
UTF-8
2,159
2.71875
3
[ "MIT" ]
permissive
<?php extract($_POST); $res = "nologin"; if(isset($enter)) { if(!$username || !$password) { $res = "blank"; } else { if(!($file = fopen("users.txt", "r"))) { echo '<div>Could not open User file for authentication!</div>'; die(); } $res = "wrong"; while(!feof($file)) { $line = fgets(...
true
39283e95f332ffa49a324d38a44f5b8321a72d76
PHP
simonezanfagna/php-hotel-crud
/index.php
UTF-8
3,269
2.578125
3
[]
no_license
<?php include 'functions.php'; $sql = "SELECT id, room_number, floor FROM stanze"; $result = creazioneQuery($sql); include 'layout/head.php' ?> <main class="mt-3"> <div class="container"> <div class="row justify-content-between align-items-center"> <h1 class="d-inline">Stanze dell'hotel</h1> ...
true
4a6e425871756e5d97521010fb772e1666e4c3af
PHP
srleach/inapp-verify
/src/Helpers/AppleApiHelper.php
UTF-8
2,652
2.859375
3
[ "Apache-2.0" ]
permissive
<?php namespace Srleach\InappVerify\Helpers; use Httpful\Mime; use Httpful\Request; use Srleach\InappVerify\Entities\VerifiedReceipt; use Srleach\InappVerify\Errors\Exceptions\IAPServerUnavailableException; use Srleach\InappVerify\Errors\Exceptions\IAPSharedSecretException; /** * Class AppleApiHelper * * @package...
true
c6ff6a5fe764340f9937a7552af55d3bce3eac41
PHP
carlosqnava/galeriaArte
/model/escultura.php
UTF-8
1,886
2.9375
3
[]
no_license
<?php class Escultura { private $pdo; private $idobj; private $estilEscul; private $materialEscul; private $alturaEscul; private $pesoEscul; public function __CONSTRUCT(){ $this->pdo = BaseDeDatos::Conectar(); } public function getidobj() { return $this->ido...
true
c5a3b03859ced896feb31a0d8cc923d2ac0a9ad5
PHP
junichi11/netbeans-php-stubs
/phpstubs/phpruntime/hwapi.php
UTF-8
2,140
2.78125
3
[ "CC-BY-3.0", "Apache-2.0" ]
permissive
<?php namespace { /** * hw_api_attribute クラスのインスタンスを作成する * <p>指定した名前および値を使用して、hw_api_attribute の新しいインスタンスを作成します。</p> * @param string $name <p>属性の名前。</p> * @param string $value <p>属性の値。</p> * @return HW_API_Attribute <p><b>hw_api_attribute</b> のインスタンスを返します。</p> * @link https://php.net/manual/ja/function...
true
42a887abca545085ac59900e54e6df82cad43604
PHP
nishchay/framework
/src/Nishchay/Data/Query.php
UTF-8
32,918
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Nishchay\Data; use Nishchay; use Nishchay\Exception\ApplicationException; use PDO; use PDOStatement; use DateTime; use Nishchay\Data\Connection\Connection; use Nishchay\Utility\StringUtility; use Nishchay\Utility\DateUtility; use Nishchay\Data\Builder\AbstractBuilder; /** * Query class. * * @lice...
true
5ba862df835a7c67d5c01e56702b9da89c97927c
PHP
mestra25/palermo
/modelo/CLASES/producto.php
UTF-8
3,770
2.71875
3
[]
no_license
<?php class producto { private $IdProducto; private $Idcategoria; private $Idsubcategoria; private $Idproveedor; private $Codigo; private $Descripcion; private $Vcosto; private $Venta1; private $Venta2; private $Venta3; private $Venta4; private $Precutil; private $Med...
true
c9d7b89fa4231c91aa2f3509fc17dd23d4b9c920
PHP
chenye2017/yaf_api
/application/controllers/mail.php
UTF-8
1,333
2.515625
3
[]
no_license
<?php class MailController extends Yaf_Controller_Abstract { public function indexAction() { return $this->sendAction(); } public function sendAction() { //接收参数 $submit = $this->getRequest()->getPost('submit', 0); $userid = $this->getRequest()->getPost('userid', ''); ...
true
d0d1225b3329ce47729a8ec1e6c5d88f51b49221
PHP
Backlund79/labb3-plugin-4
/lucky-seven-check.php
UTF-8
1,689
2.734375
3
[]
no_license
<?php /** * Plugin Name: Lucky Seven 777 validator * Author: Emil * */ // register_activation_hook(__FILE__, 'check_for_lucky_seven'); // function check_for_lucky_seven() // { // if (is_plugin_active('labb3-plugin-2/777.php')) { // add_action('update_option_active_plugins', 'deactivate_lucky_seven'); // ...
true
5efedbe25ad543b02ad18c0cee497ddbed358352
PHP
hotvap/need
/sites/all/libraries/php-dynamodb/SimpleAmazonDynamoDB.php
UTF-8
3,625
2.8125
3
[ "MIT" ]
permissive
<?php /** * Simple interface to Amazon DynamoDB API * * @license MIT License * @author Tatsuya Tsuruoka <http://github.com/ttsuruoka> */ class SimpleAmazonDynamoDB { protected $access_key_id; protected $secret_access_key; protected $security_token; protected $endpoint = 'dynamodb.us-east-1.amazonaw...
true
c0096c2fc07e584d3a40edb41c174b45cc345738
PHP
vanlinh1211/SS6_ArrayList
/myListTest.php
UTF-8
449
2.90625
3
[]
no_license
<?php class myListTest extends MyList { public function setMyList($capacity) { $this->count = $capacity; } public function getMyList() { return $this->array; } public function add($index, $item) { array_push($this->array, $item); } public function remo...
true
111e09d0add841e7e5e61d552fc982e04209a0df
PHP
thecodingmachine/security.user-management-ui-interface
/src/Api/RoleDao.php
UTF-8
1,269
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace Mouf\Security\UserManagement\Api; use Mouf\Security\UserService\UserInterface; interface RoleDao { /** * Returns the list of all roles known by the application. * * @return RoleInterface[] */ public function getAllRoles(); /** * @param ...
true
d7b0be77da979927658be3acb9ee5a9ec7ef051f
PHP
tysweezy/laravel-stats
/src/Statistics/ProjectStatistics.php
UTF-8
1,348
2.90625
3
[ "MIT" ]
permissive
<?php namespace Wnx\LaravelStats\Statistics; use Illuminate\Support\Collection; class ProjectStatistics { /** * @var Illuminate\Support\Collection */ protected $components; public function __construct() { $this->components = collect([]); } /** * @param Collection $com...
true
0d3bffe9e4e21bf2b9d4c8086c10e0021d7d5965
PHP
bestit/commercetools-odm
/src/Helper/VariantFinderTrait.php
UTF-8
1,545
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace BestIt\CommercetoolsODM\Helper; use Commercetools\Core\Model\Product\Product; use Commercetools\Core\Model\Product\ProductData; use Commercetools\Core\Model\Product\ProductVariant; /** * Helper to get variants by id or sku * * @package BestIt\CommercetoolsODM\Helper */ t...
true
edcfb00d2ac4b67fc3e2d00bc20e55329a8c57e1
PHP
Csardelacal/PHPAuthServer
/spitfire/io/image/PNGQuant.php
UTF-8
1,674
3.125
3
[ "MIT" ]
permissive
<?php namespace spitfire\io\image; use spitfire\exceptions\FileNotFoundException; use spitfire\exceptions\PrivateException; class PNGQuant { /** * The PNGQuant function will automatically compress a PNG image, taking just the * path as a parameter. Since it will write the file to the exact same location * ...
true
63a646a256a5ea075da607129512774ac22445a2
PHP
13140438775/yii_loan_market
/api/models/requestModels/CreditRequest.php
UTF-8
1,093
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace api\models\requestModels; use Yii; use yii\base\Model; /** * ContactForm is the model behind the contact form. */ class CreditRequest extends Model { public $userId; public $phoneNumber; public $realName; public $phaseCode; public $projectCode; public $bankCard; public $idCard; publ...
true
3358a5870f62147a7e0b23808bdbc9dcbe0fd353
PHP
boyskylake/projectJames
/Authorities/AAddInformation.php
UTF-8
9,165
2.796875
3
[ "MIT" ]
permissive
<?php require_once('../Connections/condb.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValu...
true
247c3af32dabcba5a83ea770f5dd6ee2ef1e9949
PHP
bokarios/helpdesk
/app/Http/Controllers/ChildCategoryController.php
UTF-8
1,009
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Auth; use App\Category; use Illuminate\Http\Request; use Common\Core\BaseController; class ChildCategoryController extends BaseController { /** * Laravel request instance. * * @var Request */ private $request; /** * Help Center category model instance. * * ...
true
e916abecc4f7997810141a61b87804477b7c23d1
PHP
wkdwilliams/Youtube-dl
/Core/View.php
UTF-8
453
2.734375
3
[]
no_license
<?php namespace Core; use Twig\Environment; use Twig\Loader\FilesystemLoader; class View { private static function getTwig(): Environment { $loader = new FilesystemLoader('resources/views', getcwd() . '/../'); return new Environment($loader); } public static function render(string ...
true
6a8e29c7333596cdf61d7f210905f4d48a5a70ae
PHP
arikawashy/codeigniter-twitter-bootstrap
/application/modules/orders/models/orders.php
UTF-8
9,013
2.765625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Model for interacting with the "orders" table. * * @package ORders * @author Jose Consador * @version 1.0.0 * @date 2011-11-19 */ class Orders extends MY_Model { private $_table_name = 'order'; private $_primary_key = ...
true
1814d073a96ae3a6fb690663df8a38057d285253
PHP
k-vijayan/wjaap
/core/Spl/lib/A.class.php
UTF-8
194
2.625
3
[]
no_license
<?php namespace lib; class A { public function __construct () { echo "Class A::__construct()<br>"; } public function test () { echo "A::test()"; } } ?>
true
58dd5b2782ebc216cd0063a7a3bef5da97f6c084
PHP
cojmar/n_engine
/classes/usr/user.php
UTF-8
1,317
2.890625
3
[]
no_license
<?php /* Default user model V 1.0 */ if (!class_exists('n_class')) {include ("n_class.php");} class user extends n_class { //==Magic function __construct() { $this->session_var = "user_".md5(dirname($_SERVER['SCRIPT_FILENAME'])); $this->restore_data(); } function __destruct() { $this->store_data(); } //==...
true
d5bc63e2935e7ecbb40c93952b2a5ff671789a7e
PHP
Blue-Ball/laravel-airport
/laravel-app/app/Repositories/SomProjectsPhasesRepository.php
UTF-8
1,781
2.796875
3
[]
no_license
<?php namespace App\Repositories; use App\Models\SomProjectsPhases; use App\Repositories\BaseRepository; /** * Class SomProjectsPhasesRepository * @package App\Repositories * @version July 5, 2021, 9:44 am UTC */ class SomProjectsPhasesRepository extends BaseRepository { /** * @var array */ pro...
true
5b235f79d122758559c5bfd70380594c17b21b6c
PHP
shaunlin064/dataanalysiscontrol
/app/Console/Commands/CacheReceiptTimes.php
UTF-8
2,002
2.53125
3
[]
no_license
<?php namespace App\Console\Commands; use App\Http\Controllers\FinancialController; use Illuminate\Support\Facades\Cache; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class CacheReceiptTimes extends Command { /** * The name and signature of the console command. * * @var strin...
true
511c51a9de68be81d868aaf3de5e03df6c5269a9
PHP
2017JosePablo/Paradigmas
/content/domain/persona.php
UTF-8
1,325
3.375
3
[]
no_license
<?php class Persona{ private $cedula; private $nombre; private $primerApellido; private $segundoApellido; private $telCasa; private $telMovil; function Persona($cedula,$nombre,$primerApellido,$segundoApellido,$telCasa,$phone){ $this->cedula = $cedula; $this->nombre = $nombre; $this->primerApellido = $pr...
true
fa90d81c20ed619d1858342e5bd323bec0c3ebbe
PHP
jasonrgd/EdmundsAPI
/src/VehicleBundle/Entity/Make.php
UTF-8
1,475
2.5625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace VehicleBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Make * * @ORM\Table(name="make") * @ORM\Entity(repositoryClass="VehicleBundle\Repository\MakeRepository") */ class Make { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\Generated...
true
e9cb673be2dbf8be14616163c87d85d79f9244ff
PHP
vojtys/componette.com
/app/model/tasks/addons/GenerateContentTask.php
UTF-8
3,377
2.5625
3
[]
no_license
<?php namespace App\Model\Tasks\Addons; use App\Core\Utils\Validators; use App\Model\ORM\Addon\Addon; use App\Model\ORM\Addon\AddonRepository; use App\Model\ORM\Github\Github; use App\Model\WebServices\Github\Service; use Nette\Utils\Strings; use Nextras\Orm\Collection\ICollection; final class GenerateContentTask ex...
true
a85598ba2c800da4ff1412d2319402ba85da296b
PHP
ptondereau/apiplatform-ddd-cqrs-es-demo
/api/src/Book/Domain/Model/Review/Rating.php
UTF-8
485
3.015625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Book\Domain\Model\Review; final class Rating { /** @var int */ private $value; public function __construct(int $value) { $this->value = $value; } public function value() : int { return $this->value; } public static fu...
true
0b4938fc99b8f4761f0cea5dd04ba3f7c09dee0a
PHP
Saikurin/KELLOGGS_SYMFONY_PPE1
/src/Traits/GetNBArticlesTrait.php
UTF-8
1,289
2.578125
3
[]
no_license
<?php namespace App\Traits; use App\Entity\Articles; use App\Entity\Panier; use App\Repository\PanierRepository; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Session\SessionInterface; /** * Created by PhpStorm. * User: theosikli * Date: 2018-12-11 * Time: 14:25 */ trait Ge...
true
4bb83ea329d924f8593ea7b653c509233f142071
PHP
hkevadia/RMS
/Reports/AllocationReport.php
UTF-8
4,530
2.703125
3
[]
no_license
<html> <head> <title>graph</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <!-- You need to include the following JS file to render the chart. When you make your own charts, make sure that the path to this JS file is correct. Else, you will get JavaScript errors. --> ...
true
4f3974c7e7e9ad5271ed71aa22fb84fb2eeb3121
PHP
osoconqueso/purcal
/src/AppBundle/Service/ModelService.php
UTF-8
1,175
2.6875
3
[]
no_license
<?php namespace AppBundle\Service; use AppBundle\Repository\ModelRepository; use Doctrine\Bundle\DoctrineBundle\Registry; use AppBundle\Entity\Model; /** * Class ModelService * @package AppBundle\Service */ class ModelService { /** * @var ModelRepository */ protected $modelRepo; /** * ...
true
0d25d5d9b9386bf6b4923451cd51ca439c5ca2e2
PHP
ismaelfac/minvidverdadera
/database/factories/EmployeeFactory.php
UTF-8
637
2.578125
3
[ "MIT" ]
permissive
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Employee; use Faker\Generator as Faker; use Illuminate\Support\Str; $factory->define(Employee::class, function (Faker $faker) { return [ 'dni' => randomNumber($nbDigits = NULL, $strict = false), 'gender' => $faker->randomEle...
true
8ea2d29a840b88fa6122f9f0013cba7aede6a391
PHP
Symfony-Plugins/sfPropelActAsRatableBehaviorPlugin
/test/unit/sfPropelActAsRatableBehaviorTest.php
UTF-8
7,638
2.75
3
[ "MIT" ]
permissive
<?php for ($i=0;$i<10;$i++) echo "\n"; // Define your test Propel class with behavior applied here define('TEST_CLASS', 'sfTestObject'); // Define a setter method for this article, other than primary key define('TEST_METHOD', 'setTitle'); // Autofind the first available app environment $sf_root_dir = realpath(dirname(...
true
53c0332134b1dc8e8880ae38b6723427c1a4bf7f
PHP
Mr-Sim/TP-PHP
/PHP HTML/7/tableau.php
UTF-8
324
3.0625
3
[]
no_license
<html> <head> </head> <body> <table border=1> <?php echo'<tr>'; $pays=array('France','Italie','Espagne','Allemagne'); foreach($pays as $nom){ echo '<th>'.$nom.'</th>'; } echo '</tr>'; echo'<tr>'; $nb=array(9.7,4.8,9.3,4.9); foreach($nb as $nom){ echo '<th>'.$nom.'</th>'; } echo '</tr>'; ?> </body> </html...
true
8b609384c754ad601701d78e0c304591cb272ac2
PHP
xgx326234556/larverl
/blog/app/User/Validator/UserValidator.php
UTF-8
788
2.625
3
[ "MIT" ]
permissive
<?php namespace App\User\Validator; use Prettus\Validator\Contracts\ValidatorInterface; use Prettus\Validator\LaravelValidator; class UserValidator extends LaravelValidator { protected $rules = [ ValidatorInterface::RULE_CREATE => [ 'name' => 'required', 'age' => 'required|integ...
true
864a3a04b70a7603d402bdc1e12953ba6ae3ca62
PHP
zyadamin/book-house
/project_web/public_html/singup_helper.php
UTF-8
1,105
2.625
3
[]
no_license
<?php DEFINE ('DB_USER', 'root'); DEFINE ('DB_PSWD', ''); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'book_house'); $dbcon = mysqli_connect(DB_HOST, DB_USER, DB_PSWD, DB_NAME); $name=$_POST['Name']; $username=$_POST['Username']; $email=$_POST['Email']; ...
true
97065cb22ee29b9b34389a7f0e6069860c4edddf
PHP
chuganghong/DataDictionaryGenerator
/lib/DB/Abstract.php
UTF-8
540
2.6875
3
[]
no_license
<?php /** * easy4php * * * * @package DataBase * @copyright Copyright (c) 2008 - 2011 * @link http://www.easy4php.com * @author keshuichong * @version 1.0 */ abstract class DB_Abstract { /** * User-provided configuration * * @var array */ protected $_config = array(); ...
true
80a70f5596625531e848ebfbfd34f6d86fffd724
PHP
symfony/symfony
/src/Symfony/Component/DependencyInjection/Loader/Configurator/DefaultsConfigurator.php
UTF-8
2,287
2.546875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\...
true
c1559cf2134e4ce2763a8003eb4c210530e4c437
PHP
PawfectMatch/PawfectMatch
/IPProject/includes/classes/User.php
UTF-8
2,169
3.296875
3
[ "Apache-2.0" ]
permissive
<?php class User{ // PRIVATE VARIABLES WHICH ARE GLOBAL IN THIS CLASS BUT ELSE PRIVATE private $user; private $con; // THIS IS CONSTRUCTOR WHICH WILL ALWAYS BE EXECUTED public function __construct($con, $user){ $this->con = $con; $user_details_query = mysqli_query($con, "SELECT * FROM users WHERE us...
true
5debfdb17713eef698bf4272bffd93c525b12650
PHP
baihaqilp/DigiQu
/DigiAPI/database/migrations/2020_03_10_175437_create_kitabs_table.php
UTF-8
716
2.578125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateKitabsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('kitabs', functio...
true
cd82f9a90c16b0627518b561c929ad641d8c16cd
PHP
JuhaszAdam/PhPAlapok
/3/Creational/Builder/Building.php
UTF-8
2,255
3.875
4
[]
no_license
<?php namespace DesignPatterns\Creational\Builder; class Building { /** * @var string */ private $frame; /** * @var string */ private $walls; /** * @var int */ private $doorCount; /** * @var int */ private $windowCount; /** * @var st...
true
ed0dad727b13b77791a7ddc0332433bdc7fbf7e8
PHP
slayerulan/laravel-horizon
/app/Http/Controllers/Frontend/OddsListing.php
UTF-8
928
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Frontend; use Illuminate\Http\Request; use App\Http\Traits\Listing\Odds; /** * This will contain all functions which are require to load extra odds for all sports. * * @author Anirban Saha */ class OddsListing extends FrontendBaseController { use Odds; /** * fetches al...
true
aa7f81b0f519459dd157d217f86ae0836f0f7538
PHP
mrcoub/oz-minimarket
/components/Router.php
UTF-8
1,151
2.78125
3
[]
no_license
<?php class Router { private $routes; public function __construct() { $routesPath = ROOT.'/config/routes.php'; $this->routes = include($routesPath); } private function getURI() { if (!empty($_SERVER['REQUEST_URI'])) { return trim($_SERVER['REQUEST_URI'], '/'); } } public function run() { $u...
true
7a90e534097ccc828ec386e144714b880602ee60
PHP
jumihc-company/laravel-mongodb
/src/BaseModel.php
UTF-8
1,371
2.625
3
[ "MIT" ]
permissive
<?php /** * User: YL * Date: 2020/11/17 */ namespace Jmhc\Mongodb; use Jenssegers\Mongodb\Eloquent\Model; use Jmhc\Database\Contracts\DatabaseInterface; use Jmhc\Database\Scopes\PrimaryKeyDescScope; use Jmhc\Database\Traits\DatabaseTrait; /** * 基础模型 * @method DatabaseTrait initialize() * @package Jmhc\Mongodb ...
true
3b2c4607019595a10b4c239e3d0646990fcb03cd
PHP
nirantarnoy/chaiwat
/console/migrations/m170707_082026_create_product_table.php
UTF-8
989
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `product`. */ class m170707_082026_create_product_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('product', [ 'id' => $this->primaryKey(), 'product_code' =>...
true
290dd05dbea4140a7688ed56a868e1e962e528a2
PHP
francivancastro/superlogica
/exercicio1/app/model/Usuario.php
UTF-8
2,693
2.90625
3
[]
no_license
<?php class Usuario { public int $id; public string $name; public string $username; public string $zipcode; public string $email; public string $password; protected Banco $banco; const TABELA = 'usuario'; public function __construct() { $this->banco = Banco::instancia...
true
572c3215f421caf3eababe68550c00437b2076c7
PHP
oRhino/PHPNote
/array/Array5.php
UTF-8
1,862
3.34375
3
[]
no_license
<?php echo "<pre>"; echo "<hr/>"; echo "<h4>1.数组的使用</h4>"; $arr = ['a','b','c','d']; print_r($arr); echo $arr[2]; echo "<br/>"; $a = $arr[3]; echo $a; echo "<br/>"; $arr = [ 'username'=>'rhino', 'age'=>24, 'blog'=>'www.soulmater.cn' ]; echo "用户名为:",$arr['username'],'<br/>'; echo "年龄为:",$arr['age'],'<br/>'; echo "...
true
d771a8c79f186ef8370c12419831ae61e7effc6d
PHP
marcoslmori/php-enterprise-4linux
/HandsOn/Cap2/manipulando_arquivos/fopen_fread.php
UTF-8
129
2.609375
3
[]
no_license
<?php // fopen_fread.php $file = fopen('emails.txt', 'a+'); $dados = fread($file, 4096); echo '<br />'; echo nl2br($dados);
true
dbf2c12ce541fb5cba812d26d10c8e4691192094
PHP
fnuppy/CalendarEvents
/src/DataFixtures/Birthday.php
UTF-8
1,741
2.671875
3
[]
no_license
<?php namespace App\DataFixtures; use App\Factory\BirthdayFactory; use DateTime; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\FixtureGroupInterface; use Doctrine\Persistence\ObjectManager; class Birthday extends Fixture implements FixtureGroupInterface { use GetRandomItemTrait; ...
true
a417247542a8d0319298f0e6105defd54a14a54e
PHP
joemort/cs313php
/viewScriptures.php
UTF-8
749
2.9375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Team Scripture Activity</title> </head> <body> <h2>Scriptures:</h2> <?php $dbName = 'scriptureActivity'; $dbHost = getenv('OPENSHIFT_MYSQL_DB_HOST'); $dbPort = getenv('OPENSHIFT_MYSQL_DB_PORT'); try { $db = new PDO("mysql:host=$dbHost:$dbPort;dbname=$dbName", "test", "test"); $...
true
8e2e3023d3211d64748beabcf3fc593d652038ab
PHP
olegRovneyko/uni.yii
/models/SendForm.php
UTF-8
959
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Oleg * Date: 27.09.2017 * Time: 8:53 */ namespace app\models; use yii\base\Model; class SendForm extends Model { public $name; public $company; public $phone; public $email; public $text; public $verifyCode; public function rules() { ...
true
a08737e2ee901d2412a3cac9eb1c1a6f57c5651a
PHP
tomcarter259/BIG-website
/seminars.php
UTF-8
5,551
2.546875
3
[]
no_license
<?php /** * Seminars Page Template * * This is used to display the list of all seminars, past and present * Template Name: Seminars */ get_header(); ?> <?php $now = date(); $seminars = new Pod('seminars'); $future_seminars = $seminars; $past_seminars = $seminars; ?> <?php $params = array(); $params['order...
true
edd60f9ff8d518e116dc210600931c572317b5da
PHP
BuffPal/buff_cms
/include/functions.php
UTF-8
8,216
2.671875
3
[]
no_license
<?php /** *自定义函数文件 */ class buffpal_cms_customize_function{ /** * 获取缩略图 为了那么一点优化 * @param $id * @param $option * @param $path * @return mixed */ public static function get_thumb($id,$option,$path) { if(has_post_thumbnail()): //输出缩略图(用上面的缩略图控制,控制大小) ...
true
00387772019b004fcc243c5145999e11a56c90c6
PHP
MShilenko/yii-test.ru
/frontend/views/book-shop/index.php
UTF-8
419
2.578125
3
[]
permissive
<?php /* @var $this yii\web\View */ /* @var $book_list yii\models\Book */ use yii\helpers\Url; ?> <h1>Books</h1> <a href="<?=Url::to(['create'])?>" class="btn btn-primary">Add new book</a> <?php foreach($book_list as $book){ ?> <div class="col-md-10"> <h3><?=$book->name?></h3> <p><?=$book->getDatePublished()?><...
true
537605608413cf407c924b3e21d2813899f865d0
PHP
doolsy/Symfony-project
/src/Eapp/BlogBundle/Controller/BlogController.php
UTF-8
4,425
2.609375
3
[]
no_license
<?php namespace Eapp\BlogBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Eapp\BlogBundle\Form\PostType; use Eapp\BlogBundle\Entity\Post; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; class BlogController extends Controlle...
true
a80cebc6367478ecbb9a85562d35941a86cc703f
PHP
flannan/regex_learning
/2.isGUID.php
UTF-8
574
3.125
3
[]
no_license
<?php /** * @param $string * * @return bool */ function isGUID($string) { $answer = true; $lengths = [8, 4, 4, 4, 12]; if ((($string[0] === '{') && substr($string, -1) !== '}') || (($string[0] !== '{') && substr($string, -1) === '}')) { $answer = false; //echo 'brackets'; } ...
true
1477029ddc42868787c0714de390db13cac4af50
PHP
LeoBessa403/sistemadabeleza
/admin/Entidade/PrecoPromocaoEntidade.class.php
UTF-8
4,812
2.65625
3
[ "Artistic-2.0" ]
permissive
<?php /** * PrecoPromocao.Entidade [ ENTIDADE ] * @copyright (c) 2019, Leo Bessa */ class PrecoPromocaoEntidade extends AbstractEntidade { const TABELA = 'TB_PRECO_PROMOCAO'; const ENTIDADE = 'PrecoPromocaoEntidade'; const CHAVE = CO_PRECO_PROMOCAO; private $co_preco_promocao; private $dt_cadas...
true
0a800daf20ece8e273033bade34eeafa88f7261e
PHP
lokinz/headfirst
/src/Duck/FlyRocketForward.php
UTF-8
182
2.859375
3
[]
no_license
<?php namespace Headfirst\Duck; class FlyRocketForward implements FlyBehavior { public function fly(): void { echo 'I\'m Flying with a rocket!' . PHP_EOL; } }
true
7a969de221c81c58b6a31d3d54a0b79d8496eda3
PHP
Joyguo0/ss_w
/uglyfisheyewear.com/mysite/code/form/CheckoutFormStep2.php
UTF-8
1,293
2.546875
3
[]
no_license
<?php class CheckoutFormStep2 extends MultiFormStep { public static $next_steps = 'CheckoutFormStep3'; public function getFields() { $list = new FieldList(); $list->push(TextField::create('FirstName','* FIRST NAME')); $list->push(TextField::create('LastName','* LAST NAME')); $li...
true
459951a9c1f259fed305df6081816ae072cd7b0f
PHP
yoannblot/easy-admin
/src/Domain/Database/ConnectorLoader.php
UTF-8
919
2.71875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace EasyAdmin\Domain\Database; use EasyAdmin\Application\Loader\ConfigurationLoader; use EasyAdmin\Infrastructure\Database\ConnectionLoader; final class ConnectorLoader { private Connector $connector; private ConfigurationLoader $configurationLoader; private Connecti...
true
6d54d6cc371558de582af36e7646a6602e5802e7
PHP
glhd/bootforms
/src/Elements/CheckGroup.php
UTF-8
1,482
2.640625
3
[ "MIT" ]
permissive
<?php namespace Galahad\BootForms\Elements; use Galahad\Forms\Elements\Label; class CheckGroup extends FormGroup { /** @var \Galahad\Forms\Elements\Label */ protected $label; /** @var bool */ protected $inline = false; /** * Constructor * * @param \Galahad\Forms\Elements\Label $l...
true
1c0e2f049ad57afc4ebc36f77a3f5a6b60e0289b
PHP
igorbarrosrj/rentpark
/app/Helpers/Helper.php
UTF-8
1,175
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Helpers; use Hash, Exception, Auth, Mail, File, Log, Storage, Setting, DB; class Helper { /** * @method clean() * * @uses To replace spaces in string with '-' * * @created Anjana H * * @updated Anjana H * * @param string * * @return string * */ public static functio...
true
0fe08a43901b18c2bddce5f1c1416992404aaaf1
PHP
yuxel/eksigator
/docs/php/modules/sayfa/class.php
UTF-8
657
2.53125
3
[]
no_license
<? class module_sayfa implements modules{ public function controller() { $this->parent->loadModuleLanguage(); $page = $this->parent->url->urlStrings; $file = $page->param_1; $mainContent = $this->getPageTemplate($file); return $mainContent; } public function get...
true
79e6b4ef3419ba7007f455fbc9abc4311ea16713
PHP
mariasz/BE21_PHP-Day07_Maria-Nancy-Rasmi
/nancyblack/products/create.php
UTF-8
2,188
2.65625
3
[]
no_license
<?php session_start(); require_once '../components/db_connect.php'; if (isset($_SESSION['user']) != "" ) { header("Location: ../home.php"); exit; } if (!isset($_SESSION['adm' ]) && !isset($_SESSION['user'])) { header("Location: ../index.php" ); exit; } $offers = ""; $result = mysqli_query($connect, "SE...
true
ba1265958a3c6b464468b68e7c62ccfd25a72d2a
PHP
aaron8/aaron
/Aaron/Core/Route.php
UTF-8
2,842
2.96875
3
[]
no_license
<?php /** * url解析类 * @author guomumin <aaron8573@gmail.com> * 参数暂时未进行过滤 */ namespace Aaron\Core; class Route { /** * 访问的模块 * @var unknown */ public $module; /** * 访问的控制器 * @var unknown */ public $controller; /** * 访问的方法 * @var unknown */ ...
true
d146cd297fb845d1d162437c32f4ae9e21956080
PHP
scottrigby/GitHubToRally
/src/Rally.php
UTF-8
2,073
2.703125
3
[]
no_license
<?php namespace GitHubToRally; use GuzzleHttp\Client; use Psr\Http\Message\ResponseInterface; class Rally { /** * @var \GitHubToRally\Config */ protected $config; /** * @var \GuzzleHttp\Client */ protected $client; /** * Rally constructor. * @param \GitHubToRally\Config $config * ...
true
360ff50643e735949de5a1dc7bf81d7fda2a3a8c
PHP
ThEPCenter/researcher
/application/models/table_model.php
UTF-8
1,422
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Table_model extends CI_Model { public function __construct() { parent::__construct(); $this->table_initialization(); } public function table_initialization() { $this->check_table_exists('res_upload', $this->res_upload_fields, 'upload_id'); } public function c...
true
8de96eaec55723ed019ec663a63958529358d4ce
PHP
nreijmersdal/gameoflife
/Classes/GameOfLife.php
UTF-8
3,236
3.34375
3
[]
no_license
<?php /** * Description of GameOfLife * * @author Niels van Reijmersdal */ class GameOfLife { public $field = array(); public $field_temp = array(); public $maxx, $maxy; public function createField($x, $y, $random = 0) { $this->maxx = $x; $this->maxy = $y; for($i=0;$i<$x;$i++){ for($j=0;$j<...
true
fc8cd42686501bf495a94e84f7a6d097a8c63ca4
PHP
zhangjiquan1/phpsourcecode
/web3d/yuncart/include/common/mq.class.php
UTF-8
4,054
2.796875
3
[ "Apache-2.0" ]
permissive
<?php /** * * 发送消息通知 * */ class MQ { private $code = ''; private $search = array( "tradepay" => array("{tradeid}", "{tradetotal}"), "tradecreated" => array("{tradeid}", "{tradetotal}"), "tradeclose" => array("{tradeid}", "{tradetotal}"), "tradesend" => array(...
true
46dda3d9ae4d0b0f933a69db4cab775dd5f7a9da
PHP
wperels/Drupal885_custom_modules
/modules/custom/probe_orbit/src/Space/OrbitGenerator.php
UTF-8
975
2.65625
3
[]
no_license
<?php /* * @file * Contains \Drupal\probe_orbit\Space\OrbitGenerator. * * Access the KeyValueStore service from inside * the OrbitGenerator service to make it cacheable. * * Add '@keyvalue' as an argument in the services.yml * to fetch the service from the container. */ namespace Drupal\probe_orbit\Spac...
true
a7ea2d629ad49d5984d8b6a157e452a4c125cd56
PHP
amovsisyan/insurance_test
/app/Models/CarModel.php
UTF-8
1,055
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Enums\DBTables\DBTableData; use Illuminate\Database\Eloquent\Model; class CarModel extends Model { // todo in the future add accessors and mutators protected $table = DBTableData::CAR_MODELS; protected $fillable = [ 'name', 'company_id' ]; /** *...
true
747ab81f9dd6908a53f17ce6854988211874955b
PHP
imajiji/laravel-dot
/database/seeds/ArticlesTableSeeder.php
UTF-8
2,701
2.609375
3
[]
no_license
<?php use Illuminate\Database\Seeder; class ArticlesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $titles = [ 'MySQL', 'PostgreSQL', 'Microsoft SQL Server' ]; ...
true
ea63e65d1c6659436173b8eba29e86f6ac6ef1ec
PHP
dharmaelms/elmstest
/app/Model/PromoCode.php
UTF-8
7,728
2.640625
3
[]
no_license
<?php namespace App\Model; use Auth; use Moloquent; use Timezone; class PromoCode extends Moloquent { protected $table = 'promocodes'; /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false; /** * The attributes that should be mutate...
true
103f99a7b81baae684e642f1c568e69e1c1420db
PHP
BGCX261/zibo-svn-to-git
/tags/0_9_4/zibo_core/system/src/zibo/core/router/GenericRouter.php
UTF-8
5,714
2.796875
3
[]
no_license
<?php namespace zibo\core\router; use zibo\core\router\io\RouterIO; use zibo\core\Dispatcher; use zibo\core\Request; use zibo\core\Router; use zibo\core\Zibo; use zibo\library\ObjectFactory; use zibo\library\String; use zibo\library\Url; use zibo\ZiboException; /** * Generic router implementation */ class Generi...
true
61906a79190ed1ee87a786ef3bcf66b4e167675d
PHP
ezechiel1/private_car
/class/loginControlerForPassenger.php
UTF-8
2,752
2.515625
3
[]
no_license
<?php //start session session_start(); //load and initialize database class require_once '../core/db.php'; $db = new DB(); //set default redirect url $redirectURL = '../../'.$db->url; if(isset($_POST['login'])){ if(!empty($_POST['email']) && !empty($_POST['password'])) { $condition1 =...
true
671a0c816ef45ce36c528b64e56429597753a771
PHP
armandoaepp/PHPeru-FrameWork
/v.0.2/clases/Modelado/Modelo_guiaacopio.php
UTF-8
3,582
2.765625
3
[]
no_license
<?php /* Clase Generada desde Cix-PHP - Creado por @EPP */ class Clase_guiaacopio{ //Constructor public function Clase_guiaacopio(){} //Atributos private $GuiaAcopioId; private $GuiaAcopioNumero; private $GuiaAcopioEstado; private $UsuarioId; private $GuiaSerieId; //Propiedades public function setGuiaAcopioId($GuiaAco...
true
ed7380e7c16c2e1b97150aa67c3dd31ef16fd5f7
PHP
yuesir/hyperf-tool
/src/Traits/CreateOrUpdate.php
UTF-8
2,626
2.59375
3
[ "MIT" ]
permissive
<?php namespace Hyperf\EricTool\Traits; use Hyperf\EricTool\Exception\ToolException; /** * Trait CreateOrUpdate * 新增或更新 * * @package App\Traits */ trait CreateOrUpdate { protected $unique_condition = ['id']; /** * 新增 or 更新数据 * * @param $orgInfo * * @return bool|\Hyperf\Utils\Hig...
true
978cd7e20f53410cbc7b1a7eaf49bd1d5343867e
PHP
guoyu07/IntelligentReviewModel
/stats/view_question.php
UTF-8
3,537
2.5625
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>ITS STATS</title> </head> <body> <div style="text-align: center;"><h1><big><span style="font-weight: bold; color: rgb(153,...
true
b6db0ac477d4f785947fbdcc0372a18ef2f8638a
PHP
Alaa-OmarAlshobaki/erpschool
/app/Models/Institution.php
UTF-8
944
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use DateTimeZone; class Institution extends Model { protected $fillable = [ 'Institution_Name','Institution_Address','Institution_Email','Institution_Phone','Institution_Mobile', 'Institution_Fax', 'password','phone','admin_id','Country'...
true
2ffd095f485a8f7672b60e1af4487e1e2a72dbc4
PHP
chasbro/1-flash-gallery
/includes/lib/upload_class.php
UTF-8
9,054
2.859375
3
[]
no_license
<?php /* Easy PHP Upload - version 2.32 A easy to use class for your (multiple) file uploads Copyright (c) 2004 - 2010, Olaf Lederer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributio...
true
4fffed9a4afa9d543e0dc8440c7805d67debc473
PHP
dbfernandes/HorasComplementares
/migrations/m151026_134357_Tabela_Grupos.php
UTF-8
489
2.515625
3
[]
no_license
<?php use yii\db\Migration; class m151026_134357_Tabela_Grupos extends Migration { public function up() { $this->createTable('grupo', [ 'id' => $this->primaryKey(), 'codigo' => $this->string(20)->notNull(), 'nome' => $this->string(100)->not...
true
0b9350615b7b542fe68fd759a9ae028a0b37fdc0
PHP
camiloflorezc/RASPWEB
/tablesTemporal.php
UTF-8
1,626
2.71875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Tabla</title> </head> <body> <center> <table bgcolo="green" border =2> <thead> <th colspan="1"><a href='register.php'> Nuevo </a> </th> <th colspan ="7"> Lista de Usuarios </th> </thead> ...
true
3cfd9a827af846e08b37a460d0d607c41572c216
PHP
lutonda/musee
/src/AppBundle/Domain/SYS/PaisRepositorio.php
UTF-8
1,002
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: luthonda * Date: 01-11-2016 * Time: 19:30 */ namespace AppBundle\Domain\SYS; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use AppBundle\Data\SYS\Pais; use Doctrine\ORM\EntityManager; class PaisRepositorio { protected $em; public function __construct...
true
5fa81979b7c6dc3ca50d6f1bbecca707b1665fe6
PHP
chamathsilva/NSBM-LMS
/application/lms/uploadFiles.php
UTF-8
1,500
2.90625
3
[]
no_license
<?php require_once("../class/class.db.php"); $database=new DB(); //check if this is an ajax request if (!isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { die(); } if (isset($_FILES["FileInput"]) && $_FILES["FileInput"]["error"] == UPLOAD_ERR_OK) { //check if this is an ajax request if (!isset($_SERVER['HTTP_...
true
5c554be219b4a5487fe4c2ba60656a3dd8d18d1c
PHP
BerliozFramework/Form
/src/Type/AbstractType.php
UTF-8
3,852
2.515625
3
[ "MIT" ]
permissive
<?php /* * This file is part of Berlioz framework. * * @license https://opensource.org/licenses/MIT MIT License * @copyright 2021 Ronan GIRON * @author Ronan GIRON <https://github.com/ElGigi> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this s...
true
159d049656b3ec0f65ef931cc33b04ec26887884
PHP
jeffaristi92/delverdesoy
/foro/phpbb/db/tools/postgres.php
UTF-8
16,221
2.828125
3
[ "MIT" ]
permissive
<?php /** * * This file is part of the phpBB Forum Software package. * * @copyright (c) phpBB Limited <https://www.phpbb.com> * @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\db\tools; /** ...
true
0993065f20c09531348ca58f01dbbc07fab809bb
PHP
Luke7864/AngelHack_2018
/login.php
UTF-8
779
2.609375
3
[]
no_license
<?php session_start(); //Connecting MySQL $host='localhost'; $user='localshare'; $pw= 'angelhack1'; //DB Password $dbname= 'localshare'; $sqli= new mysqli($host, $user, $pw, $dbname); $id=POST['id']; //From html get id -> id $password=POST['pwd']; //From html get pwd -> password //SQL $sql= "SELECT * F...
true
9503c8eeac723819d62886b3153e4ad087098960
PHP
FriendsOfCXML/cxml-php
/src/CXml/Model/ShipNoticePortion.php
UTF-8
542
2.65625
3
[ "MIT" ]
permissive
<?php namespace CXml\Model; use JMS\Serializer\Annotation as Ser; class ShipNoticePortion { /** * @Ser\SerializedName("OrderReference") */ private OrderReference $orderReference; public function __construct(string $documentReference, ?string $orderId = null, ?\DateTimeInterface $orderDate = null) { $this-...
true
1af9d7094b8f56d1ff2c39555a642135c6ed8c60
PHP
banksbestrates/BankFx
/news/wp-content/plugins/formidable-registration/controllers/FrmRegActionController.php
UTF-8
20,231
2.515625
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class FrmRegActionController{ /** * Trigger all actions that have "Successful user registration" selected as an event * * @since 2.01 * * @param int $form_id * @param int $entry_id */ public static function trigger_after_registration_actions( $form_id, $entry_id ) { FrmFormActionsController::t...
true
f6b98bb46815c5236736867259a4977042209b39
PHP
restuwahyu13/example-all-php-native-projects
/CRUD_PROSEDURAL/app/search.php
UTF-8
5,700
2.609375
3
[]
no_license
<?php //hunbungkan ke fungsi require 'process.php'; //sembunyikan error error_reporting(0); //seach method $searchId = $_GET['cari']; //fungsi pagination $jumlah_data_perhalaman = 5; $jumlah_data = count(searchData($_GET['cari'])); $jumlah_page_perhalaman = ceil($jumlah_data / $jumlah_data_perhalaman); $halaman_aktif =...
true
a33e773854a8c37df833cc3efb39af7c6c967a27
PHP
AimeeGao/CMS
/17.5.21/empty.php
UTF-8
1,329
3.40625
3
[]
no_license
<?php echo '<b>未定义$var</b>'; echo '<br/>'; if(empty($var)){ echo '$var值为空'.'<br/>'; // true } else { echo '$var不为空'.'<br/>'; } echo '**********************'; echo '<br/>'; echo '<b>$var是空字符串:$var = \' \'</b>'; $var = ''; echo '<br/>'; if(empty($var)){ echo '$var值为空'; // true } else { echo '$var不为空'; } echo '...
true
159fa2b7e97428cda01a7c441ca67542e72c9671
PHP
miguelSantirso/ululand
/tags/alfa_11/lib/helper/ulLinksHelper.php
UTF-8
5,961
2.8125
3
[]
no_license
<?php /** * Retorna el c�digo html de un enlace al perfil del usuario pasado como par�metro * * @param sfGuardUserProfile $sfGuardUserProfile Perfil al que se desea enlazar * @param array $options opciones que se a�adir�n al link_to * @param string $customText Texto personalizado para el enlace * ...
true
74a6f2c9a1097d09219fda9fc12c4823309bc9a6
PHP
Viktor-s/agenta-plus
/src/Api/SMD/CallableResolver/ServiceResolver.php
UTF-8
1,679
2.546875
3
[]
no_license
<?php namespace AgentPlus\Api\SMD\CallableResolver; use AgentPlus\Api\SMD\Action\ServiceAction; use FiveLab\Component\Api\SMD\Action\ActionInterface; use FiveLab\Component\Api\SMD\CallableResolver\BaseCallable; use FiveLab\Component\Api\SMD\CallableResolver\CallableResolverInterface; use FiveLab\Component\Exception\U...
true
699e091c841c18732d7e560574c64edc1a1a1a0b
PHP
davidgerard66/abcs
/src/Gites/GitesBundle/Services/getFacture.php
UTF-8
1,996
2.828125
3
[ "MIT" ]
permissive
<?php namespace Gites\GitesBundle\Services; use Symfony\Component\DependencyInjection\ContainerInterface; class getFacture { public function __construct(containerInterface $container) { $this->container = $container; } public function facture($facture) { ...
true
0492483e8c8283f9e004e211f69f4a6ce0bdd773
PHP
sellerlabs/nucleus
/tests/SellerLabs/Nucleus/Testing/ExampleService/ExampleC.php
UTF-8
1,101
2.78125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * Copyright 2015, Eduardo Trujillo * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * This file is part of the Nucleus package */ namespace Tests\SellerLabs\Nucleus\Testing\ExampleService; /** * Class ExampleC. * * @a...
true
95b19ef75b2cd43ef6d97d685141e835d8506476
PHP
ma1628/slWebApp
/slWeb/tests/Feature/AddSloganTest.php
UTF-8
3,860
2.578125
3
[ "MIT" ]
permissive
<?php namespace Tests\Feature; use App\Slogan; use Tests\SlWebTestCase; class AddSloganTest extends SlWebTestCase { // バリデーションエラーはSloganDetailPostTest.phpでテスト /** * @test * @dataProvider addSloganDataProvider */ public function addSloganにキャッチコピーをPOSTするとinsertされ、リダイレクトする(未入力なし)($param, $ex...
true
be60fcd6f81d20eb79de6e973a5bd4e23ac50367
PHP
HugoHoffmann/learn-php
/material/exercicios02/exe05.php
ISO-8859-1
285
3.890625
4
[ "Apache-2.0" ]
permissive
<?php /* 5. Crie uma funo que receba um nmero e imprima se ele par ou mpar. */ function verifica($iN){ if($iN % 2 == 0){ return $iN.' par!'; } else{ return $iN.' No par'; } } echo verifica(3); ?> <br> <a href="index.html">Voltar</a>
true
d33a03578d58ffad4fa8893afae6e0a53b2e42c7
PHP
bwoofenden/SkyFrame-Framework
/application/controllers/about/start.php
UTF-8
730
2.53125
3
[]
no_license
<?php Class start extends Controller { function __construct() { parent::__construct(); } function index() { $Master = new Template(); $Master->__construct('general'); $Master->assign('title', 'About SkyFrame'); ...
true