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
159d54693df70ac33f10b9ea1c7e272e681e0fff
PHP
rakesh-mohanta/neptune
/src/Neptune/Security/Exception/AnonymousException.php
UTF-8
519
2.6875
3
[ "MIT" ]
permissive
<?php namespace Neptune\Security\Exception; use Neptune\Security\Driver\SecurityDriverInterface; /** * AnonymousException is thrown when the client does not have * permission to access a resource, even with authentication. * * @author Glynn Forrest <me@glynnforrest.com> **/ class AnonymousException extends Secu...
true
90ace62fa8bb47147a2a7e0b8761d7af78b54fca
PHP
IvanTadeoHuerta/cursoPHP
/arreglos/index.php
UTF-8
413
3.65625
4
[]
no_license
<?php //Php no utiliza arreglos, utiliza mapas ordenados que es una coleccion de llaves y valores $arrayVar = ['red','blue','black']; var_dump($arrayVar); $arr = [ 0 => 'red', 1 => 'blue', 2 => 'black' ]; var_dump($arr); $colores = [ 'color1' => 'red', 'color2' => 'blue', 3 => 'black' ]; var_dump($colores); ...
true
9090a47dee39c644678c8e12fb6421721e35dfc1
PHP
cyberssl/api-php
/cyberssl_api.class.php
UTF-8
7,818
2.859375
3
[ "MIT" ]
permissive
<?php /** * CyberSSL API * * @version 1.15 **/ /*Hack for old php versions to use boolval() */ if(!function_exists('boolval')) { function boolval($val) { return (bool) $val; } } class CyberSSL_api { protected $api_url; protected $token; public $response_success; public $response; ...
true
ff8da51495cbf5a9c9eb802ccdef4e61a8e87f22
PHP
2747561946/jiaodian
/database/migrations/2018_11_21_123853_create_actives_table.php
UTF-8
982
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateActivesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('actives', funct...
true
f040d65b21702395c58c17309209b79259c6a6e7
PHP
NecroKills/segurancaDigital
/api/app/Http/Requests/SistemaAtualizarRequest.php
UTF-8
1,406
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class SistemaAtualizarRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
66b524dca874ed884e33f88b8658711b6ff62557
PHP
devcoder-xyz/pulsar-core
/src/Controller/Controller.php
UTF-8
1,174
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Pulsar\Core\Controller; use InvalidArgumentException; use Psr\Container\ContainerInterface; use Psr\Http\Server\MiddlewareInterface; /** * @author Devcoder.xyz <dev@devcoder.xyz> */ abstract class Controller { private ContainerInterface $container; protected array ...
true
f87ccfeae46b819338c4cee8431991cf24e59ed4
PHP
bbsnly/performer
/src/Collectors/Memory.php
UTF-8
1,014
2.96875
3
[ "MIT" ]
permissive
<?php namespace Bbsnly\Performer\Collectors; class Memory { /** * @var int */ private $peakUsage = 0; /** * @return array */ public function getMeasure(): array { $this->refreshPeakUsage(); return [ 'peak_usage' => $this->peakUsage, 'pe...
true
ffbdcc04b117c65b8bc6f6990177521fadc38c40
PHP
igor193/Engine
/engine/Код из лекции/session/auth.php
UTF-8
1,627
2.859375
3
[]
no_license
<? session_start(); if (isset($_GET["logout"])) { unset($_SESSION["login"]); unset($_SESSION["pass"]); setcookie("login"); setcookie("pass"); header("Location: index.php"); } function checkPass($login,$pass) { $connect = mysqli_connect("localhost","root","","shop"); $login=strip_tags(mysqli_real_escape_string($...
true
8cfe5da8d8a33a5f6cd30a0f3a40816e6c6e07c8
PHP
fabriciofmsilva/labs
/alura/php-design-patterns2/calculadora/Multiplicacao.php
UTF-8
444
3.828125
4
[ "MIT" ]
permissive
<?php class Multiplicacao implements Expressao { private $esquerdo; private $direito; function __construct(Expressao $ladoEsquerdo, Expressao $ladoDireito) { $this->esquerdo = $ladoEsquerdo; $this->direito = $ladoDireito; } public function avalia() { $valorEsquerda = $this->esq...
true
6ccf43c957a942ee9f64641d02d5c248fb2b339f
PHP
Shatabdi-Barua/test-simulation
/app/Domains/JobPosition/Http/Controllers/JobPositionController.php
UTF-8
2,822
2.546875
3
[]
no_license
<?php namespace App\Domains\JobPosition\Http\Controllers; use Illuminate\Http\Request; use App\Domains\JobPosition\Models\JobPosition; class JobPositionController { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { retu...
true
caa23edee16323b4877b71593277ade12bd9470f
PHP
sumanmanna6111/location
/genlink.php
UTF-8
839
2.796875
3
[ "MIT" ]
permissive
<?php $n=10; function getName($n) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $randomString = ''; for ($i = 0; $i < $n; $i++) { $index = rand(0, strlen($characters) - 1); $randomString .= $characters[$index]; } return $randomStri...
true
ce0e5479492a3adbe8a89101e34dcc225f649e57
PHP
cyb3r14V1rtu4L/viker.mx
/libs/class.paginador.php
UTF-8
3,792
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /* * + --------------------------------------------------------- + * | Software: Paginador - clase PHP para paginar registros | * | Version: 1.0 | * | Licencia: Distribuido de forma libre | * | Autor: Jaisiel Delance | * | Sitio Web: http://www.dlancedu.com |...
true
4939ccc5aa56cf4cafc6d275b7df338acdc228b7
PHP
atutor/AChecker
/include/classes/DAO/CheckPrerequisitesDAO.class.php
UTF-8
2,815
2.546875
3
[]
no_license
<?php /************************************************************************/ /* AChecker */ /************************************************************************/ /* Copyright (c) 2008 - 2011 */ /* Inclusive D...
true
5749cd5ec15a124354c5adf844c8c29f42bb0ff9
PHP
funivan/gallery
/Cabbage/Framework/src/Router/RouterDispatcher.php
UTF-8
1,415
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Funivan\CabbageFramework\Router; use Funivan\CabbageFramework\Dispatcher\DispatcherInterface; use Funivan\CabbageFramework\Http\Request\RequestInterface; use Funivan\CabbageFramework\Http\Response\ResponseInterface; use Funivan\CabbageFramework\Router\Exception\...
true
1956499b8f878bfb8604cf1652837e4bb2ccde91
PHP
point-red/point
/app/Model/Plugin/Study/StudySheet.php
UTF-8
1,924
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Model\Plugin\Study; use App\Model\PointModel; use App\Services\Google\Drive; class StudySheet extends PointModel { protected $connection = 'tenant'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'started_at', ...
true
9c4bce4a517d034b075d26968450b89a684d4139
PHP
MichalNemec/web
/models/Roles.php
UTF-8
1,434
2.640625
3
[]
permissive
<?php namespace app\models; use Yii; use yii\helpers\ArrayHelper; /** * This is the model class for table "roles". * * @property string $id * @property string $name * @property string $inserted_at * @property string $updated_at */ class Roles extends \yii\db\ActiveRecord { /** * {@inheritdoc} */...
true
c37b321a7aaa0750cfa8ab2afb238125465feb90
PHP
aido727/PAC_Website
/Phase1 [current online]/scripts/customTagReplace.php
UTF-8
4,741
2.859375
3
[]
no_license
<!-- Created by and property of: Aidan Harney --> <!-- Free use provided to: Perth's Allied Costumers --> <!-- Said use can by revoked by said owner at any time --> <?php /*triggers all tag replacements*/ function customTagReplace($html) { //ensure all tags can be found $html = str_replace("<IMG","<img...
true
5597cd850e5827d56adeac68f054a88370667ac4
PHP
Optimovl/optimosite
/classes/system/utils/captcha/settings/Common.php
UTF-8
3,698
2.734375
3
[]
no_license
<?php namespace UmiCms\Classes\System\Utils\Captcha\Settings; /** * Класс для работы с настройками капчи, общими для всех сайтов * @package UmiCms\Classes\System\Utils\Captcha\Settings */ class Common implements iSettings, \iUmiRegistryInjector, \iUmiConfigInjector { use \tUmiRegistryInjector; use \tUmi...
true
4c0f0999a2f97c4a15c36a7adcb1acd931627b42
PHP
Symela/TED_exercise_ebay_website
/ebay-new/backend/api/read_product.php
UTF-8
1,385
2.703125
3
[]
no_license
<?php set_time_limit(1200); // require 'connect.php'; class Cat { public $id; public $description; public function __construct($i, $d) { $this->id = $i; $this->description = $d; } } $products = []; $ids = []; $sql = "SELECT a.product_id AS id, a.product_category_id AS category_id, b.description AS ...
true
7d68833862e20eb08c22e17f1670d5d2c4d872a7
PHP
coderraseed/php
/m3/prerecordclass/class3.php
UTF-8
1,086
4
4
[]
no_license
<?php //for loop: echo "=======This is FOR loop=========\n"; for ( $i = 10; $i > 0; $i-- ) { echo $i; echo PHP_EOL; } echo "=======This is FOR loop=========\n"; for ( $i = 10; $i > 0; $i-=1 ) { echo $i; echo PHP_EOL; } echo "=======This is multi stepping FO...
true
8d2af5d448a6b742f5df1e0aa0507d60f95a9753
PHP
ExpressionEngine/Coilpack
/src/Models/Message/Folder.php
UTF-8
811
2.53125
3
[ "MIT" ]
permissive
<?php namespace Expressionengine\Coilpack\Models\Message; use Expressionengine\Coilpack\Model; /** * Folder * * Folders for private messages */ class Folder extends Model { protected $primaryKey = 'member_id'; protected $table = 'message_folders'; protected static $_relationships = [ 'Membe...
true
586d6a918906ac94f1f068ef88028390b3982e1e
PHP
Aldo1540/WeSellYouBuy
/WeSellYouBuy/includes/dbh.inc.php
UTF-8
522
2.921875
3
[]
no_license
<?php /* file used to handle database capabilites*/ /* sets up variables needed for connection with a database on a server with login credentials */ $servername = "localhost"; $dbUsername = "root"; $dbPassword = ""; $dbName = "loginsys"; /* sets up a variable for the connection using given credentials */ $conn = mysq...
true
9d63286b3c39eccc44a4ae9b875f7b07c65dbfaa
PHP
renecutipa/aytana
/application/models/Base_model.php
UTF-8
1,243
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Base_model extends CI_Model { public function getMenu(){ $sql = "SELECT * FROM menu WHERE parent IS NULL ORDER BY id_menu"; $query = $this->db->query($sql); $i=0; foreach( $query->result() as $row) { $data[$i]=array( 'id' => $row->id_menu, ...
true
37aa1868e38c038048d363909acd345f534598d2
PHP
danielducp/GroupDesignProject
/Final Product/Admin/ViewReturnedInformation.php
UTF-8
1,133
2.546875
3
[]
no_license
<?php session_start() ; if(!isset($_SESSION['auth'])) { header("Location:../Login/Homepage.php") ; } ?> <?php require ("config.php"); $OrderID=$_GET['OrderID']; $sqlQuery = $pdo->prepare('SELECT * FROM `order` INNER JOIN `suppliedorder` ON `order`.OrderID = suppliedorder.OrderID INNER JOIN...
true
9f94907a7bf49ba91d14b42f1869a3bf649179b2
PHP
dacodemaniak/www_theiere
/src/MenuBundle/Entity/Menu.php
UTF-8
3,417
2.53125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace MenuBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Serializer\Encoder\JsonDecode; use Symfony\Component\Serializer\Encoder\JsonEncoder; /** * Menu * * @ORM\Table(name="menu") * @ORM\Entity(repositoryClass="MenuBundle\Reposito...
true
55270403a35484f2050388b884d0f465b87bbb7d
PHP
jean8mathieu/portfolio2.0
/app/Http/Requests/Blog/StoreRequest.php
UTF-8
977
2.515625
3
[]
no_license
<?php namespace App\Http\Requests\Blog; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Log; use Illuminate\Validation\Rule; class StoreRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public funct...
true
1e253d47ecb2603e8dbb610a18895cc387b741f9
PHP
chana-chh/rezervacije
/app/Controllers/DokumentController.php
UTF-8
4,913
2.53125
3
[]
no_license
<?php namespace App\Controllers; use App\Models\Dokument; use App\Classes\Logger; class DokumentController extends Controller { public function postDokumentDodavanje($request, $response) { $data = $request->getParams(); $dokument = $request->getUploadedFiles()['dokument']; unset($data...
true
c17c2c0ec76b1c49cd717485c2e73218972e139b
PHP
gabrielsalazar8486/laravel-ddd-skeleton
/src/ERP/Roles/Application/RolCreator.php
UTF-8
973
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace Medine\ERP\Roles\Application; use Medine\ERP\Roles\Domain\Rol; use Medine\ERP\Roles\Domain\RolRepository; use Medine\ERP\Roles\Domain\ValueObjects\RolCompanyId; use Medine\ERP\Roles\Domain\ValueObjects\RolDescription; use Medine\ERP\Roles\Domain\ValueObjects\RolId; use Medine...
true
7af1397b69e17fa91deeb666edc3ea66f5929ff4
PHP
pubba98/final
/php/addToCart.php
UTF-8
1,359
3.234375
3
[]
no_license
<?php //take the post from any product $productID = $_POST["productID"]; $qty = $_POST["qty"]; //1. start a session @session_start(); //2. get or set session variable if (isset($_SESSION["orderedProductIDs"])){ //if something has been in our sopping cart $orderedProductIDs = $_SESSION["orderedProductIDs"]; ...
true
62a34180daac3b179a5badd874ddc6f872c1a81d
PHP
meetyourmakers1/Jingdong
/models/Category.php
UTF-8
2,294
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii\db\ActiveRecord; use yii\helpers\ArrayHelper; class Category extends ActiveRecord{ //模型表名 public static function tableName(){ return "{{%category}}"; } //模型属性 public function attributeLabels(){ return [ 'pid' => '商品上级分类', ...
true
7f3fc797f1a1b4d8f542de0ccf31dc5831076672
PHP
anavallasuiza/europeas2014
/php/Csv2Json.php
UTF-8
15,503
2.859375
3
[]
no_license
<?php Class Csv2Json { private $dir = ''; public function jsonDirectory($dir) { if (!is_dir($dir)) { throw new Exception($dir.' directory not exists'); } $this->dir = $dir; } /** * Genera los ficheros JSON con la estructura correcta a partir de los resulta...
true
309f8ffae0f6ddba15123cd4a0c89ebee63467b1
PHP
yiuked/cike
/app/Support/Helper.php
UTF-8
1,111
2.59375
3
[]
no_license
<?php /** * 请在/bootstrap/autoload.php文件中加载此文件,否则引用函数无效 */ /** * 该方法对Laravel原有的url函数进行扩充,只生成后台URL * @param $alias * @param array $parameters * @param null $secure * @return \Illuminate\Contracts\Routing\UrlGenerator|string */ if (!function_exists('admin_url')) { function admin_url($alias, $parameters = [], ...
true
1fd32525bdc1b5fb35ce1009ef6b479f5897163c
PHP
msgpo/paperless-1
/app/Jobs/GenerateThumbnail.php
UTF-8
1,545
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Models\File; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Storage; use Imagick; use ImagickException...
true
1df72a2bc638719a564a3efebda74e5f978d39b5
PHP
strimeapp/api
/src/StrimeAPI/UserBundle/Command/CronDeactivateNonConfirmedUsersCommand.php
UTF-8
7,362
2.5625
3
[ "MIT" ]
permissive
<?php namespace StrimeAPI\UserBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; ...
true
f4dd0a01975a7463b872aaadeb8aead1344e550c
PHP
SafonovVA/VBParser
/src/Test.php
UTF-8
153
2.5625
3
[ "MIT" ]
permissive
<?php namespace SafonovVA\VBParser; class Test { public function hello(): string { return 'Hi sos ! How are you doing today?'; } }
true
2ec73d3759bf0bee3f14212dcd91ca4179f3e021
PHP
salebab/useful
/examples/singleton.php
UTF-8
469
3.21875
3
[ "MIT" ]
permissive
<?php include_once __DIR__ ."/../vendor/autoload.php"; use useful\traits\Singleton; class MyClass { use Singleton; public $hash; function __construct() { $this->hash = md5(rand()); } } class MyClass2 extends MyClass { use Singleton; // note: without defining, it will use existent ins...
true
39e4df3f9243798f465f8e52d2d4465a680c1db2
PHP
luigif/WsdlToPhp
/samples/ebay-trading/End/Type/EbayTradingTypeEndFixedPriceItemResponseType.php
UTF-8
1,856
2.921875
3
[]
no_license
<?php /** * Class file for EbayTradingTypeEndFixedPriceItemResponseType * @date 04/07/2012 */ /** * Class EbayTradingTypeEndFixedPriceItemResponseType * Documentation : Acknowledgement that includes SKU, as well as the date and time the auction was ended due to the call to EndFixedPriceItem. * @date 04/07/2012 *...
true
918a5c48e1c5723e779ec7733bb48dfa04866401
PHP
xXSparkeyy/harbour-spritradar
/php/es/index.php
UTF-8
5,628
2.703125
3
[]
no_license
<?php $types = array('GPR', 'G98', 'GOA', 'NGO', 'GOB', 'GOC', 'BIO', 'G95', 'BIE', 'GLP', 'GNC'); function downloadFiles() { global $types; foreach( $types as $name ) download( $name ); } function download( $name ) { $url = "http://www6.mityc.es/aplicaciones/carburantes/eess_$name.zip"; $ch = curl_init()...
true
e3dd28c82d397c1b62016bfb97b60c42bc8a6930
PHP
guoyu07/markov-rules
/src/MarkovBot/Adaptor/AdaptorInterface.php
UTF-8
354
2.65625
3
[ "MIT" ]
permissive
<?php /** * SourceAdaptor Interface */ namespace MarkovBot\Adaptor; use MarkovBot\MarkovBot; interface AdaptorInterface { /** * @param string $source Source * @return string */ public function getSample($source); /** * @param MarkovBot $app * @return void */ public fu...
true
7b4c9c41e5b4202b96ca9da4f1984ea6edd1c9c2
PHP
Cintrust/MadelineFlavour
/src/Entities/Entity.php
UTF-8
20,089
2.8125
3
[]
no_license
<?php namespace Cintrust\MadelineProto\Entities; use Cintrust\MadelineProto\Exceptions\InvalidEntity; use Cintrust\MadelineProto\Exceptions\InvalidObserverType; use Cintrust\MadelineProto\Observers\Observer; use Closure; use danog\MadelineProto\API; use danog\MadelineProto\Tools; use...
true
c075477bdbdd59c42912ae0cc7ad26e3ec412073
PHP
appointer/deep-space-comlink
/src/RouteRegistrar.php
UTF-8
1,760
2.609375
3
[ "MIT" ]
permissive
<?php namespace Appointer\DeepSpaceComlink; use Illuminate\Contracts\Routing\Registrar as Router; class RouteRegistrar { /** * The router implementation. * * @var Router */ protected $router; /** * Create a new route registrar instance. * * @param Router $router ...
true
cb3786b7fc031f59411bfd29eb462a1d5f105214
PHP
samiqss/Web-Programming
/CSCI370P/submitEdit.php
UTF-8
5,335
2.53125
3
[]
no_license
<!-- Created by Sami Al-Qusus March 17, 2018 --> <!-- modified March 18, 2018 --> <!-- Lab9.php required for Lab9 --> <?php //require('dbinfo.inc'); //require_once('front.php'); $redirect= false; $stat = 0; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (isset($_POST['ideaName'])){ $ideaName =$_POST['ideaNa...
true
b32133271f79973e7123da770e4de91d39739cca
PHP
gulaandrij/proxy-scraper
/src/Scrapers/CoolProxyScraper.php
UTF-8
2,433
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Vantoozz\ProxyScraper\Scrapers; use Symfony\Component\DomCrawler\Crawler as Dom; use Vantoozz\ProxyScraper\Enums\Metrics; use Vantoozz\ProxyScraper\Exceptions\HttpClientException; use Vantoozz\ProxyScraper\HttpClient\HttpClientInterface; use Vantoozz\ProxyScraper\Ipv4; use V...
true
1984c1c6887fb27fce6424c65851ce77a40d262b
PHP
dvsa/olcs-backend
/module/Api/src/Domain/QueryHandler/IrhpPermitStock/AvailableBilateral.php
UTF-8
1,225
2.515625
3
[ "MIT" ]
permissive
<?php namespace Dvsa\Olcs\Api\Domain\QueryHandler\IrhpPermitStock; use DateTime; use Dvsa\Olcs\Api\Domain\QueryHandler\AbstractQueryHandler; use Dvsa\Olcs\Transfer\Query\QueryInterface; /** * Available bilateral stocks */ class AvailableBilateral extends AbstractQueryHandler { protected $repoServiceName = 'Irh...
true
7056ee3e804633ba47ab42623cea4a0e014c5613
PHP
greg0ire/php-json-pointer
/src/Evaluator/OperationRemove.php
UTF-8
2,072
2.78125
3
[ "MIT" ]
permissive
<?php namespace Remorhaz\JSON\Pointer\Evaluator; use Remorhaz\JSON\Data\WriterInterface; use Remorhaz\JSON\Pointer\Locator\Locator; use Remorhaz\JSON\Pointer\Locator\Reference; /** * Implements 'remove' operation compliant with RFC-6902. */ class OperationRemove extends Operation { protected $writer; pu...
true
0fc6795a770b39ddacc9fe62276a22a3dfadc6a1
PHP
Shiro107/reposi
/application/views/cetak_model.php
UTF-8
423
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php echo ' Data Mahasiswa'; echo "<table border='1'> <tr> <td>No</td> <td>NIM</td> <td>Nama Lengkap</td> <td>Jenis Kelamin<td> </tr>"; $no=0; foreach ($konten as $rows => $row) { echo "<tr>"; $no++; echo "<td>".$no."</td>"; echo "<td>".$row['NIM']."</td>"; echo "<td>".$row['Nama_Depan']." ".$row[...
true
bc4e0716151702507a1875d0d64087024b7ff2fc
PHP
Jeff930804/WeChatDemo
/index.php
UTF-8
6,690
2.640625
3
[]
no_license
<?php require_once(dirname(__FILE__).'/city_id.php'); require_once(dirname(__FILE__).'/wx_func.php'); require_once(dirname(__FILE__).'/bdfy_api.php'); /** * 微信类 */ class WeChat { private $token; private $appID; private $appSecret; private $token_url; private $access_token; //普通的accesst_token,不是网页授权的 /** * 构...
true
d5752ed4a7d7a8690826aebb7de7a9d0e55ec7a1
PHP
olgabast/demo
/app/Api/V1/Controllers/AuthController.php
UTF-8
2,599
2.53125
3
[]
no_license
<?php namespace App\Api\V1\Controllers; use App\Http\Controllers\Controller; use App\Http\Requests\UserAuthRequest; use App\User; use Dingo\Api\Contract\Http\Request; use Dingo\Api\Routing\Helpers; use JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; use Tymon\JWTAuth\Exceptions\TokenExpiredException; use Tymon\JW...
true
09d93612648292583cf9e53eb7216b46adf7ee14
PHP
mauipipe/apiExample
/src/Addresses/Validator/Strategy/AddressValidator.php
UTF-8
2,085
2.984375
3
[]
no_license
<?php namespace Addresses\Validator\Strategy; use Addresses\Enum\ValidationTypes; use Addresses\Exception\ValidationException; use Addresses\Model\Address; use Addresses\Validator\ValidatorInterface; use Addresses\Validator\ValidatorTypeInterface; /** * @author davidcontavalli */ class AddressValidator implements ...
true
70545e181f890941f9a6f4dbb8f66e56c2c6c09e
PHP
Vivekreddy99/maria2
/api/src/Controller/ProductsController.php
UTF-8
8,393
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use App\Entity\Products; class ProductsController extends BaseEntityController { public function __construct() { parent::__co...
true
c5a951d1c7cdc371351a8d334a51834f65954a4d
PHP
keruald/keruald
/omnitools/tests/OS/EnvironmentTest.php
UTF-8
1,801
2.59375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Keruald\OmniTools\Tests\OS; use InvalidArgumentException; use Keruald\OmniTools\OS\Environment; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; class EnvironmentTest extends TestCase { protected function setUp () : void { // Keep in sync with provideEnviron...
true
63d058256a02e9f298c48f6ed31cdc67c85571b4
PHP
ravialmt1/practical
/models/base/Events.php
UTF-8
1,943
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models\base; use Yii; use yii\behaviors\TimestampBehavior; use yii\behaviors\BlameableBehavior; use mootensai\behaviors\UUIDBehavior; /** * This is the base model class for table "events". * * @property integer $id * @property string $title * @property string $description * @property string...
true
2dbd9f24c4bf10dd9785f61735e96583e34a40bd
PHP
failpunk/recording-questions
/lib/model/om/BaseUser.php
UTF-8
206,740
2.53125
3
[]
no_license
<?php /** * Base class that represents a row from the 'user' table. * * * * @package lib.model.om */ abstract class BaseUser extends BaseObject implements Persistent { const PEER = 'UserPeer'; /** * The Peer class. * Instance provides a convenient way of calling static methods on a class * that ...
true
0f493587ca2c734efc2630fdbf24a5fab212f8ee
PHP
rkrx/php-dispatcher
/src/Dispatcher.php
UTF-8
1,281
2.859375
3
[ "MIT" ]
permissive
<?php namespace Kir\Dispatching; use Kir\Dispatching\Tools\MethodInvoker; class Dispatcher { /** @var MethodInvoker */ private $invoker = null; /** @var ServiceLocator */ private $serviceLocator; /** * @param ServiceLocator $serviceLocator * @param MethodInvoker $invoker */ public function __construct(Se...
true
ca7af63daf95a9f58293119e0505764f0c135bcd
PHP
gihanprimesha/report-generation-assesment
/Reports/TurnOverReports/TurnOverReportsGateway.php
UTF-8
8,900
2.546875
3
[]
no_license
<?php /** * Created by VS code. * User: Gihan Primesha * Date: 09/05/21 * Time: 4:45 PM */ namespace Reports\TurnOverReports; use Exception; use Reports\AbstractReport; use Application\Helpers\Mapper; use Application\Helpers\Validation; use Application\Exceptions\ValidationException; use Application\Exceptions\...
true
952e9982d36641ebcfd56393177e9dcbaa4f7d71
PHP
MateuxLucax/programacao-ifc
/2-ano/1Trimestre/ExerciciosGET_POST/POST/Exercicio8.php
UTF-8
1,226
2.765625
3
[]
no_license
<!DOCTYPE html> <html lang="pt-BR" /> <?php $ganhoPorHora = isset($_POST['gph'])?$_POST['gph']:"0"; $horasTrabalhadas = isset($_POST['ht'])?$_POST['ht']:"0"; $salario = 0; ?> <head> <meta charset="UTF-8" /> <title>Exercicio 8</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> ...
true
8c32d60903f58fb3b904e9f18a024f7035a9b9fe
PHP
luisprmat/laravel_and_vue
/app/Http/Controllers/NoteController.php
UTF-8
2,346
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Note; use Illuminate\Http\Request; class NoteController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Note::all(); } /** * Stor...
true
703de83259d8330260dd0bdbe9e7ae7720b213a8
PHP
campsx/cinems
/src/models/Comment.class.php
UTF-8
5,919
2.84375
3
[]
no_license
<?php class Comment extends BaseSql{ /** * @var Int */ protected $id; /** * @var String */ protected $title; /** * @var String */ protected $content; /** * @var String */ protected $note; /** * @var String */ protected $valid; /** * @var String */ prote...
true
ad975ddc240fd933d0975a9479841daa87387aa6
PHP
raibrito/CURSO---PHP-udemy
/funcoes/args_retorno.php
UTF-8
819
3.765625
4
[]
no_license
<div class="titulo"> Argumentos & Retorno</div> <?php function obterMensagem() { return 'Seja bem-vindo(a)!'; } obterMensagem(); $mensagem = obterMensagem(); echo $mensagem; echo '<br>', obterMensagem(); echo '<br>'; var_dump(obterMensagem()); echo '<br>'; function obterMensagemComNome($nome){ return "Bem vi...
true
fd245d1c8fa0b4e8e31d0433bda61db29bad5e02
PHP
jaay20/ingeniousdigital
/app/classes/Helper.php
UTF-8
394
2.609375
3
[ "MIT" ]
permissive
<?php class Helper { public static function helloWorld() { return 'Hello World'; } public static function getAllProjects() { return Projects::all(); } public static function getAllTechnologies() { return Technologies::all(); } public stat...
true
8632d5ccf47ed0ceb9ce4c072a2c308b91685875
PHP
aymensellaouti/testAngu
/administrer/MC/Produit.php
UTF-8
4,373
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: aymen * Date: 22/02/16 * Time: 12:02 */ // ca c'est la classe sp�cifique � la table personne //d'habitude chaque table � une classe qui lui est associ� include_once 'cnxpdo.php'; class Produit { protected $bdd; public function __construct(){ //$this->cnx=c...
true
35d3d47183382894e2aae1216a4a388958d7b935
PHP
hasantayyar/php-bayes
/examples/functions.php
UTF-8
1,333
2.78125
3
[]
no_license
<?php $dic = file_get_contents(__DIR__.'/sites.txt'); $dic = explode(PHP_EOL, $dic); function xsites_get_dictionary() { global $dic; $bayes_dic = new Noop\Bayes\Dictionary\Dictionary; $bayes_dic->loadStopwords(array('en')); $bayes_dic->setMinimalTokenCount(5); $tokenizer = new Noop\Bayes\Tokeniz...
true
451ac3a6342834a9e226496ce1e8286333ba1d49
PHP
SurendraShukla/PHP
/src/design_patterns/Adapter/Duck/WildTurkey.php
UTF-8
244
3.109375
3
[]
no_license
<?php namespace design_patterns\Adapter\Duck; class WildTurkey implements Turkey { public function gobble() { echo "Gobble Gobble"; } public function fly() { echo "I am flying a short distance"; } }
true
1380590c60b501fe3b7b60182a73945184dd8a39
PHP
mal-wtag/stackoverflow_with_drupal
/web/modules/questions_answers/src/Form/ReportQuestionForm.php
UTF-8
4,249
2.515625
3
[ "MIT", "GPL-2.0-only" ]
permissive
<?php namespace Drupal\questions_answers\Form; use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Session\AccountProxyInterface; use Drupal\Core\Session\SessionManagerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Drupal\questions_answers\Entity\Quest...
true
1bfb14fb918b601dd23afff5417b636b134782a7
PHP
Mohammad3600/Js-practice
/php_ex/session.php
UTF-8
367
2.84375
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <body> <?php // Set session variables $_SESSION["favcolor"] = "green"; $_SESSION["favanimal"] = "cat"; echo "Session variables are set."; var_dump($_SESSION); ?> <script> sessionStorage.setItem("lastname", "Smith"); console.log("hii"+sessionStorage.getIt...
true
b31c08b360a94201f354f51b529ebef0aa66dcfe
PHP
shiven91/homework3
/question3.php
UTF-8
1,645
3.140625
3
[]
no_license
<!DOCTYPE html> <html lang = "en-US"> <head> <meta charset = "UTF-8"> <title>contact.php</title> <style type = "text/css"> table, th, td {border: 1px solid black}; </style> </head> <body> <p> <?php $dsn = 'mysql:host=localhost; dbname=employees'; $user = 'root'; $password = 'hanumanji'...
true
51a02b800137f658c5291cd0b7fa1cdbbbec5722
PHP
RSHKDL/sfc-sf5
/src/DataFixtures/ProductFixtures.php
UTF-8
1,993
2.53125
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Product; use App\Entity\SpecialOffer; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class ProductFixtures extends Fixture { use DataFixturesTrait; public function load(ObjectManager $manager) { $productsData =...
true
73ad80ffa509011728b46c9871113298d832ddc6
PHP
13616008491/haha
/demand/project/app/common/ext/IUrl.php
UTF-8
721
2.84375
3
[]
no_license
<?php /* * @开发工具: JetBrains PhpStorm. * @文件名:IUrl.class.php * @类功能: 任务管理 * @开发者: zc * @开发时间: 15-10-22 * @版本:version 1.0 */ namespace app\common\ext; class IUrl{ /** * @功能:取得地址 * @param $url string 地址 * @开发者:zc * @return string */ public static function get($url...
true
b6bac27facce1a6e768a3349e27110ba784ed19d
PHP
melodc/melodc.github.io
/action.php
UTF-8
2,671
2.90625
3
[]
no_license
<?php if(isset($_POST['submit'])){ // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; // Load Composer's autoloader require 'vendo...
true
0dc4147893dd550348ca7534c807f12f374e54bd
PHP
organic-scholar/RixValidation
/src/Rules/others.php
UTF-8
785
2.8125
3
[]
no_license
<?php namespace Rix\Validation\Rules; use DateTime; use Rix\Validation\Validator; function callback(callable $func){ return $func(); }; function date($format='Y-m-d') { return function($val, $key, $data) use ($format) { $d = DateTime::createFromFormat($format, $val); if($d && $d->format($form...
true
d18d7cc40a55f2c87eeb26ba2ac8272332bc9cda
PHP
Werdffelynir/light-framework
/src/app/Classes/RenderException.php
UTF-8
1,034
2.640625
3
[]
no_license
<?php namespace App\Classes; trait RenderException { public function render() { $message = $this->message; $code = $this->code; $file = $this->file; $line = $this->line; $trace = print_r($this->getTrace(), true); die (" <style> html,body {background: black} ....
true
647565e611264cfac74ba44beeebffc3f3efd885
PHP
Sfera-IT/adventofcode2020
/lombax/13_dic_2.php
UTF-8
2,982
2.96875
3
[]
no_license
<?php /** * Spiegazione Teorema Cinese Del Resto * http://utenti.quipo.it/base5/numeri/teorcinese.htm * */ $data = file_get_contents('./13_dic.txt'); $rows = explode("\n", $data); $minDeparture = $rows[0]; $buses = explode(",", $rows[1]); // creo un array di obiettivi // ad esempio 67,7,59,61 first occurs at ...
true
0f415bf8054bb526eaad18ffe9b45332aa91f21b
PHP
marioiram2000/DEWS-Nerea
/primero/07BBDD/adminclientes.php
UTF-8
2,185
2.515625
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <?php session_start(); include_once 'bbdd.inc.php'; $cn=conectarse(); $clientes = clientes($cn); ?> <html> ...
true
b62183e768a232cbcd399c834b54081dcc2ef6c5
PHP
damiencorpataux/xfm-php
/lib/Util/Form.php
UTF-8
14,944
2.953125
3
[]
no_license
<?php /* * (c) 2012 Damien Corpataux * * LICENSE * This library is licensed under the GNU GPL v3.0 license, * accessible at http://www.gnu.org/licenses/gpl-3.0.html * **/ /** * xFormTemplate class. * Manages for templates processing. * @package xForm **/ class xFormTemplate { /** * Applies the given...
true
8e08211a60f79d26f38f1073086eba2f1ad29e52
PHP
janwebdev/twig-base64-extension
/src/Converter/ImageToBase64Converter.php
UTF-8
781
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Basster\TwigBase64\Converter; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; /** * Class ImageToBase64Converter. */ final class ImageToBase64Converter implements FileConverterInterface { /** * @var \Symfony\Component\Serializer\Normalizer\Normali...
true
e2706bf3325cc06360dbde59c6e95c7d9fb13c2b
PHP
IsmaelHernandez/php-crud
/array.php
UTF-8
364
2.9375
3
[]
no_license
<!-- Array listas de uno o mas valores --> <?php /* $frutas = array('manzanas','uvas','platanos','peras'); echo $frutas[0]; if($frutas[2]== 'platanos'){ echo "es correcto"; }else{ echo "es incorrecto"; }*/ $frutas = array('clave1' =>'uvas', 'clave2' =>'manzanas', 'clave3' =>'per...
true
000fcdbc5c7cf57744c9bbdedfb0dfb37107b9e8
PHP
jrltt/PHPM07
/pdfpoo/Autor.php
UTF-8
596
3.6875
4
[]
no_license
<?php class Autor { private $autid; private $autnom; public function __construct() {} /** * Metodo toString para poder utilizar echo con los objetos Autor */ public function __toString() { return $this->autid.' - '.$this->autnom; } /** * Funcion que devuelve el ID del Autor */ public ...
true
3dff9628f4fe61b3354bdee42e853060d5573662
PHP
liquidmetal/content-melt
/app/Controller/CategoriesController.php
UTF-8
1,564
2.5625
3
[]
no_license
<?php class CategoriesController extends AppController { public function isAuthorized($user) { return (bool)($user['role']==1); } public function admin_index() { $this->set('categories', $this->Category->find('all')); } public function admin_add() { if($this->request->is(...
true
ea75339017507de303731cf3a384ee9f5c26cab2
PHP
assetic-php/assetic
/tests/Assetic/Test/Filter/UglifyCssFilterTest.php
UTF-8
1,070
2.515625
3
[ "MIT" ]
permissive
<?php namespace Assetic\Test\Filter; use Assetic\Asset\FileAsset; use Assetic\Filter\UglifyCssFilter; /** * @group integration */ class UglifyCssFilterTest extends FilterTestCase { private $asset; private $filter; protected function setUp(): void { $uglifycssBin = $this->findExecutable('ugl...
true
aa7049f5792d5cd7042eceb50192b330541ae3e5
PHP
bblackcblackc/rontetest
/classes/IDataProcessorClass.php
UTF-8
426
2.96875
3
[]
no_license
<?php /** * Interface definitions for Data processing module */ interface IDataProcessorClass extends IModuleClass { /** * IDataProcessorClass constructor. * @param array $parameters Data process parameters */ public function __construct(array $parameters); /** * @return array Proce...
true
db5b62b79ec72e04d9ba5e64d426894c779c3a01
PHP
yzhlove/TestProjects
/Test_21_WebSocket/03.php
UTF-8
369
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: apple * Date: 2018/2/5 * Time: 下午8:38 */ $a_id = swoole_timer_after(2000,function () { echo "hello"; }); echo "id = -> $a_id \n"; $b_id = swoole_timer_after(1000,function () { echo "world"; }); echo "id = -> $b_id \n"; $c_id = swoole_timer_after(3000,function () ...
true
7eb7298e9dad7573dd77f8fec5ecc5ef312a4810
PHP
TakNePoidet/VkApiSDK
/src/ApiTypes/Board/TopicComment.php
UTF-8
1,449
2.734375
3
[]
no_license
<?php namespace VkApiSDK\ApiTypes\Board; use VkApiSDK\BaseType; use VkApiSDK\ApiTypes; class TopicComment extends BaseType { protected static $requiredParams = ['id','from_id','date','text']; protected static $map = [ 'id' => true, 'from_id' => true, 'date' => true, 'text' => true, ...
true
cc9a10c45328d51854d5f7ade40b931040d6927a
PHP
davidbarrionuevo96/SpecialFood
/SpecialFoodMVC/backup/clase/Pokedex-V2-master/nuevo.php
UTF-8
3,098
2.71875
3
[]
no_license
<?php $host_db = "localhost:3306"; $user_db = "root"; $pass_db = "admin"; $db_name = "pokemonsBaldoIgnacio"; $tbl_name = "usuario"; $conexion = new mysqli($host_db, $user_db, $pass_db, $db_name); if ($conexion->connect_error) { die("La conexion falló: " . $conexion->connect_error); } ?> <!DOCTYPE html> <html lang...
true
96f2fd269af4e30de7a411a73e03d2f717667597
PHP
chadthomasii/Budget-Application
/addSavingsPlan.php
UTF-8
933
2.828125
3
[]
no_license
<?php session_start(); require_once 'core/ErrorReporting.php'; require_once 'classes/Database.php'; require_once 'core/functions.php'; $data = []; if($_SERVER['REQUEST_METHOD'] === 'POST') { //Set the key/value pairs $data['amount'] = $_POST['amount']; $data['name'] = $_POST['name']; //Update the...
true
71adc47552781827ff1884242122e7fc80e0101c
PHP
cryptobuks1/Landing-Page-Builder
/app/Repositories/GalleryImageItemRepository.php
UTF-8
1,310
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\GalleryImageItem; /** * Class GalleryImageItemRepository * @package App\Repositories */ class GalleryImageItemRepository { /** * @var GalleryImageItem */ private $galleryImageItem; /** * GalleryImageItemRepository constructor. * @param G...
true
2dd72f70e4cc669fea268b7383ed2a1381c6e7f5
PHP
NadaBayoumy/visitcounts
/models/visitors.class.php
UTF-8
801
3.234375
3
[]
no_license
<?php class visitorsCls{ /**Member Variable**/ private $visitors; /****Getter and Setter ****/ /**Visitors**/ public function getVisitors(){ return $this->visitors; } public function setVisitors($visitors){ $this->visitors = $visitors; } public function queryVisitors($dbconnection){ $selectSqlStr = "...
true
c4d19f361ede73db1da0c5bdbee067fb3d8fd01d
PHP
merrymerry28/UAS-Man-Badean
/classes/dbfasilitas.php
UTF-8
1,482
2.6875
3
[]
no_license
<?php class fasilitas{ private $id; private $db; public function __construct($id = null){ $this->id = $id; $database = new Database; $this->db = $database->db; } public function tambahfasilitas($nama, $rincian, $gambar){ return $this->db->query("INSERT...
true
ce23380d3e76749554c8fcab1617433fa2ca95ba
PHP
marconatalini/eurostock
/src/Command/EurostockCleanCommand.php
UTF-8
3,408
2.515625
3
[]
no_license
<?php namespace App\Command; use App\Entity\Image; use App\Repository\ImageRepository; use App\Repository\TagRepository; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption...
true
c8f66a1a71dc42ccab06dea34f0409376451f4f9
PHP
hilezkorra/kurs
/php/sandbox_day8p2.php
UTF-8
1,281
3.96875
4
[]
no_license
<?php function romannumerals($int){ $int = intval($int); $output=''; $lookup = array( 'M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50, 'XL' => 40, 'X' => 10, 'IX' => 9, 'V' => 5,...
true
0ce8a8759ce4675ef1e1fa0e0b9e6637e57a1dea
PHP
rasmusgreve/FMK
/classes/pages/CreateEventPage.php
UTF-8
4,777
2.734375
3
[]
no_license
<?php class CreateEventPage implements iPage { private $artist_error = false; private $venue_error = false; private $artist_name = ''; private $venue_name = ''; public function consumePost($command, $params, $user) { if (!isset($_POST['artist']) || !isset($_POST['venue'])) ...
true
9f2d0b10f71ebb896765e7eadab698a720cc9840
PHP
xandrkat/speedrunner-cms
/common/framework/UrlManager.php
UTF-8
4,256
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @link http://phe.me * @copyright Copyright (c) 2014 Pheme * @license MIT http://opensource.org/licenses/MIT */ namespace common\framework; use Yii; use yii\web\UrlRuleInterface; use yii\helpers\ArrayHelper; use yii\helpers\Url; use backend\modules\System\models\SystemLanguage; /** * @author Aris Ka...
true
cd29878252464c9c6e06f7f2ee35bed480fff2c1
PHP
gulik17/gastreet
/app/Lib/Phone.php
UTF-8
5,531
3.3125
3
[]
no_license
<?php class Phone { /* проверка номера телефона */ public static function phoneVerification($phone) { $phone = strval($phone); // 1) убедимся, что номер корректен, т.е. содержит только // а) цифры от «0» до «9» // б) знак «+» // в) спецсимволы: «(», «)», «-», « ...
true
2fa97d50d28c09fdbf4751b23b718b1a38a5de6d
PHP
hi-frameork/library
/src/Database/MySQL/Manager.php
UTF-8
1,139
2.703125
3
[ "MIT" ]
permissive
<?php namespace Library\Database\MySQL; use Library\ConnectionPool; use Library\Database\Manager as DatabaseManager; use Library\Database\PDOConfig; use Library\Database\PDOPool; use PDO; /** * MySQL 连接池管理器 */ class Manager extends DatabaseManager { /** * @inheritdoc */ protected function createP...
true
60726d0be17d2cc0ff7ac143225c642e8299900d
PHP
harryqin1978/interview-master
/php/factory-adv.php
UTF-8
2,131
4.15625
4
[]
no_license
<?php /** * 工厂模式: * 1. 抽象基类:类中定义抽象一些方法,用以在子类中实现 * 2. 继承自抽象基类的子类:实现基类中的抽象方法 * 3. 工厂类:用以实例化对象 * * 一个工厂模式的运算类 * * @link http://www.cnblogs.com/hongfei/archive/2012/07/07/2580776.html */ /** * 操作类 * 因为包含有抽象方法,所以类必须声明为抽象类 */ abstract class Operation { //抽象方法不能包含函数体 abstract public function getValue($nu...
true
e765b4468b785762a4499096059bb3ebfa16dd4d
PHP
viktorblovytskyi/set
/Setting/src/Setting/Repository/TableGateway/Setting.php
UTF-8
589
2.640625
3
[]
no_license
<?php /** * @package Setting * @author Viktor Blovytskyi <viktorb@templatemonster.me> */ namespace Setting\Repository\TableGateway; use Application\Repository\TableGateway\AbstractTableGateway; class Setting extends AbstractTableGateway { /** * Возвращает прототип объекта модели * @return object ...
true
adc3b701dc3f07817ccf1dba7cd6d215a66bdee6
PHP
yz-fraction/portfolio-fraction
/CodeIgniter-draft-homework/book/www/application/models/m_book.php
UTF-8
1,799
2.671875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class M_book extends CI_Model { /** * /book/12/ */ public function show( $ID ) { $result = $this->db-> select(' ID , author , title , ' )-> from( 'book' )-> where( array( 'ID' => $ID ) ...
true
8bffa17c084818fc2352cebdb77cf0b601cf6129
PHP
mrodriguez96/RyMarc-s-Painting-Service
/Pages/viewestimates.php
UTF-8
3,330
2.5625
3
[]
no_license
<!DOCTYPE html> <!-- The view estimates page of the admin section of the website. The boss can view requested estimates, and then respond to them on a connected page, the respondestimate page. --> <!-- The php script below is for security, users cannot access the website without first logging in. --> <?php sess...
true
422a78c4062e545ec23d3d5e808034646a888bf2
PHP
omerucel/generator
/tests/src/Generator/BaseBuilderTest.php
UTF-8
1,777
2.59375
3
[ "MIT" ]
permissive
<?php namespace Generator; include_once 'Fake/Model.php'; include_once 'Fake/ModelBuilder.php'; use Generator\Fake\ModelBuilder; class BaseBuilderTest extends \PHPUnit_Framework_TestCase { /** * @var BaseBuilder */ protected $builder; protected function setUp() { $this->builder = ...
true
281cd32f2b3f4be769f9a2aa71f344272a91b960
PHP
chiquitto/AulasUnipar2015
/tads-2serie-aplicacoes-web/introducao-php/script-2014/funcao-hipotenusa.php
UTF-8
135
3.546875
4
[]
no_license
<?php function hipotenusa($b, $c) { $b2 = $b * $b; $c2 = $c * $c; $a2 = $b2 + $c2; $a = sqrt($a2); echo $a; } hipotenusa(10,10);
true
d9b1e18f9e8bd24946d964c946ffce2bd2187e26
PHP
walish/StoreSwitcher
/Helper/GeoIP.php
UTF-8
1,093
2.703125
3
[ "MIT" ]
permissive
<?php namespace Smart\StoreSwitcher\Helper; use Magento\Framework\App\Helper\Context; use Smart\StoreSwitcher\Model\DbReader\Reader as mmdbReader; use Smart\StoreSwitcher\Model\GeoIP\Info; class GeoIP extends \Magento\Framework\App\Helper\AbstractHelper { /** * @var \Smart\StoreSwitcher\Model\GeoIP\Info ...
true