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
63f2eb15286e3a3db9852296a88666c67c94b601
PHP
tbouakline/Plateforme
/frontend/models/SignupForm.php
UTF-8
4,242
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; use yii\base\Model; use common\models\User; use common\models\Entreprise; /** * Signup form */ class SignupForm extends Model { public $username; public $email; public $password; public $passwordconf; public $nom; public $prenom; public $nom_rs; ...
true
0766c5457d7352bd27a7554e96125cf3f036de50
PHP
martinligotnis/tech
/backend/models/ProductionLineEquipment.php
UTF-8
1,835
2.515625
3
[]
no_license
<?php namespace backend\models; use Yii; /** * This is the model class for table "production_line_equipment". * * @property int $production_line_id * @property int $equipment_id * * @property Equipment $equipment * @property ProductionLine $productionLine */ class ProductionLineEquipment extends \yii\db\Acti...
true
f0516d93ec690961da61046ed9da21b63deb26fa
PHP
johnlg919/shoppingcart
/app/Http/Controllers/ProductController.php
UTF-8
10,389
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use DB; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Product; use App\Product_option; // use Image; class ProductController extends Controller { /////////////////////////////////////////////////////////////////////////////////////////////////////...
true
de0bc1f2615e9c977152a7af82cd80d3e86a1aed
PHP
Fantomster/ff
/common/models/OrganizationContact.php
UTF-8
8,144
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use api_web\exceptions\ValidationException; use common\components\mailer\Mailer; use common\models\notifications\{EmailNotification, SmsNotification}; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; use yii\db\Exception; use yii\web\BadRequestHttpException; /** * This is...
true
9ecc9b1e512999923e60472641e0159f0a60dbc8
PHP
koala-framework/koala-framework
/Kwf/Util/Rrd/File.php
UTF-8
6,925
2.8125
3
[ "BSD-2-Clause" ]
permissive
<?php abstract class Kwf_Util_Rrd_File { private $_fields = array(); private $_fileName; private $_timeZone = null; protected $_interval = 60; public function __construct($fileName) { $this->_fileName = $fileName; } public function getTitle() { return $this->_fileN...
true
976438fe4df6b2eb7c1c297203b9327595b76320
PHP
bizarg/lessons
/app/Domain/User/User.php
UTF-8
3,343
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Domain\User; use App\Domain\Article\Article; use App\Domain\Room\Room; use App\Domain\Skill\Skill; use Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate...
true
b893772ccbf2c666fffe9728666402566c10581a
PHP
nerkpumper/egpsync
/src/bussines/managers/PromocionManager.php
UTF-8
1,945
2.609375
3
[]
no_license
<?php class PromocionManager extends BaseManager { protected $tableName = "promocion"; public function getAll () { $strQuery = "SELECT pro.id, p.id as idproducto, pro.codigo, pro.fechainicio, pro.fechafin, pro.precio, p.nombre, p.descripcion, m.nombre as marca, (CASE WHEN curdate() >= STR_...
true
68c04cb60669d3d8d6844e9d855ec978484c0324
PHP
kahlan/kahlan
/spec/Suite/Analysis/Debugger.spec.php
UTF-8
5,813
2.703125
3
[ "MIT" ]
permissive
<?php namespace Kahlan\Spec\Suite\Analysis; use Exception; use Kahlan\Analysis\Debugger; use Kahlan\Plugin\Double; describe("Debugger", function () { beforeEach(function () { $this->loader = Debugger::loader(); }); afterEach(function () { Debugger::loader($this->loader); }); des...
true
ba857224517dc9fe62515665f9215857ea363fa2
PHP
jaquepalmeira/Controle_Financeiro
/public/controllers/grafico/conexao.php
UTF-8
651
3.140625
3
[]
no_license
<?php /** * Classe de conexão com o banco */ class Conexao{ const root = "michel"; const senha = ""; private static $instancia = null; private static function Conectar(){ try { if (self::$instancia == null) { $sql = "mysql:host=localhost;dbname=grafico"; self::$instanci...
true
6c429b971f4a5f3f5de05291443800ebffe2b8bc
PHP
FPurchess/php-xom
/example/example.php
UTF-8
1,565
3.546875
4
[]
no_license
<?php /** * @author Florian Purchess */ require("../XmlObjectMapper.php"); // This is our example class with some attributes, // that shall be mapped by our xml-object-mapper class Book { private $id; private $title; private $authors; private $publishDate; public function getId() { ret...
true
27e69ff815d69357379f6f6af88f8a9dc1a3ef2d
PHP
risa00/php_practice
/PHP424/member_form.php
UTF-8
2,464
2.75
3
[]
no_license
<?php session_start(); if (isset($_SESSION["name"], $_SESSION["kana"], $_SESSION["email"], $_SESSION["tel1"], $_SESSION["tel2"], $_SESSION["tel3"], $_SESSION["address"], $_SESSION["sei"], $_SESSION["day"], $_SESSION["pass"])){ $send =$_SESSION["send"]; $name =$_SESSION["name"]; $kana =$_...
true
1454fe2e54fec230c7564ea7160cc7f2ef6240a5
PHP
lilashih/big-talk-design
/Interpreter/Context/PlayContext.php
UTF-8
243
2.90625
3
[]
no_license
<?php namespace Interpreter\Context; class PlayContext { private $text; public function __set($name, $value) { $this->{$name} = $value; } public function __get($name) { return $this->{$name}; } }
true
af27dd8dc94d0e039592aea3d197e3d86fe1487f
PHP
ccmachone/blankspace
/das/User_DA.php
UTF-8
935
2.75
3
[]
no_license
<?php class User_DA extends \DA { public function getByEmail($email) { $stmt = ""; $ref = new \ReflectionClass($this); $table = strtolower(str_replace("_DA", "", $ref->getName())); $stmt .= "SELECT * FROM " . $table . " WHERE email = ?;"; $values = array(); $value...
true
d0a44c0d6a1c8e1c200f13b2e7e2b92af81c14e3
PHP
jankx/option
/src/Specs/Section.php
UTF-8
2,222
2.984375
3
[ "MIT" ]
permissive
<?php namespace Jankx\Option\Specs; use Jankx\Option\Specs\Field; class Section { protected $id; protected $title; protected $subtitle; protected $description; protected $requiredSection; protected $hint; protected $fields = array(); private $children = array(); private $priority =...
true
8434fe55ebe3337ec04491ec08f8c8684ca67ef1
PHP
0ttone/php-oop-2
/product.php
UTF-8
1,085
3.3125
3
[]
no_license
<?php class Product { //public $id; public $name; public $category; public $description; public $price; //public $packaging; usa come esterna (boolean) } //class Product definisce tutte le cartatteristiche del prodotto //copiare diretttamente nell file e-shop TODO ---riv...
true
805c5697ad5bab035f9606dd6e2d6576ac2b1ea0
PHP
dimas1287/myWork
/incomingSms.php
UTF-8
287
2.703125
3
[]
no_license
<?php require_once 'autoload.php'; use Twiml; $response = new Twiml; $body = $_REQUEST['body']; if(strtolower($body) == "YES") { $response->message("Ok, we will call you right now"); } else if(strtolower($body) == "NO") { $response->message("Bye"); } print $response;
true
f3b29de8cad0c2010a6d01a27cc339acc7b46aad
PHP
tilongevo/rede-simples
/src/Project/Core/Model/BBHive/BbhUsuarioModel.php
UTF-8
1,283
2.625
3
[]
no_license
<?php namespace Project\Core\Model\BBHive; use Project\Core\Entity\BbhUsuario; use Project\Core\Model\AbstractModel; use Doctrine\ORM; class BbhUsuarioModel extends AbstractModel { protected $entityManager = null; protected $repository = null; public function __construct(ORM\EntityManager $entityManager...
true
118740be3ab082219776e1cecc047621fd8811cf
PHP
gitKarim/food
/src/Entity/User.php
UTF-8
2,816
2.65625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; /** * @ORM\Entity(repositoryClass=UserRepository::class) */ class User extends AbstractControlle...
true
e2318b50c339ae9a78cb74308b7f5ff86dc4a76c
PHP
mambax7/demoxadr
/class/xadr/Blocks/Responders/TodoBlockResponderSuccess.php
UTF-8
926
2.53125
3
[]
no_license
<?php namespace Geekwright\DemoXadr\Blocks\Responders; use Xmf\Xadr\Responder; class TodoBlockResponderSuccess extends Responder { /** * Execute the responder * * @return a Renderer instance. */ public function execute() { $list=array(); $todolist=$this->request()->at...
true
c425127e14e40a4fbf50320a40e94dfa0e3c503b
PHP
bmelim/logstats
/app/Domain/Events/NewRecord.php
UTF-8
319
2.90625
3
[ "MIT" ]
permissive
<?php namespace Logstats\Domain\Events; use Logstats\Domain\Record\Record; class NewRecord { private $record; /** * @param Record $record */ public function __construct(Record $record) { $this->record = $record; } /** * @return Record */ public function getRecord() { return $this->record; } }
true
eb573b9d5a9364d349c0001413c86461f864966a
PHP
mariofreyle/happyweb
/demo.php
UTF-8
4,185
2.78125
3
[]
no_license
<?php //BASADO EN JPEG, PARA USAR EN PNG, GIF ETC CAMBIAR EL NOMBRE DE LAS FUNCIONES if (isset($_FILES['imagen1']) && $_FILES['imagen1']['tmp_name']!=''){ //Imagen original $rtOriginal=$_FILES['imagen1']['tmp_name']; //Crear variable $original = imagecreatefromjpeg($rtOriginal); //Ancho y alto máximo $max_ancho =...
true
01dffe20ed39858bcd90ea420f06ad2047943bdb
PHP
ksrnnb/php_framework
/framework/controllers/HomeController.php
UTF-8
451
2.609375
3
[]
no_license
<?php class HomeController extends Controller { public function index() { $user = User::where('id', '1') ->where('email', 'test@test.com') ->first(); var_dump($user); /* object(User)#10 (4) { ["id"]=> int(1) ["name"]=> st...
true
e08b787e55010f8ca76d94d723d0ec4b663bfd9e
PHP
ikimj420/philosophy
/app/Models/Category.php
UTF-8
1,506
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Category * @package App\Models * @version October 23, 2019, 11:09 am UTC * * @property \Illuminate\Database\Eloquent\Collection blogs * @property \Illuminate\Database\Eloquent\Collection exercises * @p...
true
e33355090d2877413d552f633b2d10cb54414fd0
PHP
JimmieC/FirstYearProject
/public_html/othersstuff/dump/index3.php
UTF-8
1,184
3.09375
3
[]
no_license
<?php $searchthis = "<a target"; //$searchthis är variablen. //$Searchthis är lika med "<a target". //vad innebär "<a target"? //Dollartecken betyder att det är en variabel. $matches = array(); // Här defineras $matches som Array. $handle = @fopen("text/teachers_id.txt", "r"); //$hand...
true
095e14996a9cc9c0f3b61a2e318a6514942c2363
PHP
2bl4nk/Faker-Provider-Animals
/test/FakerProviderAnimals/AnimalsTest.php
UTF-8
729
2.765625
3
[ "MIT" ]
permissive
<?php namespace FakerProviderAnimals\Test\Provider\en_GB; use Faker\Generator; use FakerProviderAnimals\Animals; /** * Class AnimalsTest * * @package FakerProviderAnimals\Test\Provider\en_GB */ class AnimalsTest extends \PHPUnit_Framework_TestCase { /** * @var Generator */ private $faker; ...
true
73b496399a1f26107e0fb062092bf8147ac51a9c
PHP
aditiV28/MyPrograms
/htdocs/showDB.php
UTF-8
705
2.96875
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel='stylesheet' type='text/css' href='//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'> <h1 align="center"> PHP MyAdmin Application </h1> <h3 align="center"> List Of Databases </h3> </head> <body> <?php include 'connection.php'; $sql = 'show DATABASES'; $...
true
ec536c5e0bafc25c2eef2b5f2f2fa1cc824009ad
PHP
vladchebotarev/email-marketing-service
/app/Mail/MailCampaign.php
UTF-8
968
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class MailCampaign extends Mailable { use Queueable, SerializesModels; protected $email_object; /** * Create a new message instan...
true
a2f1e186a292b07e61d27577b1e1e0d6ea91b255
PHP
rpsimao/Ocorrencias2.0
/application/models/Pessoal.php
UTF-8
751
2.515625
3
[]
no_license
<?php class Application_Model_Pessoal { private $pessoal; public function __construct () { $config = Zend_Registry::get('pessoal'); $db = Zend_Db::factory($config->database); Zend_Db_Table_Abstract::setDefaultAdapter($db); $this->pessoal = new Application_Model_D...
true
d8771cb42c9dddeb231ceadc0466953e74da98b7
PHP
Shweta-Bhat-2000/51_Highgo
/single request.php
UTF-8
2,213
2.59375
3
[]
no_license
<?php if (isset($_POST['submit'])) { if (isset($_POST['fname']) && isset($_POST['lname']) && isset($_POST['email']) && isset($_POST['dob']) && isset($_POST['Adhar no']) && isset($_POST['profession']) && isset($_POST['income']) && isset($_POST['reason']) && isset($_POST['preferences'])) { ...
true
a714dbabaef2d2865c0a326af7bbade1938696be
PHP
ptprakhar/meetup_api
/application/controllers/api/Participants.php
UTF-8
7,169
3.078125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); /** @author :: Prakhar @method : GET, POST, PUT @description This API ReturnS the list of participants registered * */ require APPPATH . 'libraries/REST_Controller.php'; class Participants extends REST_Controller { public function __constru...
true
672f04563099fbeb640fd001777eeeda4fecaa96
PHP
EricDav/BetCommuntiy
/Controllers/UserProfile.Controller.php
UTF-8
4,550
2.796875
3
[]
no_license
<?php class UserProfileController extends Controller { const DEFAULT_ADD_PROFILE = 180191; public function __construct($request) { parent::__construct($request); $this->clientId = $request->query['id']; // The sum of the default and the user id e.g if the user id is 1 the cl...
true
686888c20db349d99187a92f42e1e0eae45fefcb
PHP
MB183/Avatar
/PHPavatar/User/create_user.php
UTF-8
2,816
2.703125
3
[]
no_license
<?php include 'vendor/autoload.php'; use App\Entity\User; use App\Model\UserModel; use App\Service\Avatar\SvgAvatarFactory; use App\Service\Helpers\FileSystemHelper; use Core\DB\Database; use DI\ContainerBuilder; use Symfony\Component\Dotenv\Dotenv; if(!empty($_POST)) { $dotenv = new Dotenv(); $dotenv->load(_...
true
e334541e585cc822ac7fd1c0783d4967d33a2f79
PHP
mingshi/phpbrew
/src/PhpBrew/Downloader/UrlDownloader.php
UTF-8
782
2.9375
3
[]
no_license
<?php namespace PhpBrew\Downloader; class UrlDownloader { public $logger; function __construct($logger) { $this->logger = $logger; } function download($url) { $parts = parse_url($url); $basename = basename( $parts['path'] ); $this->logger->info("===> Downloadi...
true
7b43052b5cfa16f132d3883f167f15c349360164
PHP
mit-social-computing/approach
/ee/expressionengine/third_party/content_elements/ft.content_elements.php
UTF-8
40,707
2.640625
3
[ "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Content_elements_ft fieldtype Class - by KREA SK s.r.o. * * @package Content_elements * @author KREA SK s.r.o. * @copyright Copyright (c) 2012, KREA SK s.r.o. * @link http://www.krea.com/docs/content-elements */ class Content_El...
true
0c939cda85b241b7d56fa7651ee44cf27e317b4a
PHP
jmartinmachado/Eclipse-INK
/eclipseInkV.3.0/FDE.php
ISO-8859-10
10,630
2.59375
3
[]
no_license
<? Function Abrir_txt($nombre){ $temp=""; if (file_exists($nombre)){ $archivo=file($nombre); $lineas=count($archivo); for($i=0;$i<$lineas;$i++){ $temp.=$archivo[$i]; } }else{ $temp="Up's"; } return $temp; } function traducir_url($url){ if(Bandera("cortar")){ if($url=="index.php"){ return "http:/...
true
823e5fabd896831cb6c8f0c00c55754eea8cc724
PHP
onetonphoton/evecraft
/src/Model/Datasource/SystemsSource.php
UTF-8
498
2.53125
3
[]
no_license
<?php namespace App\Model\Datasource; use App\Model\Datasource\EveOnlineSource; use Network\Http\HttpSocket; class SystemsSource extends EveOnlineSource { var $description = 'Solar System DataSource'; function getSystemData() { // $url = $this->config['http']; $data = $this->getJsonData('solarsystems');...
true
ad3fd6ae82e39eb45a33257d4ef7e0219b9fb081
PHP
andycheg/php-libmind
/src/EasyMind/Exporter.php
UTF-8
2,262
2.765625
3
[]
no_license
<?php namespace PhpLibMind\EasyMind; use PhpLibMind\Document; use PhpLibMind\Topic; use PhpLibMind\TopicStyle; class Exporter { const THEME = "default"; const NOT_DEFINED = "notDefined"; const DEFAULT_COLLAPSED = false; const DEFAULT_TYPE = "attached"; const BACKGROUND_COLOR = "#FFFFFF"; public function expo...
true
771ae9931bcda303b7582b77fcb1116be97b0485
PHP
flash-global/notification-common
/src/Transformer/Alert/Android/MessageTransformer.php
UTF-8
1,032
2.515625
3
[]
no_license
<?php namespace Fei\Service\Notification\Transformer\Alert\Android; use Fei\Service\Notification\Entity\Alert\Android; use League\Fractal\TransformerAbstract; /** * MessageTransformer */ class MessageTransformer extends TransformerAbstract { /** * @param Android\Message $message * @return array ...
true
83c3d5e44f439b37d9a7ec951465a74e376aa8fb
PHP
gsubp/controleleds
/php/arduino.php
UTF-8
342
2.71875
3
[]
no_license
<?php // Conecta na porta $port = fopen("COM5", "w+"); // Em alguns casos a Arduino pode reiniciar, por isso // é bom esperar para enviar informação depois de conectar sleep(2); fwrite($port, $_POST['estado']); // Espera para que o dado enviado pelo PHP chegue até a Arduino sleep(1); // Fecha a conexão com a porta ...
true
cf572d8e0ea80e088bb5852dedf316e2fdea0477
PHP
ectrimble20/LeisureConstructionWebsite
/Application/Router.php
UTF-8
6,534
2.515625
3
[]
no_license
<?php namespace Leisure\Application; use Leisure\Application\Controller\ControllerFactory; use Leisure\Library\Common\Audit; use Leisure\Library\Log\Log; use Leisure\Library\Session\Session; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Slim\App; use Slim\Container; class ...
true
68b5380384c272100f485238abdab0c64135598f
PHP
id0612/openapi-sdk-php
/src/Green/V20170823/MarkAuditContent.php
UTF-8
2,863
2.53125
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace AlibabaCloud\Green\V20170823; use AlibabaCloud\Client\Request\RpcRequest; /** * Request of MarkAuditContent * * @method string getAuditIllegalReasons() * @method string getSourceIp() * @method string getAuditResult() * @method string getIds() */ class MarkAuditContent extends RpcRequest { ...
true
e967e0a859b176101f6385e2ef75c7c1d222aa7e
PHP
wangcch/PHPLearing
/basic/tools/file.php
UTF-8
525
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: DEMON * Date: 2017/5/10 * Time: 18:01 * * 文件操作 */ ////write data //$f = fopen('data','w'); // //if($f) { // fwrite($f, 'Hello php'); // fclose($f); // echo 'ok'; //}else{ // echo 'error'; //} echo "<br>"; //read data // $f2 = fopen('data','r'); ////$conten...
true
38cb3e7c27c7c43239b3c6d57ae8a078a77e69a3
PHP
hollodotme/fast-cgi-client
/src/Sockets/SocketId.php
UTF-8
1,165
3.1875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace hollodotme\FastCGI\Sockets; use Exception; use InvalidArgumentException; use function random_int; final class SocketId { /** @var int */ private $id; /** * @param int $id * * @throws InvalidArgumentException */ private function __construct( int $id ) { $this->...
true
d137e611581495b5f5bbd17e21006ebfb5e630fd
PHP
imjangid/bodymakegym
/trainer/index.php
UTF-8
2,066
2.6875
3
[]
no_license
<?php session_start(); include "../connect.php"; include "../valid_user.php"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Trainer</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/style.css"> </head> <?php $adm...
true
7b2290536e003f7ea9e5a521e887c68306ed39d8
PHP
matheusmauricio/DesenvolvimentoWeb
/Desenvolvimento Web/listarUsuario.php
UTF-8
1,156
2.921875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>:: Listando os Usuários</title> </head> <body> <?php include_once ("conn/conexao.php"); $status = array("Inativo", "Ativo"); $query = "SELECT * FROM `ifes`.`usuario` WHERE `status` = 1"; $queryExec = mysqli_query($co...
true
f276963dd29e1adb731bd72c19e7b7853e6eb907
PHP
Syaqinahsafar/rekweb-exercise
/object 2.php
UTF-8
341
3.34375
3
[]
no_license
<?php class Student { private $name, $age, $matric_num; public function _construct( $name, $age, $matric_num) { $this->name = $name; $this->age = $age; $this->matric_num = $matric_num; } public function getName() { return $this->name; } } $stdnt = new Student ('SyaiqnahSafar', 22, 50135135); echo $...
true
f4017b42fe29a768687db150b1791734a7d4fffb
PHP
jwhulette/pipes
/src/Transformers/PhoneTransformer.php
UTF-8
1,595
3.03125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Jwhulette\Pipes\Transformers; use Jwhulette\Pipes\Contracts\TransformerInterface; use Jwhulette\Pipes\DataTransferObjects\PhoneDto; use Jwhulette\Pipes\Frame; final class PhoneTransformer implements TransformerInterface { /** @var array<int,PhoneDto> */ protected arr...
true
7f09eeaeeade37e45d9be40db5e68766ceb0ab76
PHP
kazist/system
/Extensions/Code/Classes/AutoDiscover.php
UTF-8
2,793
2.546875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace System\Extensions\Code\Classes; defined('KAZIST') or exit(DIE_MSG); use Kazist\KazistFactory; use Kazist\Service\Da...
true
180dcf3ad3427c0ae6c274beac41aa9681f979d9
PHP
hcthuong/genexpress
/module/category/category.class.php
UTF-8
6,465
2.53125
3
[]
no_license
<?php class Category{ function Category(){ global $db; } //Begin category function category_add($module,$category_name, $category_name_en,$parent_category, $information_productcat,$type){ global $db; $table_name = $module.'_category'; $create_by = $_SESSION['logined_information_detail']['Admin_ID']; $create_time =...
true
e2562eb24b15335eeac713318ea0d04bb1e68ed6
PHP
monddiestro/chai
/application/models/Member_model.php
UTF-8
2,705
2.640625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Member_model extends CI_Model { // add new member to members_tbl function push_member($data) { $this->db->insert('members_tbl', $data); } // function to pull members from members_tbl function pull_members($unit_id,$...
true
ef0cfeb92d2db5c6876764f6d92c674ec422c26a
PHP
heyg0811/idecom
/fuel/app/classes/model/developer.php
UTF-8
1,547
2.828125
3
[]
no_license
<?php /** * Description of developer * * @author b1225 */ class Model_Developer extends \Orm\Model { // テーブル情報を設定 protected static $_table_name = 'developer'; protected static $_properties = array( 'id', 'user_id', 'grade', 'major', 'genre', 'skill', ); protected static $_pr...
true
0fb3a3d3167da6fcb41cd010476d0b329fe4accc
PHP
irbees2008/Plugins-NGCMS
/update_to_git/lib/CSystemUpdate.php
WINDOWS-1251
5,512
2.546875
3
[]
no_license
<?php /* * Class CSystemUpdate * Description: Update system files, templates, plugins with RPC from GitHub */ class CSystemUpdate { protected $except; protected $user; protected $repository; protected $engine_version; protected $answer = []; /** * @param $params * @throws CSyste...
true
5d09558bfb5ef1ca25854796dfd074d4844d6d11
PHP
dingshutong/nada
/application/controllers/admin/Studycollections.php
UTF-8
1,768
2.515625
3
[ "MIT" ]
permissive
<?php /** * Study Collections * * Add/remove collections to a study * */ class StudyCollections extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model('Catalog_model'); $this->load->helper('querystring_helper','url'); $this->load->helper('fo...
true
42d0ebb6b36ddd6a93e9ae431e7f7bf65a9582ae
PHP
zymITsky/omega
/database/migrations/2016_05_17_114341_alter_course_enrollments_score_column.php
UTF-8
2,654
2.59375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; class AlterCourseEnrollmentsScoreColumn extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('course_classes', function ($table) { $table->integer('score_a_percent'...
true
9fa84ec1d90c0d0de063f3f608465ed2fa645ab7
PHP
juancruzparise/Final_web3
/Final_ProdWeb3/Admin/views/individual.php
UTF-8
1,651
2.5625
3
[]
no_license
<?php require __DIR__ . '/../php/controllers/individual.controlador.php' ; ?> <!-- Funcion Javascript --> <script> function goBack() { window.history.back() } </script> <!-- //Boton volver --> <button onclick="goBack()" class="botondevolver">Back</button> <!DOCTYPE html> <html lang="en"> <head> <met...
true
5c253260d552e8dc67b6374843003987de2e9436
PHP
sinkdb/homestead
/class/command/RemoveMaskCommand.php
UTF-8
1,010
2.578125
3
[]
no_license
<?php /** * Description * @author Jeff Tickle <jtickle at tux dot appstate dot edu> */ class RemoveMaskCommand extends Command { public function getRequestVars() { $vars = array('action' => 'RemoveMask'); return $vars; } public function execute(CommandContext $context) { ...
true
3aa24d03e588ee4245a4da99e3543ec621d67969
PHP
huiyoo99/shopping
/shopping/purchase_record/purchase_record.php
UTF-8
1,068
2.65625
3
[]
no_license
<?php if(!isset($_SESSION['buyer_ID'])) { echo '還未登入喔!<br><br>'; } else { require_once "../method/connect.php"; $buyer_ID = $_SESSION['buyer_ID']; $sql = "SELECT * FROM form WHERE buyer_ID='$buyer_ID'"; $result = $connect->query($sql); //列出購買紀錄 if($result->num_rows > 0) { ...
true
b2e3ce9871f17b9cdd92983492c65d7ed819057a
PHP
datnc58/Uet_lamgiau
/application/libraries/Image.php
UTF-8
1,708
2.703125
3
[ "MIT" ]
permissive
<?php /* * jdflsjgd */ require_once('Img.php'); require_once('My_Utf8.php'); class Image { public function resize($filename, $width, $height) { if(!file_exists(ROOT_PATH .'upload/' . $filename) || !is_file(ROOT_PATH .'upload/' . $filename)) { die('here'); return; } $utf8...
true
60567d58712110fe2081d230da5ac80d3f713aa5
PHP
walideduc/phpspec_mvovies
/spec/MovieSpec.php
UTF-8
721
2.9375
3
[]
no_license
<?php namespace spec; use Movie; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class MovieSpec extends ObjectBehavior { function let() { $this->beConstructedWith('I\'m a legend'); $this->shouldHaveType(Movie::class); } function it_can_be_rated() { $this->setRating(5...
true
ae7e37b42688fe479aa216f3a8240a453a2fdac0
PHP
PierreLenoble/TEFF
/Utils/Routing/RouteCollection.php
UTF-8
1,786
3.03125
3
[]
no_license
<?php class RouteCollection { private static $_routes = array(); private static $startUrl = ''; public static function add($name, $path, $controller) { unset(self::$_routes[$name]); $route = new Route($path, $controller); self::$_routes[$name] = $route; } ...
true
ebb59adda3d138e2a0e7a8bfa8f4092f85d0f449
PHP
JuniorDallagnolo/giftr_api
/giftr/includes/inc_peoplePUT.php
UTF-8
1,961
3.203125
3
[]
no_license
<?php //TRANSFORMING PUT INTO A GLOBAL VARIABLE USING A STREAM CLASS TO READ RAW DATA //require_once "class_Stream.php"; //$data = array(); //new stream($data); //$_PUT = $data['post']; //WORKING SOLUTION $rawString = file_get_contents("php://input"); $_PUT = json_decode($rawString, true); //CHECK AND VALIDATE THE PA...
true
8d4d0d7d67280200948d36963244a181bbab006d
PHP
msyrl/dsstopsis
/database/seeds/AlternativesTableSeeder.php
UTF-8
789
2.6875
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Faker\Factory as Faker; use App\Alternative; use App\Criteria; class AlternativesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create('id_ID'); for ($i=0; ...
true
f936074965d8c689a2033f202230d91e7f12fdc4
PHP
Danack/example
/vendor/danack/params/lib/Params/Rule/Order.php
UTF-8
1,824
2.859375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Params\Rule; use Params\Rule; use Params\ValidationResult; use Params\Value\OrderElement; use Params\Functions; use Params\Value\Ordering; use Params\OpenApi\ParamDescription; /** * Class Order * * Supports a parameter to specify ordering of results * For example "+name,...
true
86c2f663b323e2fb9bd613b9265f644ed1902443
PHP
asharifineyestani/mm
/app/Rules/Timestamp.php
UTF-8
881
2.546875
3
[]
no_license
<?php namespace App\Rules; use Carbon\Carbon; use Hekmatinasser\Verta\Verta; use Illuminate\Contracts\Validation\Rule; class Timestamp implements Rule { /** * Create a new rule instance. * * @return void */ public function __construct() { // } /** * Determine if ...
true
06e8396320626cbf679f6ad4df27bc29d28203c6
PHP
satetheus/adscreen
/admin/index.php
UTF-8
3,583
2.71875
3
[]
no_license
<?php include "funcs.php"; session_start(); if(!isset($_SESSION['auth'])) { header("Location: /admin/pass"); } elseif($_SESSION['auth'] != true) { header("Location: /admin/pass"); } echo '<!DOCTYPE html> <html> <body> <h2>Upload Images</h2> <form action="" method="post" enctype="multipart/form-data"> <s...
true
50e09794668a2d6350c24ccf572d7f1b201a4d10
PHP
WeiMa3/AtypicalGamers
/db.php
UTF-8
3,530
2.796875
3
[]
no_license
<?php class dbConnection{ protected $conn; public function getConnInstant(){ if (!isset($this->conn)){ $this->conn = new PDO('mysql:host=localhost;dbname=gameRating;charset=utf8mb4','root','root'); } return $this->conn; } public function getPlatNames(){ $stmt = $this->getConnInstant()->q...
true
071fa65b65f28127ff299272c09a154c3c12e603
PHP
andyinabox/greight
/apps/frontend/modules/words/actions/actions.class.php
UTF-8
4,400
2.9375
3
[]
no_license
<?php /** * words actions. * * @package greight * @subpackage words * @author Your name here * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class wordsActions extends sfActions { /** * Executes index action * * @param sfRequest $request A request object ...
true
1fb6884fe115f0aaddff3b6832824ea744f44953
PHP
barryvanveen/blog
/app/Application/Articles/ArticleRepository.php
UTF-8
2,646
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Application\Articles; use App\Application\Articles\Events\ArticleWasCreated; use App\Application\Articles\Events\ArticleWasUpdated; use App\Application\Interfaces\EventBusInterface; use App\Application\Interfaces\QueryBuilderInterface; use App\Domain\Articles\ArticleRepos...
true
94224e598548fac7aa90fe9b99076b7b7904c176
PHP
span20/Kallay
/includes/functions.php
UTF-8
24,547
2.984375
3
[]
no_license
<?php /** * kilistazza egy konyvtar tartalmat a megadott file-ok tipusa alapjan * * @param string mappa helye * @param string file tipusa * @param array kihagyando file-ok listaja * @param string ha 0, akkor normal modon kesziti a tombot, ha 1, akkor a tomb azonosito is a nev lesz * * @return array file-ok lis...
true
6c93419733a3d4af719edf145935056ff4bfc905
PHP
Netlte/Components
/src/Components/Dashboard/Control.php
UTF-8
1,842
2.796875
3
[]
no_license
<?php namespace Netlte\Components\Dashboard; use Netlte\Utils\UI\BaseControl; use Nette\ComponentModel\Container; use Nette\ComponentModel\IComponent; /** * @author Tomáš Holan <mail@tomasholan.eu> * @package netlte/components * @copyright Copyright © 2019, Tomáš Holan [www.tomasholan.eu] */ clas...
true
fc543357b06d6cc6bac97f15b660972f8b46fd6f
PHP
agentile/HelloSign-PHP
/examples/team.php
UTF-8
2,233
2.734375
3
[]
no_license
<?php // path to hellosign.php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'hellosign.php'; $hs = new \HelloSign\API('user@example.com', 'password', 'apikey'); //$hs::$use_curl = false; // Create team try { $response = $hs->api( 'team/create', array( 'name' => 'Th...
true
5c17736914fab5b51928a76bf8e9aa2429588925
PHP
slevomat/coding-standard
/tests/Sniffs/Complexity/data/cognitive/switchMissingBreak.php
UTF-8
642
3.234375
3
[ "MIT" ]
permissive
<?php /** * Test that our token stack is properly maintained with the "missing" break statement */ function caseWithoutBreak($string, $thing) { switch ($string) { case 'foo': switch ($thing) { case 'ding': case 'dong': $string = 'dang'; ...
true
876e78d8d8be1a65912ed0d2ddb2813339936804
PHP
andrespineli/time-tracker
/src/Window.php
UTF-8
547
3.375
3
[]
no_license
<?php declare(strict_types=1); namespace TimeTracker; class Window { private $name; private $seconds = 0; public function __construct(string $name) { $this->name = $name; } public function name(): string { return $this->name; } public function secondIncrease() ...
true
26aa783e3dc3092e78c7286ae9b35e9261739cb7
PHP
YaroslavBemov/laraProject
/database/migrations/2020_12_29_082952_create_category_and_news_table.php
UTF-8
1,361
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCategoryAndNewsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('categor...
true
406224a85ebbcb60071348ac2169d63ccc99bf9e
PHP
glena/PHP-JS
/src/Transpilers/ElseStatementTranspiler.php
UTF-8
690
2.765625
3
[ "MIT" ]
permissive
<?php namespace Glena\PhpJs\Transpilers; use PhpParser\Node\Stmt\Else_; use Glena\PhpJs\Buffer; use Glena\PhpJs\TabLevelBuffer; use Glena\PhpJs\Scope; class ElseStatementTranspiler { public function process(Else_ $statement, Buffer $buffer, Scope $scope) { $buffer->append("else"); $buffer->newLine(); ...
true
ef2605d6480561194d3b1b16c8757107c3288e6d
PHP
di3/laravel-cors
/app/Http/Middleware/CorsMiddleware.php
UTF-8
1,763
2.71875
3
[]
no_license
<?php /** * cors header middleware for laravel framework * @author di <di3@gmx.net> */ namespace App\Http\Middleware; use Closure; use Exception; use Illuminate\Contracts\Routing\Middleware; use Illuminate\Http\Response; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; use App\Exceptions\Handler; ...
true
0a23724c0339102e83edc22ba6c55fb83cf132f3
PHP
roodriiguezzzz/smr2b_adrian
/triangulo.php
UTF-8
657
3.078125
3
[]
no_license
<?php function segun_lados($a,$b,$c){ $r='escaleno'; if($b==$c or $a==$b or $c==$a) $r='isósceles'; if($a==$b and $b==$c) $r='equilatero'; return $r; } echo segun_lados(1,1,1).' = equilatero<br/>'; echo segun_lados(2,1,1).' = isósceles<br/>'; echo segun_lados(3,2,1).' = escaleno<br/>'; echo segun_lados(2,2,2).' = e...
true
ed759b28d20988328d0154c37510ca7e0e67f8d8
PHP
lukatabinns/whatusersdo
/app/Http/Controllers/AuthController.php
UTF-8
1,761
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Auth; use App\User; use Redirect; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use DB; use URL; class AuthController extends Controller { public function getRegister() { return view('auth.register'); } public function getLogin() ...
true
1a8aad2ce420eeba6b909b6ed752317b2403ef05
PHP
Finnology/oro-platform
/src/Oro/Bundle/ApiBundle/Normalizer/ObjectNormalizerRegistry.php
UTF-8
1,621
2.859375
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\ApiBundle\Normalizer; use Oro\Bundle\ApiBundle\Request\RequestType; use Oro\Bundle\ApiBundle\Util\RequestExpressionMatcher; use Psr\Container\ContainerInterface; /** * Contains all object normalisers * and allows to get a normaliser suitable for a specific object type and a request type....
true
01d306f1299115ce602536831aff33658c2bc298
PHP
BlondelSeumo/Live-Video-Chat-Messaging-Live-Class-Meeting-Webinar-File-Sharing-Whiteboard
/vendor/livewire/livewire/src/Commands/MakeCommand.php
UTF-8
3,646
2.65625
3
[ "MIT" ]
permissive
<?php namespace Livewire\Commands; use Illuminate\Support\Facades\File; class MakeCommand extends FileManipulationCommand { protected $signature = 'livewire:make {name} {--force} {--inline} {--test}'; protected $description = 'Create a new Livewire component'; public function handle() { $th...
true
46aa2211b8ed4c2c299aa0789c04ebd697fa941c
PHP
jordypereira/web-backend-oplossingen
/Opdracht-Classes-Extends/application.php
UTF-8
1,821
3
3
[ "MIT" ]
permissive
<?php function __autoload($class){ include 'classes/' . $class . '.php'; } $leeuw = new Animal("Arnold", "male", 100); $zeeluipaard = new Animal("Freddy", "female", 120); $meeuw = new Animal("Donald", "male", 70); $simba = new Lion("Simba", "male",50, "Congo Lion"); $scar = new Lion("Scar", "male", 170, "Kenia Lion"...
true
ed7dde7301e719f7fd9d04dd99216b8dc9f56e40
PHP
eduvallejo/sightReading
/js/select/getNamesPatterns.php
UTF-8
775
2.765625
3
[]
no_license
<?php // $targetName = $_GET["name"]; $path = dirname(__FILE__); //echoes path: /var/www/html/conway/js/select $path = str_replace("js/select", "songs", $path); $nameArray = array(); $objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST); foreach($object...
true
6273c7dd5ce636cb1a936c9fb2785ab092226735
PHP
MeetPatel5598/Library-Management-System
/get_book.php
UTF-8
761
2.5625
3
[]
no_license
<?php session_start(); $_SESSION['flagTwo'] = 0; require_once("includes/db_connection.php"); if(!empty($_POST["bookid"])) { $bookid=$_POST["bookid"]; $sql ="SELECT title,id FROM book WHERE id = '$bookid'"; $results = mysqli_query($connection,$sql); $cnt=1; if(mysqli_num_rows($results) > 0){ foreach ($results as...
true
9a3105ec1ccb4efac265caece76b5fdaa90adbb9
PHP
iliancho99/WebDevExam
/Framework/Loader.php
UTF-8
1,651
2.890625
3
[]
no_license
<?php namespace SCart; final class Loader { private static $namespaces; private function __construct(){ } public static function registerAutoLoad() { spl_autoload_register(array("\\SCart\\Loader", 'autoload')); } public static function autoload($class){ foreach (self::$name...
true
7320ebdab54216e572061adfa7de268c3129a99d
PHP
jesmarquez/swvirtual
/wsmoodle.php
UTF-8
10,529
2.671875
3
[]
no_license
<?php /* ----------------------------------------------------------------- Solicita al webservice de moodle nativo los cursos matriculados por medio del id del usuario ----------------------------------------------------------------- */ function getUserEnrolled($userid, $shortname) { $domain='https:...
true
394ddc375baa0193d1e9a1d5d84992e6f84a40ae
PHP
Beerflaschebrunzer/Map-Parser-for-Dofus-Key-Finder
/core/parser/MapParser.php
UTF-8
1,491
2.953125
3
[]
no_license
<?php class MapParser extends Parser { const FILE_EXTENSION = ".swf"; const POSSIBLE_INDEXES = [ "id", "date", "mapData", "key", "decryptedData", "sa" ]; public $values = []; /** * @param AS2Assignment $sta...
true
cd91ad403a7c6d8318ac07dc7c1e15308c78ac41
PHP
BookOfOrigin/Ori
/vendor/slashtrace/slashtrace/tests/StackTrace/StackFrameContextExtractorTest.php
UTF-8
2,133
2.8125
3
[ "MIT" ]
permissive
<?php namespace SlashTrace\Tests\StackTrace; use SlashTrace\StackTrace\StackFrameContextExtractor; use SlashTrace\Tests\TestCase; use InvalidArgumentException; use RuntimeException; class StackFrameContextExtractorTest extends TestCase { /** @var StackFrameContextExtractor */ private $extractor; protec...
true
47d8291f92e632ce37182267a1d67692e450276b
PHP
dmt-software/xml-parser
/src/Source/StreamParser.php
UTF-8
924
3.140625
3
[ "MIT" ]
permissive
<?php namespace DMT\XmlParser\Source; use InvalidArgumentException; /** * class StreamParser * * Parses a resource stream into characters. */ final class StreamParser implements Parser { /** @var resource */ private $stream; private int $length = 1024; /** * @param resource $stream */ ...
true
e391898efb65dca8b67511a1fde49727eed25b84
PHP
Eduardonb/notas
/src/Notes/Model/Note.php
UTF-8
1,367
2.8125
3
[]
no_license
<?php namespace IW\NoteManager\Notes\Model; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="note") */ class Note { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * * @var int */ private $id; /** * @var string * @ORM\Column(t...
true
0f8d3439ac8cc83948882e32997fd532d32941a1
PHP
mas212/coupon
/app/Order.php
UTF-8
1,050
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Auth; use Cart; use App\OrderProduct; use Illuminate\Database\Eloquent\Model; class Order extends Model { protected $fillable = ['total']; public function orderProducts() { return $this->belongsToMany('App\Product'); } public function orderProductDetail() { ...
true
0da9df7b47cfd373db14b638af4023ffb12ef10b
PHP
dawid-trybulowski/bibliotekarz_beta
/app/Http/Services/Admin/AdminPaymentService.php
UTF-8
2,049
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Services\Admin; use App\Http\Helpers\Message; use App\Http\Services\Content\PaymentsService; use App\Http\Services\Shared\ConfigService; use App\Models\Config; use App\Models\Payments; use App\Models\User; class AdminPaymentService extends PaymentsService { public function __construct(...
true
32d6f8b0db0e8c108e63b25b273962dbd7b2c18b
PHP
78182648/wallet-address-validator
/src/Address/Validator/Bch.php
UTF-8
1,366
2.671875
3
[]
no_license
<?php namespace WalletAddressValidator\Address\Validator; use WalletAddressValidator\Address\AddressInterface; use WalletAddressValidator\Address\Validator\Support\CashAddress; class Bch extends AbstractBase58 { const NEW_ADDRESS_PREFIX = 'bitcoincash:'; protected $base58PrefixToHexVersion = [ '1' =...
true
e09be2f5bfe4ed4abb9bc75a047264d1967e4163
PHP
milkcreation/deprecated-presstify-core
/presstify/bin/lib/Checker/Checker.php
UTF-8
4,349
3.21875
3
[]
no_license
<?php namespace tiFy\Lib; class Checker { /* = CONTROLEURS = */ /** == Vérifie si une chaine de caractères est vide == **/ public static function isEmpty( $value ) { if( ! $value ) return false; return true; } /** == Vérifie si une chaine de caractères ne contient que des chiffres == **/ public sta...
true
86cf76591be220741da0c39575d890b6699fe86d
PHP
shigemori123/PHPTraining
/20170509/Loop_Kadai2.php
UTF-8
139
3.09375
3
[]
no_license
<?php $colors = ["赤","緑","青","黄色"]; for($i = 0; $i < count($colors); $i++){ echo "{$colors[$i]}<br>"; } ?>
true
7fa40edab2a4ce1d7d7539a7cb9e855f410caa4d
PHP
webDevT/php-pw2
/index.php
UTF-8
2,383
2.59375
3
[]
no_license
<?php session_start(); if(!empty($_SESSION['login']) ){ ?> <?php include ("db.php"); echo "<div style='justify-content: space-between; display: flex; margin-top: 25px;'><div style='color: #527648; font-size: 20px; font-weight: bold; padding-top: 10px;'>Вы вошли на сайт, как ".$_SESSION['login'] . '</d...
true
d6061ccc6e48bff003407c33eeb160c07a97eba3
PHP
serbinario/seracademico-laravel
/app/Http/Controllers/Doutorado/ProfessorDocumentoController.php
UTF-8
2,880
2.6875
3
[ "MIT" ]
permissive
<?php namespace Seracademico\Http\Controllers\Doutorado; use Illuminate\Http\Request; use Seracademico\Http\Requests; use Seracademico\Http\Controllers\Controller; use Seracademico\Services\Mestrado\ProfessorService; class ProfessorDocumentoController extends Controller { /** * @var AlunoService */ ...
true
1f164b5e212b5e2e1231d1e6b1d9e376789d5bb4
PHP
zbzalex-work/php-microframework
/src/Component/DependencyInjection/ContainerBuilder.php
UTF-8
6,281
2.515625
3
[]
no_license
<?php namespace Xand\Component\DependencyInjection; use Xand\Component\DependencyInjection\Extension\ExtensionInterface; /** * Class ContainerBuilder * * @author Sasha Broslavskiy <sasha.broslavskiy@gmail.com> */ class ContainerBuilder extends Container { /** * @var Definition[] */ protected $de...
true
9049c1bc7cbb68df020680a787f7e0f6cd807af2
PHP
PatkarAditya22/phpProject
/proj3.php
UTF-8
2,700
3.640625
4
[]
no_license
<?php echo "Transpose of a matrix<br/><br/>"; $original_matrix = array( array(1, 2, 3), array(4, 5, 6), array(7, 8, 9) ); $m = count($original_matrix); //rows $n = count($original_matrix[0]); //columns $tranpose_matrix = array_fill(0, $n, array_fill(0, $m, 0)); for($i = 0; $i < $n; ...
true
ad752797b9995d394b16c3a3b70c77fdb20ab4d0
PHP
marly-marly/top-cars-website
/src/Marton/TopCarsBundle/Entity/Role.php
UTF-8
1,939
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Marci * Date: 28/10/14 * Time: 21:00 */ namespace Marton\TopCarsBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Security\Core\Role\RoleInterface; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="tbl_role") * @ORM\Entity() ...
true
512035fbfde423dccd868f4e469c6e86156f90da
PHP
cgoulart35/UML-CS-COURSES
/Database-II/Phase 2/db2 (with CSS)/meeting.php
UTF-8
8,913
2.71875
3
[]
no_license
<?php session_start(); if (isset($_GET['mid']) && isset($_SESSION['user'])) { $current_user = $_SESSION['user']; $current_id = $current_user['id']; $current_name = $current_user['name']; $mid = $_GET['mid']; $db2 = mysqli_connect('localhost', 'root', '', 'db2'); $select_mentor_users_of_meeti...
true