language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Session/CookieStore.php
@@ -8,7 +8,7 @@ class CookieStore extends Store { /** * The Illuminate cookie creator. * - * @var Illuminate\CookieJar + * @var \Illuminate\CookieJar */ protected $cookies; @@ -22,7 +22,7 @@ class CookieStore extends Store { /** * Create a new Cookie based session store. * - * @param Illumina...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Session/DatabaseStore.php
@@ -9,14 +9,14 @@ class DatabaseStore extends Store implements Sweeper { /** * The database connection instance. * - * @var Illuminate\Database\Connection + * @var \Illuminate\Database\Connection */ protected $connection; /** * The encrypter instance. * - * @var Illuminate\Encrypter + * @var ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Session/FileStore.php
@@ -8,7 +8,7 @@ class FileStore extends Store implements Sweeper { /** * The filesystem instance. * - * @var Illuminate\Filesystem + * @var \Illuminate\Filesystem */ protected $files; @@ -22,7 +22,7 @@ class FileStore extends Store implements Sweeper { /** * Create a new file session store instanc...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Session/SessionManager.php
@@ -7,7 +7,7 @@ class SessionManager extends Manager { /** * Create an instance of the cookie session driver. * - * @return Illuminate\Session\CookieStore + * @return \Illuminate\Session\CookieStore */ protected function createCookieDriver() { @@ -19,7 +19,7 @@ protected function createCookieDr...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Session/SessionServiceProvider.php
@@ -108,7 +108,7 @@ protected function registerSessionEvents() /** * Register the session booting event. * - * @param Illuminate\Foundation\Application $app + * @param \Illuminate\Foundation\Application $app * @return void */ protected function registerBootingEvent($app) @@ -122,7 +122,7 @...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Session/Store.php
@@ -82,7 +82,7 @@ abstract public function updateSession($id, array $session, Response $response); /** * Load the session for the request. * - * @param Illuminate\Cookie\CookieJar $cookies + * @param \Illuminate\Cookie\CookieJar $cookies * @param string $name * @return void */ @@ -459,7 +459,7 ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/Collection.php
@@ -82,7 +82,7 @@ public function pop() * Execute a callback over each item. * * @param Closure $callback - * @return Illuminate\Support\Collection + * @return \Illuminate\Support\Collection */ public function each(Closure $callback) { @@ -106,7 +106,7 @@ public function map(Closure $callbac...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/Contracts/MessageProviderInterface.php
@@ -5,7 +5,7 @@ interface MessageProviderInterface { /** * Get the messages for the instance. * - * @return ILluminate\Support\MessageBag + * @return \Illuminate\Support\MessageBag */ public function getMessageBag();
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/Facades/Facade.php
@@ -7,7 +7,7 @@ abstract class Facade { /** * The application instance being facaded. * - * @var Illuminate\Foundation\Application + * @var \Illuminate\Foundation\Application */ protected static $app; @@ -128,7 +128,7 @@ public static function clearResolvedInstances() /** * Get the application ins...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/Facades/Schema.php
@@ -6,7 +6,7 @@ class Schema extends Facade { * Get a schema builder instance for a connection. * * @param string $name - * @return Illuminate\Database\Schema\Builder + * @return \Illuminate\Database\Schema\Builder */ public static function connection($name) {
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/Fluent.php
@@ -57,7 +57,7 @@ public function getAttributes() * * @param string $method * @param array $parameters - * @return Illuminate\Support\Fluent + * @return \Illuminate\Support\Fluent */ public function __call($method, $parameters) {
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/Manager.php
@@ -7,7 +7,7 @@ abstract class Manager { /** * The application instance. * - * @var Illuminate\Foundation\Application + * @var \Illuminate\Foundation\Application */ protected $app; @@ -28,7 +28,7 @@ abstract class Manager { /** * Create a new manager instance. * - * @param Illuminate\Foundati...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/MessageBag.php
@@ -40,7 +40,7 @@ public function __construct(array $messages = array()) * * @param string $key * @param string $message - * @return Illuminate\Support\MessageBag + * @return \Illuminate\Support\MessageBag */ public function add($key, $message) { @@ -56,7 +56,7 @@ public function add($key,...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Support/ServiceProvider.php
@@ -7,7 +7,7 @@ abstract class ServiceProvider { /** * The application instance. * - * @var Illuminate\Foundation\Application + * @var \Illuminate\Foundation\Application */ protected $app; @@ -21,7 +21,7 @@ abstract class ServiceProvider { /** * Create a new service provider instance. * - * @p...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Translation/FileLoader.php
@@ -7,7 +7,7 @@ class FileLoader implements LoaderInterface { /** * The filesystem instance. * - * @var Illuminate\Filesystem + * @var \Illuminate\Filesystem */ protected $files; @@ -28,7 +28,7 @@ class FileLoader implements LoaderInterface { /** * Create a new file loader instance. * - * @par...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Translation/Translator.php
@@ -9,7 +9,7 @@ class Translator extends NamespacedItemResolver implements TranslatorInterface { /** * The loader implementation. * - * @var Illuminate\Translation\LoaderInterface + * @var \Illuminate\Translation\LoaderInterface */ protected $loader; @@ -30,7 +30,7 @@ class Translator extends Namespace...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Validation/DatabasePresenceVerifier.php
@@ -7,7 +7,7 @@ class DatabasePresenceVerifier implements PresenceVerifierInterface { /** * The database connection instance. * - * @var Illuminate\Database\ConnectionResolverInterface + * @var \Illuminate\Database\ConnectionResolverInterface */ protected $db; @@ -21,7 +21,7 @@ class DatabasePresence...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Validation/Factory.php
@@ -15,7 +15,7 @@ class Factory { /** * The Presence Verifier implementation. * - * @var Illuminate\Validation\PresenceVerifierInterface + * @var \Illuminate\Validation\PresenceVerifierInterface */ protected $presenceVerifier; @@ -57,7 +57,7 @@ public function __construct(TranslatorInterface $translato...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Validation/Validator.php
@@ -18,14 +18,14 @@ class Validator implements MessageProviderInterface { /** * The Presence Verifier implementation. * - * @var Illuminate\Validation\PresenceVerifierInterface + * @var \Illuminate\Validation\PresenceVerifierInterface */ protected $presenceVerifier; /** * The message bag instance....
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/View/Compilers/Compiler.php
@@ -7,7 +7,7 @@ abstract class Compiler { /** * The Filesystem instance. * - * @var Illuminate\Filesystem + * @var \Illuminate\Filesystem */ protected $files; @@ -21,7 +21,7 @@ abstract class Compiler { /** * Create a new compiler instance. * - * @param Illuminate\Filesystem\Filesystem $file...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/View/Engines/CompilerEngine.php
@@ -7,14 +7,14 @@ class CompilerEngine extends PhpEngine { /** * The Blade compiler instance. * - * @var Illuminate\View\Compilers\CompilerInterface + * @var \Illuminate\View\Compilers\CompilerInterface */ protected $compiler; /** * Create a new Blade view engine instance. * - * @param Illumi...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/View/Engines/EngineResolver.php
@@ -34,7 +34,7 @@ public function register($engine, Closure $resolver) * Resolver an engine instance by name. * * @param string $engine - * @return Illuminate\View\Engines\EngineInterface + * @return \Illuminate\View\Engines\EngineInterface */ public function resolve($engine) {
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/View/Environment.php
@@ -10,28 +10,28 @@ class Environment { /** * The engine implementation. * - * @var Illuminate\View\Engines\EngineResolver + * @var \Illuminate\View\Engines\EngineResolver */ protected $engines; /** * The view finder implementation. * - * @var Illuminate\View\ViewFinderInterface + * @var \Ill...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/View/FileViewFinder.php
@@ -7,7 +7,7 @@ class FileViewFinder implements ViewFinderInterface { /** * The filesystem instance. * - * @var Illuminate\Filesystem + * @var \Illuminate\Filesystem */ protected $files; @@ -35,7 +35,7 @@ class FileViewFinder implements ViewFinderInterface { /** * Create a new file view loader ins...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/View/View.php
@@ -10,14 +10,14 @@ class View implements ArrayAccess, Renderable { /** * The view environment instance. * - * @var Illuminate\View\Environment + * @var \Illuminate\View\Environment */ protected $environment; /** * The engine implementation. * - * @var Illuminate\View\Engines\EngineInterface +...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/View/ViewServiceProvider.php
@@ -57,7 +57,7 @@ public function registerEngineResolver() /** * Register the PHP engine implementation. * - * @param Illuminate\View\Engines\EngineResolver $resolver + * @param \Illuminate\View\Engines\EngineResolver $resolver * @return void */ public function registerPhpEngine($resolver) ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Workbench/Console/WorkbenchMakeCommand.php
@@ -25,14 +25,14 @@ class WorkbenchMakeCommand extends Command { /** * The package creator instance. * - * @var Illuminate\Workbench\PackageCreator + * @var \Illuminate\Workbench\PackageCreator */ protected $creator; /** * Create a new make workbench command instance. * - * @param ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Workbench/PackageCreator.php
@@ -7,7 +7,7 @@ class PackageCreator { /** * The filesystem instance. * - * @var Illuminate\Filesystem + * @var \Illuminate\Filesystem */ protected $files; @@ -38,7 +38,7 @@ class PackageCreator { /** * Create a new package creator instance. * - * @param Illuminate\Filesystem $fil...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Workbench/Starter.php
@@ -6,7 +6,7 @@ class Starter { * Load the workbench vendor auto-load files. * * @param string $path - * @param Illuminate\Filesystem $files + * @param \Illuminate\Filesystem $files * @return void */ public static function start($path, $finder = null, $files = null)
true
Other
laravel
framework
8d6310851b53e176f748d6e3750408cb148df5f6.json
Add Html composer.json and added to split script.
build/illuminate-split.sh
@@ -11,6 +11,7 @@ git subsplit publish --no-tags src/Illuminate/Events:git@github.com:illuminate/e git subsplit publish --no-tags src/Illuminate/Exception:git@github.com:illuminate/exception.git git subsplit publish --no-tags src/Illuminate/Filesystem:git@github.com:illuminate/filesystem.git git subsplit publish -...
true
Other
laravel
framework
8d6310851b53e176f748d6e3750408cb148df5f6.json
Add Html composer.json and added to split script.
src/Illuminate/Database/Eloquent/Model.php
@@ -468,11 +468,11 @@ public function morphTo($name = null, $type = null, $id = null) $name = snake_case($caller['function']); } - list($type, $id) = $this->getMorphs($name, $type, $id); - // Next we will guess the type and ID if necessary. The type and IDs may also // be passed into the function so tha...
true
Other
laravel
framework
8d6310851b53e176f748d6e3750408cb148df5f6.json
Add Html composer.json and added to split script.
src/Illuminate/Html/FormBuilder.php
@@ -30,7 +30,7 @@ class FormBuilder { /** * The session store implementation. * - * @var Illuminate\Support\Contracts\SessionStoreInterface + * @var Illuminate\Session\Store */ protected $session;
true
Other
laravel
framework
8d6310851b53e176f748d6e3750408cb148df5f6.json
Add Html composer.json and added to split script.
src/Illuminate/Html/composer.json
@@ -0,0 +1,30 @@ +{ + "name": "illuminate/html", + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylorotwell@gmail.com" + } + ], + "require": { + "php": ">=5.3.0", + "illuminate/http": "4.0.x", + "illuminate/session": "4.0.x", + "ill...
true
Other
laravel
framework
02920076c104b0318a6135e5e7fe230f81fc0ad9.json
Fix whereNull short-cut.
src/Illuminate/Database/Query/Builder.php
@@ -284,7 +284,7 @@ public function where($column, $operator = null, $value = null, $boolean = 'and' // that method for convenience so the developer doesn't have to check. if (is_null($value)) { - return $this->whereNull($column, $boolean); + return $this->whereNull($column, $boolean, $operator != '='); ...
false
Other
laravel
framework
02029baad080d54bca1c5653b55432c60f2878b6.json
Fix some issues in Eloquent.
src/Illuminate/Database/Eloquent/Model.php
@@ -109,6 +109,13 @@ abstract class Model implements ArrayAccess, ArrayableInterface, JsonableInterfa */ protected $dates = array(); + /** + * The relationships that should be touched on save. + * + * @var array + */ + protected $touches = array(); + /** * The relations to eager load on every query. ...
true
Other
laravel
framework
02029baad080d54bca1c5653b55432c60f2878b6.json
Fix some issues in Eloquent.
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -306,6 +306,34 @@ protected function buildDictionary(Collection $results) return $dictionary; } + /** + * Touch all of the related models for the relationship. + * + * @return void + */ + public function touch() + { + $key = $this->getRelated()->getKeyName(); + + $columns = array($this->getRelated()->ge...
true
Other
laravel
framework
02029baad080d54bca1c5653b55432c60f2878b6.json
Fix some issues in Eloquent.
src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php
@@ -132,12 +132,14 @@ protected function buildDictionary(Collection $results) { $dictionary = array(); + $foreign = $this->getPlainForeignKey(); + // First we will create a dictionary of models keyed by the foreign key of the // relationship as this will allow us to quickly access all of the related //...
true
Other
laravel
framework
02029baad080d54bca1c5653b55432c60f2878b6.json
Fix some issues in Eloquent.
src/Illuminate/Database/Eloquent/Relations/Relation.php
@@ -1,5 +1,6 @@ <?php namespace Illuminate\Database\Eloquent\Relations; +use DateTime; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; @@ -84,6 +85,31 @@ abstract public function match(array $models, Collection $results, $relation); ...
true
Other
laravel
framework
02029baad080d54bca1c5653b55432c60f2878b6.json
Fix some issues in Eloquent.
tests/Database/DatabaseEloquentHasManyTest.php
@@ -49,7 +49,6 @@ public function testRelationIsProperlyInitialized() public function testEagerConstraintsAreProperlyAdded() { $relation = $this->getRelation(); - $relation->getRelated()->shouldReceive('getTable')->once()->andReturn('table'); $relation->getQuery()->shouldReceive('whereIn')->once()->with('tab...
true
Other
laravel
framework
02029baad080d54bca1c5653b55432c60f2878b6.json
Fix some issues in Eloquent.
tests/Database/DatabaseEloquentHasOneTest.php
@@ -61,7 +61,6 @@ public function testRelationIsProperlyInitialized() public function testEagerConstraintsAreProperlyAdded() { $relation = $this->getRelation(); - $relation->getRelated()->shouldReceive('getTable')->once()->andReturn('table'); $relation->getQuery()->shouldReceive('whereIn')->once()->with('tab...
true
Other
laravel
framework
02029baad080d54bca1c5653b55432c60f2878b6.json
Fix some issues in Eloquent.
tests/Database/DatabaseEloquentMorphTest.php
@@ -21,9 +21,8 @@ public function testMorphOneSetsProperConstraints() public function testMorphOneEagerConstraintsAreProperlyAdded() { $relation = $this->getOneRelation(); - $relation->getRelated()->shouldReceive('getTable')->once()->andReturn('table'); $relation->getQuery()->shouldReceive('whereIn')->once()...
true
Other
laravel
framework
908741f04f6862bc72c0b8227167a0adb9d020e7.json
Fix double table prepend.
src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php
@@ -48,9 +48,7 @@ public function addConstraints() */ public function addEagerConstraints(array $models) { - $key = $this->related->getTable().'.'.$this->foreignKey; - - $this->query->whereIn($key, $this->getKeys($models)); + $this->query->whereIn($this->foreignKey, $this->getKeys($models)); } /**
false
Other
laravel
framework
c60c766bf8398bcdd05d476cbac99901f7a2f73c.json
Fix Eloquent save events.
readme.md
@@ -3,6 +3,7 @@ ## Beta 4 - Added `Model::creating(Closure)` and `Model::updating(Closure)` methods for hooking into Eloquent save events. +- Added `Model::saving(Closure)` and `Model::saved(Closure)` methods for hooking into Eloquent save events. - Added `Event::queue` and `Event::flush`. - Added a `Str` class i...
true
Other
laravel
framework
c60c766bf8398bcdd05d476cbac99901f7a2f73c.json
Fix Eloquent save events.
src/Illuminate/Database/Eloquent/Model.php
@@ -689,7 +689,9 @@ public function save() $this->updateTimestamps(); } - // If the saving event returns false, we will cancel the save operation + // If the "saving" event returns false we'll bail out of the save and return + // false, indicating that the save failed. This gives an opportunities to + // l...
true
Other
laravel
framework
13522832fb15dec1e09a979badae64238fc4a743.json
Fix transaction handling for Microsoft SQL Server.
readme.md
@@ -67,6 +67,7 @@ - Routes with too many leading or trailing slashes will now 404. - Added `callSecure` test helper. - Added `values` method to the `Collection` class. +- Fix transaction handling for Microsoft SQL Server. ## Beta 3
true
Other
laravel
framework
13522832fb15dec1e09a979badae64238fc4a743.json
Fix transaction handling for Microsoft SQL Server.
src/Illuminate/Database/SqlServerConnection.php
@@ -2,6 +2,39 @@ class SqlServerConnection extends Connection { + /** + * Execute a Closure within a transaction. + * + * @param Closure $callback + * @return mixed + */ + public function transaction(Closure $callback) + { + $this->pdo->exec('BEGIN TRAN'); + + // We'll simply execute the given callback wi...
true
Other
laravel
framework
6a4ce06778839cdd3c4d8f37cc8301e0dfdabe02.json
Tweak a comment.
readme.md
@@ -66,6 +66,7 @@ - Added `link_to`, `link_to_asset`, `link_to_route`, `link_to_action` helpers. - Routes with too many leading or trailing slashes will now 404. - Added `callSecure` test helper. +- Added `values` method to the `Collection` class. ## Beta 3
true
Other
laravel
framework
6a4ce06778839cdd3c4d8f37cc8301e0dfdabe02.json
Tweak a comment.
src/Illuminate/Support/Collection.php
@@ -116,9 +116,9 @@ public function filter(Closure $callback) } /** - * Reset items index. + * Reset the keys on the underlying array. * - * @return Illuminate\Support\Collection + * @return \Illuminate\Support\Collection */ public function values() {
true
Other
laravel
framework
4c75d5d801f264c3557dbd2ac001236294e6a3bc.json
Add two tests to the Collection.
tests/Support/SupportCollectionTest.php
@@ -104,6 +104,26 @@ public function testIterable() } + public function testFilter() + { + $c = new Collection(array(array('id' => 1, 'name' => 'Hello'), array('id' => 2, 'name' => 'World'))); + $this->assertEquals(array(1 => array('id' => 2, 'name' => 'World')), $c->filter(function($item) + { + retu...
false
Other
laravel
framework
5474989fb34fa2eb1e8665b250a69b164f47be50.json
Add values method to the Collection.
src/Illuminate/Support/Collection.php
@@ -115,6 +115,18 @@ public function filter(Closure $callback) return $this; } + /** + * Reset items index. + * + * @return Illuminate\Support\Collection + */ + public function values() + { + $this->items = array_values($this->items); + + return $this; + } + /** * Fetch a nested elemen...
false
Other
laravel
framework
0051c0fa2174b8c1ac51e44f224725474cb1c0e8.json
Add link helpers.
src/Illuminate/Support/helpers.php
@@ -429,6 +429,82 @@ function head($array) } } +if ( ! function_exists('link_to')) +{ + /** + * Generate a HTML link. + * + * @param string $url + * @param string $title + * @param array $attributes + * @param bool $secure + * @return string + */ + function link_to($url, $title = null, $attribut...
false
Other
laravel
framework
89d1b87fde7cc37f6a0ab164ccb4037acde2ac0e.json
Remove locks from file system.
src/Illuminate/Filesystem/Filesystem.php
@@ -74,7 +74,7 @@ public function requireOnce($file) */ public function put($path, $contents) { - return file_put_contents($path, $contents, LOCK_EX); + return file_put_contents($path, $contents); } /** @@ -86,7 +86,7 @@ public function put($path, $contents) */ public function append($path, $data) ...
false
Other
laravel
framework
c222355edb06e01a9718c37676485ecab36f7d74.json
Add support for "mail" driver.
src/Illuminate/Mail/MailServiceProvider.php
@@ -3,6 +3,7 @@ use Swift_Mailer; use Illuminate\Support\ServiceProvider; use Swift_SmtpTransport as SmtpTransport; +use Swift_MailTransport as MailTransport; class MailServiceProvider extends ServiceProvider { @@ -74,6 +75,27 @@ protected function registerSwiftMailer() * @return void */ protec...
false
Other
laravel
framework
c3b19a2ed40ecb36c07ed74898b63fb92fa480cd.json
Fix bug in postgres processor.
src/Illuminate/Database/Query/Processors/PostgresProcessor.php
@@ -21,7 +21,7 @@ public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu $result = (array) $results[0]; - return (int) $row[$sequence]; + return (int) $result[$sequence]; } } \ No newline at end of file
false
Other
laravel
framework
de37fe0e07eba65c276c13bcb09e2be5ff956b1b.json
Pass console command to database seeders.
readme.md
@@ -58,6 +58,7 @@ - Added `pop` and `shift` methods to Eloquent collection. - Allow `Input::get` to be used on JSON requests to give unified API across request types. - Allow `sync` to also update the other pivot table attributes. +- Pass console `Command` instance to database seeders. ## Beta 3
true
Other
laravel
framework
de37fe0e07eba65c276c13bcb09e2be5ff956b1b.json
Pass console command to database seeders.
src/Illuminate/Console/Command.php
@@ -129,7 +129,7 @@ public function call($command, array $arguments = array()) * @param string $key * @return string|array */ - protected function argument($key = null) + public function argument($key = null) { if (is_null($key)) return $this->input->getArguments(); @@ -142,7 +142,7 @@ protected funct...
true
Other
laravel
framework
de37fe0e07eba65c276c13bcb09e2be5ff956b1b.json
Pass console command to database seeders.
src/Illuminate/Database/Console/SeedCommand.php
@@ -62,7 +62,9 @@ public function fire() */ protected function getSeeder() { - return $this->laravel->make($this->input->getOption('class')); + $class = $this->laravel->make($this->input->getOption('class')); + + return $class->setContainer($this->laravel)->setCommand($this); } /**
true
Other
laravel
framework
de37fe0e07eba65c276c13bcb09e2be5ff956b1b.json
Pass console command to database seeders.
src/Illuminate/Database/Seeder.php
@@ -1,5 +1,6 @@ <?php namespace Illuminate\Database; +use Illuminate\Console\Command; use Illuminate\Container\Container; use Illuminate\Filesystem\Filesystem; @@ -12,6 +13,13 @@ class Seeder { */ protected $container; + /** + * The console command instance. + * + * @var Illuminate\Console\Command + *...
true
Other
laravel
framework
de37fe0e07eba65c276c13bcb09e2be5ff956b1b.json
Pass console command to database seeders.
tests/Database/DatabaseSeederTest.php
@@ -15,8 +15,10 @@ public function testCallResolveTheClassAndCallsRun() { $seeder = new Seeder; $seeder->setContainer($container = m::mock('Illuminate\Container\Container')); + $seeder->setCommand($command = m::mock('Illuminate\Console\Command')); $container->shouldReceive('make')->once()->with('ClassName')...
true
Other
laravel
framework
c369d6745e07cda661cf8f5ffcef40d0cb7b0132.json
Fix doc blocks.
src/Illuminate/Database/Eloquent/Model.php
@@ -96,7 +96,7 @@ abstract class Model implements ArrayAccess, ArrayableInterface, JsonableInterfa protected $fillable = array(); /** - * The attribute that aren't mass assignable. + * The attributes that aren't mass assignable. * * @var array */
true
Other
laravel
framework
c369d6745e07cda661cf8f5ffcef40d0cb7b0132.json
Fix doc blocks.
src/Illuminate/Database/Eloquent/Relations/Pivot.php
@@ -26,7 +26,7 @@ class Pivot extends Model { protected $otherKey; /** - * The attribute that aren't mass assignable. + * The attributes that aren't mass assignable. * * @var array */
true
Other
laravel
framework
e0bfe4b3ebcf9e6ee96832be7501f73c9fd69a53.json
Fix bug in postgres processor.
src/Illuminate/Database/Query/Processors/PostgresProcessor.php
@@ -19,7 +19,9 @@ public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu $sequence = $sequence ?: 'id'; - return $results[0]->$sequence; + $result = (array) $results[0]; + + return (int) $row[$sequence]; } } \ No newline at end of file
false
Other
laravel
framework
9acec8dcb91e6e7b0dbf774d764906345f3b1743.json
Fix bug with check state in form builder.
src/Illuminate/Html/FormBuilder.php
@@ -483,13 +483,28 @@ public function radio($name, $value = null, $checked = null, $options = array()) */ protected function checkable($type, $name, $value, $checked, $options) { - if (is_null($checked)) $checked = (bool) $this->getValueAttribute($name, null); + if (is_null($checked)) $checked = $this->getChec...
false
Other
laravel
framework
eb0d4340d81af3c99962cb15d7365b67fc866581.json
Add a space.
src/Illuminate/Foundation/Testing/TestCase.php
@@ -219,7 +219,7 @@ public function assertSessionHasAll(array $bindings) { foreach ($bindings as $key => $value) { - if(is_int($key)) + if (is_int($key)) { $this->assertSessionHas($value); }
false
Other
laravel
framework
bf376dad59d4cd414bf43369e0891cdae0fa9022.json
Add an "addSelect" clause to the query builder.
readme.md
@@ -50,6 +50,7 @@ - Changed cache stores to be implementors of a `StoreInterface` rather than extenders of a `Store` abstract class. Injected implementations into a `Cache\Repository` class. - Added `array_fetch` and `array_flatten`. Added `fetch` and `flatten` to `Collection` class. - Added `merge` method to the Co...
true
Other
laravel
framework
bf376dad59d4cd414bf43369e0891cdae0fa9022.json
Add an "addSelect" clause to the query builder.
src/Illuminate/Database/Query/Builder.php
@@ -153,6 +153,21 @@ public function select($columns = array('*')) return $this; } + /** + * Add a new select column to the query. + * + * @param mixed $column + * @return Illuminate\Database\Query\Builder + */ + public function addSelect($column) + { + if ( ! isset($this->columns)) $this->columns = arra...
true
Other
laravel
framework
00f62c86e2d03e5ede76496780975c1c0f9163e8.json
Add unit tests for dropTimestamps() function Signed-off-by: Dries Vints <dries.vints@gmail.com>
tests/Database/DatabaseMySqlSchemaGrammarTest.php
@@ -155,6 +155,17 @@ public function testDropForeign() } + public function testDropTimestamps() + { + $blueprint = new Blueprint('users'); + $blueprint->dropTimestamps(); + $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar()); + + $this->assertEquals(1, count($statements)); + $this->a...
true
Other
laravel
framework
00f62c86e2d03e5ede76496780975c1c0f9163e8.json
Add unit tests for dropTimestamps() function Signed-off-by: Dries Vints <dries.vints@gmail.com>
tests/Database/DatabasePostgresSchemaGrammarTest.php
@@ -127,6 +127,17 @@ public function testDropForeign() } + public function testDropTimestamps() + { + $blueprint = new Blueprint('users'); + $blueprint->dropTimestamps(); + $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar()); + + $this->assertEquals(1, count($statements)); + $this->a...
true
Other
laravel
framework
00f62c86e2d03e5ede76496780975c1c0f9163e8.json
Add unit tests for dropTimestamps() function Signed-off-by: Dries Vints <dries.vints@gmail.com>
tests/Database/DatabaseSqlServerSchemaGrammarTest.php
@@ -116,6 +116,17 @@ public function testDropForeign() } + public function testDropTimestamps() + { + $blueprint = new Blueprint('users'); + $blueprint->dropTimestamps(); + $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar()); + + $this->assertEquals(1, count($statements)); + $this->a...
true
Other
laravel
framework
cd06c78fb4668ac7f624004f9164895c9f467b48.json
Add function dropTimestamps() Function to quickly drop the timestamps columns on a database table. Signed-off-by: Dries Vints <dries.vints@gmail.com>
src/Illuminate/Database/Schema/Blueprint.php
@@ -251,6 +251,16 @@ public function dropForeign($index) return $this->dropIndexCommand('dropForeign', $index); } + /** + * Indicate that the timestamp columns should be dropped. + * + * @return void + */ + public function dropTimestamps() + { + $this->dropColumns('created_at', 'updated_at'); + } + /** ...
false
Other
laravel
framework
13a27926dacc4c8683ead862de3fc31d8c7e1c78.json
Implement console command for clearing the cache.
src/Illuminate/Cache/CommandsServiceProvider.php
@@ -0,0 +1,41 @@ +<?php namespace Illuminate\Cache; + +use Illuminate\Support\ServiceProvider; + +class CommandsServiceProvider extends ServiceProvider { + + /** + * Indicates if loading of the provider is deferred. + * + * @var bool + */ + protected $defer = true; + + /** + * Register the service pr...
true
Other
laravel
framework
13a27926dacc4c8683ead862de3fc31d8c7e1c78.json
Implement console command for clearing the cache.
src/Illuminate/Cache/Console/ClearCommand.php
@@ -0,0 +1,51 @@ +<?php namespace Illuminate\Cache\Console; + +use Illuminate\Console\Command; + +class ClearCommand extends Command { + + /** + * The console command name. + * + * @var string + */ + protected $name = 'cache:clear'; + + /** + * The console command description. + * + * @var string + */ + protect...
true
Other
laravel
framework
41e402b3126c18122996550b5d72a16b59e11b72.json
Shorten some code.
src/Illuminate/Http/Request.php
@@ -148,10 +148,7 @@ public function has($key) return true; } - if (is_array($this->input($key))) - { - return true; - } + if (is_array($this->input($key))) return true; return trim((string) $this->input($key)) !== ''; }
false
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Auth/Reminders/PasswordBroker.php
@@ -45,9 +45,9 @@ class PasswordBroker { /** * Create a new password broker instance. * - * @param Illuminate\Auth\ReminderRepositoryInterface $reminders + * @param Illuminate\Auth\Reminders\ReminderRepositoryInterface $reminders * @param Illuminate\Auth\UserProviderInterface $users - * @param Illu...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Cookie/CookieJar.php
@@ -147,7 +147,7 @@ public function getRequest() /** * Get the encrypter instance. * - * @return Illuminate\Encrypter + * @return Illuminate\Encryption\Encrypter */ public function getEncrypter() {
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Database/Connection.php
@@ -488,6 +488,7 @@ protected function handleQueryException(\Exception $e, $query, $bindings) * * @param string $query * @param array $bindings + * @param $time * @return void */ public function logQuery($query, $bindings, $time = null)
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Database/Eloquent/Model.php
@@ -356,7 +356,7 @@ public static function with($relations) * * @param string $related * @param string $foreignKey - * @return Illuminate\Database\Eloquent\Relation\HasOne + * @return Illuminate\Database\Eloquent\Relations\HasOne */ public function hasOne($related, $foreignKey = null) { @@ -374,7 ...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Encryption/Encrypter.php
@@ -82,7 +82,7 @@ protected function padAndMcrypt($value, $iv) /** * Decrypt the given value. * - * @param string $value + * @param string $payload * @return string */ public function decrypt($payload)
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Events/Dispatcher.php
@@ -1,256 +1,256 @@ -<?php namespace Illuminate\Events; - -use Illuminate\Container\Container; - -class Dispatcher { - - /** - * The IoC container instance. - * - * @var Illuminate\Container - */ - protected $container; - - /** - * The registered event listeners. - * - * @var array - */ - prot...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Foundation/Application.php
@@ -455,7 +455,7 @@ public function run() /** * Handle the given request and get the response. * - * @param Illuminate\Foundation\Request $request + * @param Illuminate\Http\Request $request * @return Symfony\Component\HttpFoundation\Response */ public function dispatch(Request $request) @@ -470,7...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Mail/Mailer.php
@@ -311,7 +311,7 @@ public function setLogger(Writer $logger) /** * Set the IoC container instance. * - * @param Illuminate\Container $container + * @param Illuminate\Container\Container $container * @return void */ public function setContainer(Container $container)
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Pagination/Environment.php
@@ -60,7 +60,7 @@ class Environment { * * @param Symfony\Component\HttpFoundation\Request $request * @param Illuminate\View\Environment $view - * @param Illuminate\Translation\TranslatorInterface $trans + * @param Symfony\Component\Translation\TranslatorInterface $trans * @return void */ publ...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Routing/Controllers/Controller.php
@@ -93,7 +93,7 @@ protected function prepareFilter($filter, $options) /** * Execute an action on the controller. * - * @param Illuminate\Container $container + * @param Illuminate\Container\Container $container * @param Illuminate\Routing\Router $router * @param string $method * @param array...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Routing/Router.php
@@ -111,7 +111,7 @@ class Router { /** * Create a new router instance. * - * @param Illuminate\Container $container + * @param Illuminate\Container\Container $container * @return void */ public function __construct(Container $container = null) @@ -1164,7 +1164,7 @@ public function matchFilter($pat...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Routing/UrlGenerator.php
@@ -90,6 +90,7 @@ public function to($path, $parameters = array(), $secure = null) * Generate a secure, absolute URL to the given path. * * @param string $path + * @param array $parameters * @return string */ public function secure($path, $parameters = array())
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Session/CookieStore.php
@@ -22,7 +22,7 @@ class CookieStore extends Store { /** * Create a new Cookie based session store. * - * @param Illuminate\CookieJar $cookies + * @param Illuminate\Cookie\CookieJar $cookies * @param string $payload * @return void */ @@ -85,7 +85,7 @@ public function setPayloadName($name) /** ...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Session/Store.php
@@ -82,7 +82,7 @@ abstract public function updateSession($id, array $session, Response $response); /** * Load the session for the request. * - * @param Illuminate\CookieJar $cookies + * @param Illuminate\Cookie\CookieJar $cookies * @param string $name * @return void */
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Support/Facades/Response.php
@@ -1,72 +1,72 @@ -<?php namespace Illuminate\Support\Facades; - -use Illuminate\Support\Contracts\ArrayableInterface; -use Symfony\Component\HttpFoundation\BinaryFileResponse; - -class Response { - - /** - * Return a new response from the application. - * - * @param string $content - * @param int ...
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/Support/Str.php
@@ -252,7 +252,7 @@ public static function snake($value, $delimiter = '_') * Determine if a string starts with a given needle. * * @param string $haystack - * @param string|array $needle + * @param string|array $needles * @return bool */ public static function startsWith($haystack, $needles)
true
Other
laravel
framework
341d0f9890d48867229e29183f396dd2d61aaa27.json
Fix some namespace/parameters in phpdocs
src/Illuminate/View/Environment.php
@@ -536,7 +536,7 @@ public function getDispatcher() /** * Get the IoC container instance. * - * @return Illuminate\Container + * @return Illuminate\Container\Container */ public function getContainer() { @@ -546,7 +546,7 @@ public function getContainer() /** * Set the IoC container instance. * ...
true
Other
laravel
framework
289e8c6589664c9856a4d0997b43c590c815b848.json
Pass the parameters to the scope.
src/Illuminate/Database/Eloquent/Builder.php
@@ -441,7 +441,7 @@ public function __call($method, $parameters) { if (method_exists($this->model, $scope = 'scope'.ucfirst($method))) { - $this->model->$scope($this); + call_user_func_array(array($this->model, $scope), $parameters); } else {
false
Other
laravel
framework
332d383545041b355419d84c809b98353ecac8ba.json
Implement query scopes on Eloquent models.
src/Illuminate/Database/Eloquent/Builder.php
@@ -439,7 +439,14 @@ public function setModel(Model $model) */ public function __call($method, $parameters) { - $result = call_user_func_array(array($this->query, $method), $parameters); + if (method_exists($this->model, $scope = 'scope'.ucfirst($method))) + { + $this->model->$scope($this); + } + else + ...
true
Other
laravel
framework
332d383545041b355419d84c809b98353ecac8ba.json
Implement query scopes on Eloquent models.
tests/Database/DatabaseEloquentBuilderTest.php
@@ -252,6 +252,18 @@ public function testQueryPassThru() } + public function testQueryScopes() + { + $builder = $this->getBuilder(); + $builder->getQuery()->shouldReceive('from'); + $builder->getQuery()->shouldReceive('where')->once()->with('foo', 'bar'); + $builder->setModel($model = new EloquentBuilderTestS...
true
Other
laravel
framework
8be20fde8c25545677367908d25da4e222da2d17.json
Prefer old input data over form field values.
src/Illuminate/Html/FormBuilder.php
@@ -658,19 +658,23 @@ protected function getIdAttribute($name, $attributes) /** * Get the value that should be assigned to the field. * + * This returns either old input for this field, the + * value passed to this method or the equally-named attribute of the + * current model instance (in this order of prec...
false
Other
laravel
framework
4c36ed37b2f92fe63dce1cb16cd169c578417f70.json
Give submit button sensible default
src/Illuminate/Html/FormBuilder.php
@@ -383,7 +383,7 @@ protected function getSelectOption($display, $value, $selected) { return $this->optionGroup($display, $value, $selected); } - + return $this->option($display, $value, $selected); } @@ -497,7 +497,7 @@ protected function checkable($type, $name, $value, $checked, $options) * @para...
false
Other
laravel
framework
4bd86ec5862415f8594f9cb88c40c55b298a9439.json
Write gitignore stub from workbench.
src/Illuminate/Workbench/PackageCreator.php
@@ -19,7 +19,7 @@ class PackageCreator { protected $basicBlocks = array( 'SupportFiles', 'TestDirectory', - 'ServiceProvider' + 'ServiceProvider', ); /** @@ -32,7 +32,7 @@ class PackageCreator { 'SupportDirectories', 'PublicDirectory', 'TestDirectory', - 'ServiceProvider' + 'Servi...
true
Other
laravel
framework
4bd86ec5862415f8594f9cb88c40c55b298a9439.json
Write gitignore stub from workbench.
src/Illuminate/Workbench/stubs/gitignore.txt
@@ -0,0 +1,4 @@ +/vendor +composer.phar +composer.lock +.DS_Store \ No newline at end of file
true
Other
laravel
framework
81bf19b1e413164349e98b8e09c0603abaa5af33.json
Add comment to queue listen command.
src/Illuminate/Queue/Console/ListenCommand.php
@@ -61,6 +61,9 @@ public function fire() $timeout = $this->input->getOption('timeout'); + // We need to get the right queue for the connection which is set in the queue + // configuration file for the application. We will pull it based on the set + // connection being run for the queue operation currentl...
false
Other
laravel
framework
9a565be05a8fd78641ca80038573f49712454de4.json
Allow isset on view objects.
src/Illuminate/View/View.php
@@ -280,6 +280,28 @@ public function __set($key, $value) $this->with($key, $value); } + /** + * Check if a piece of data is bound to the view. + * + * @param string $key + * @return bool + */ + public function __isset($key) + { + return isset($this->data[$key]); + } + + /** + * Remove a piece of bound d...
false
Other
laravel
framework
fd6b262ca5e6e76282c4c81116bc550004fcf28d.json
Fix variable name.
src/Illuminate/Foundation/Console/OptimizeCommand.php
@@ -80,7 +80,7 @@ protected function compileClasses() */ protected function getClassFiles() { - $app = $this->app; + $app = $this->laravel; $core = require __DIR__.'/Optimize/config.php';
false