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
5f8062c0dab1cfcd3959c7661fd778ed85cc9b2d.json
Refactor some code.
src/Illuminate/Pagination/Paginator.php
@@ -164,16 +164,6 @@ public function appends($key, $value) return $this->addQuery($key, $value); } - /** - * The pagination environment. - * - * @var \Illuminate\Pagination\Environment - */ - public function getEnvironment() - { - return $this->env; - } - /** * Add a query string value to the paginator...
false
Other
laravel
framework
10010f4ed208b7c46f5f871d54733fd4a4eb12d5.json
Set the URL when in console context.
src/Illuminate/Foundation/Application.php
@@ -116,7 +116,7 @@ protected function createRequest(Request $request = null) */ public function setRequestForConsoleEnvironment() { - $url = $this['config']['app.url']; + $url = $this['config']->get('app.url', 'http://localhost'); $this['request'] = Request::create($url, 'GET', array(), array(), array(),...
true
Other
laravel
framework
10010f4ed208b7c46f5f871d54733fd4a4eb12d5.json
Set the URL when in console context.
src/Illuminate/Foundation/start.php
@@ -140,6 +140,22 @@ $app->instance('config', $config); +/* +|-------------------------------------------------------------------------- +| Set The Console Request If Necessary +|-------------------------------------------------------------------------- +| +| If we're running in a console context, we won't have a ...
true
Other
laravel
framework
3c09eec7372647e88ab4de42b70013e53a8e7f69.json
Allow laravel/framework to replace illuminate/html Signed-off-by: crynobone <crynobone@gmail.com>
composer.json
@@ -46,6 +46,7 @@ "illuminate/foundation": "self.version", "illuminate/hashing": "self.version", "illuminate/http": "self.version", + "illuminate/html": "self.version", "illuminate/log": "self.version", "illuminate/mail": "self.version", "illuminate/pag...
false
Other
laravel
framework
0602fe003c503c083d1b04510ee9dead49cb2dd3.json
Fix path handling.
src/Illuminate/Exception/ExceptionServiceProvider.php
@@ -151,12 +151,37 @@ protected function registerWhoopsHandler() } else { - $this->app['whoops.handler'] = function() - { - with($handler = new PrettyPageHandler)->setResourcesPath(__DIR__.'/resources'); - - return $handler; - }; + $this->registerPrettyWhoopsHandler(); + } + } + ...
false
Other
laravel
framework
1df406b5a689c51b424837e6e64b2e66a5ce8403.json
Fix a test.
tests/Foundation/FoundationApplicationTest.php
@@ -122,6 +122,7 @@ public function testExceptionHandlingSendsResponseFromCustomHandler() public function testNoResponseFromCustomHandlerCallsKernelExceptionHandler() { $app = new Application; + $app['config'] = array('app.debug' => false); $exception = new Exception; $errorHandler = m::mock('stdClass'); ...
false
Other
laravel
framework
fc1b82670a2d6878a1e1ae8667e25d3dc0c86c15.json
Allow incrementing offsets in a collection. Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
src/Illuminate/Support/Collection.php
@@ -251,7 +251,14 @@ public function offsetGet($key) */ public function offsetSet($key, $value) { - $this->items[$key] = $value; + if(is_null($key)) + { + $this->items[] = $value; + } + else + { + $this->items[$key] = $value; + } } /**
true
Other
laravel
framework
fc1b82670a2d6878a1e1ae8667e25d3dc0c86c15.json
Allow incrementing offsets in a collection. Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
tests/Support/SupportCollectionTest.php
@@ -86,6 +86,8 @@ public function testOffsetAccess() $this->assertTrue(isset($c['name'])); unset($c['name']); $this->assertFalse(isset($c['name'])); + $c[] = 'jason'; + $this->assertEquals('jason', $c[0]); }
true
Other
laravel
framework
6d2eb2b2826fa4007c522c27f75ae014bcf07452.json
Add Illuminate\Support\Fluent test cases Signed-off-by: crynobone <crynobone@gmail.com>
tests/Support/SupportFluentTest.php
@@ -0,0 +1,76 @@ +<?php + +use ReflectionObject, + Illuminate\Support\Fluent; + +class SupportFluentTest extends PHPUnit_Framework_TestCase { + + /** + * Test the Fluent constructor. + * + * @test + */ + public function testAttributesAreSetByConstructor() + { + $array = array('name' => 'Taylor', 'age' => 25); + ...
false
Other
laravel
framework
a0ac97b8a770f7768e0545f770dfe2b65015794f.json
Add timestamps column to migration stub. This is consistent with the default setting for Eloquent models, having timestamps enabled. Fixes #865.
src/Illuminate/Database/Migrations/stubs/create.php
@@ -15,6 +15,7 @@ public function up() Schema::create('{{table}}', function(Blueprint $table) { $table->increments('id'); + $table->timestamps(); }); } @@ -28,4 +29,4 @@ public function down() Schema::drop('{{table}}'); } -} \ No newline at end of file +}
false
Other
laravel
framework
472c93945305ec7122f0f6e2afb30cb2d663d4c6.json
Add debug and bump to 2.3.
composer.json
@@ -16,17 +16,18 @@ "monolog/monolog": "1.4.*", "patchwork/utf8": "1.0.*", "swiftmailer/swiftmailer": "4.3.*", - "symfony/browser-kit": "2.2.*", - "symfony/console": "2.2.*", - "symfony/css-selector": "2.2.*", - "symfony/dom-crawler": "2.2.*", - "symf...
false
Other
laravel
framework
ab93be41bc15d5d9e173323b41347e7087db5832.json
Remove some left over Symfony dispatcher code.
src/Illuminate/Events/Event.php
@@ -1,89 +0,0 @@ -<?php namespace Illuminate\Events; - -use Symfony\Component\EventDispatcher\Event as SymfonyEvent; - -class Event extends SymfonyEvent { - - /** - * The event payload array. - * - * @var array - */ - protected $payload; - - /** - * Create a new event instance. - * - * @param mi...
true
Other
laravel
framework
ab93be41bc15d5d9e173323b41347e7087db5832.json
Remove some left over Symfony dispatcher code.
src/Illuminate/Events/Subscriber.php
@@ -1,8 +1,6 @@ <?php namespace Illuminate\Events; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; - -class Subscriber implements EventSubscriberInterface { +class Subscriber { /** * Get the events listened to by the subscriber.
true
Other
laravel
framework
77024b6d23eceb58f47e9a2039ed33de516224f5.json
Remove HTML from default formatting in MessageBag.
src/Illuminate/Support/MessageBag.php
@@ -19,7 +19,7 @@ class MessageBag implements ArrayableInterface, Countable, JsonableInterface, Me * * @var string */ - protected $format = '<span class="help-inline">:message</span>'; + protected $format = ':message'; /** * Create a new message bag instance.
false
Other
laravel
framework
88abbf58969167496353da70f04b7cd6fe84401f.json
Allow PATCH method in FormBuilder
src/Illuminate/Html/FormBuilder.php
@@ -62,6 +62,13 @@ class FormBuilder { */ protected $reserved = array('method', 'url', 'route', 'action', 'files'); + /** + * The form methods that should be spoofed, in uppercase. + * + * @var array + */ + protected $spoofedMethods = array('DELETE', 'PATCH', 'PUT'); + /** * Create a new form builder i...
false
Other
laravel
framework
d7bed9ed1560d52dbe947482ee9a9859cfc51843.json
Add a success notification to password remind Currently there doesn't seem to be a way to differentiate between just showing the reset form, or if that form was successfully submitted. Added a 'success' session variable to allow for that. 
src/Illuminate/Auth/Reminders/PasswordBroker.php
@@ -91,7 +91,7 @@ public function remind(array $credentials, Closure $callback = null) $this->sendReminder($user, $token, $callback); - return $this->redirect->refresh(); + return $this->redirect->refresh()->with('success', true); } /**
false
Other
laravel
framework
8523dd30312dea0c8e3ba017d5c052ce5ae5b777.json
Add tests for the required_without validation rule
tests/Validation/ValidationValidatorTest.php
@@ -140,6 +140,60 @@ public function testValidateRequiredWith() $this->assertFalse($v->passes()); } + public function testValidateRequiredWithout() + { + $trans = $this->getRealTranslator(); + $v = new Validator($trans, array('first' => 'Taylor'), array('last' => 'required_without:first')); + $this->assertTru...
false
Other
laravel
framework
814669edf3134eae032eb6bb4b9ba863bdf150ac.json
Add error message when not using PHP 5.4.
src/Illuminate/Foundation/Console/ServeCommand.php
@@ -26,6 +26,13 @@ class ServeCommand extends Command { */ public function fire() { + // The development server feature was added in PHP 5.4. + if (version_compare(PHP_VERSION, '5.4.0', '<')) + { + $this->error("PHP 5.4 is required to start the development server"); + return; + } + chdir($this->lara...
false
Other
laravel
framework
78a494e6399758008c4c7e304ac9e30fbb324611.json
Add default to collection property.
src/Illuminate/Support/Collection.php
@@ -15,7 +15,7 @@ class Collection implements ArrayAccess, ArrayableInterface, Countable, Iterator * * @var array */ - protected $items; + protected $items = array(); /** * Create a new collection.
false
Other
laravel
framework
ef98884b29306bf8bdbb918a4a668587ed676745.json
Use absolute class names for Lang facade.
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -329,11 +329,11 @@ protected function compileLanguage($value) { $pattern = $this->createMatcher('lang'); - $value = preg_replace($pattern, '$1<?php echo Lang::get$2; ?>', $value); + $value = preg_replace($pattern, '$1<?php echo \Illuminate\Support\Facades\Lang::get$2; ?>', $value); $pattern = $this->cr...
false
Other
laravel
framework
253b0493d60de4518e45f9a5669a07ca796bfe1b.json
Remove some leftover locale stuff.
src/Illuminate/Http/Request.php
@@ -29,38 +29,6 @@ public function instance() return $this; } - /** - * Setup the path info for a locale based URI. - * - * @param array $locales - * @return string - */ - public function handleUriLocales(array $locales) - { - $path = $this->getPathInfo(); - - foreach ($locales as $locale) - { - if ...
false
Other
laravel
framework
97ce37977d821325d4fe2dc7e298587d19c07fea.json
Fix bug in Eloquent.
src/Illuminate/Database/Eloquent/Model.php
@@ -264,17 +264,13 @@ public function fill(array $attributes) */ public function newInstance($attributes = array(), $exists = false) { - static::unguard(); - // This method just provides a convenient way for us to generate fresh model // instances of this current model. It is particularly useful during th...
true
Other
laravel
framework
97ce37977d821325d4fe2dc7e298587d19c07fea.json
Fix bug in Eloquent.
src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php
@@ -107,9 +107,9 @@ public function create(array $attributes) // the parent model. This makes the polymorphic item unique in the table. $foreign[$this->morphType] = $this->morphClass; - $attributes = array_merge($attributes, $foreign); + $instance = $this->related->newInstance(); - $instance = $this->relat...
true
Other
laravel
framework
97ce37977d821325d4fe2dc7e298587d19c07fea.json
Fix bug in Eloquent.
tests/Database/DatabaseEloquentMorphTest.php
@@ -93,7 +93,8 @@ public function testCreateFunctionOnMorph() // Doesn't matter which relation type we use since they share the code... $relation = $this->getOneRelation(); $created = m::mock('stdClass'); - $relation->getRelated()->shouldReceive('newInstance')->once()->with(array('name' => 'taylor', 'table.mo...
true
Other
laravel
framework
b789fe1525f6062656198c91908fb01b08510136.json
Change visibility of Form::getValueAttribute.
src/Illuminate/Html/FormBuilder.php
@@ -694,7 +694,7 @@ protected function getIdAttribute($name, $attributes) * @param string $value * @return string */ - protected function getValueAttribute($name, $value = null) + public function getValueAttribute($name, $value = null) { if (is_null($name)) return $value;
false
Other
laravel
framework
3f7ac061c24ba3e81f9492425ebffe003254a99e.json
Use newFromBuilder instance of newInstance.
src/Illuminate/Database/Eloquent/Builder.php
@@ -126,7 +126,7 @@ public function lists($column, $key = null) { $fill = array($column => $value); - $value = $this->model->newInstance($fill)->$column; + $value = $this->model->newFromBuilder($fill)->$column; } }
false
Other
laravel
framework
46ff00d733ee72c5419702af0181d8bbd8272b38.json
Touch owners on delete.
src/Illuminate/Database/Eloquent/Model.php
@@ -628,12 +628,12 @@ public function delete() { $this->fireModelEvent('deleting', false); - // After firing the "deleting" event, we can go ahead and delete off the model - // then call the "deleted" event. These events could give the developer the - // opportunity to clear any relationships on the mode...
true
Other
laravel
framework
46ff00d733ee72c5419702af0181d8bbd8272b38.json
Touch owners on delete.
tests/Database/DatabaseEloquentModelTest.php
@@ -270,11 +270,12 @@ public function testInsertIsCancelledIfCreatingEventReturnsFalse() public function testDeleteProperlyDeletesModel() { - $model = $this->getMock('Illuminate\Database\Eloquent\Model', array('newQuery', 'updateTimestamps')); + $model = $this->getMock('Illuminate\Database\Eloquent\Model', arra...
true
Other
laravel
framework
39d9373bc5a1098fb9f8286013f57069f5602964.json
Implement destroy method and tests.
src/Illuminate/Database/Eloquent/Model.php
@@ -594,6 +594,29 @@ public function joiningTable($related) return strtolower(implode('_', $models)); } + /** + * Destroy the models for the given IDs. + * + * @param array|int $ids + * @return void + */ + public static function destroy($ids) + { + $ids = is_array($ids) ? $ids : func_get_args(); + + $in...
true
Other
laravel
framework
39d9373bc5a1098fb9f8286013f57069f5602964.json
Implement destroy method and tests.
tests/Database/DatabaseEloquentModelTest.php
@@ -75,6 +75,12 @@ public function testFindMethodWithArrayCallsQueryBuilderCorrectly() } + public function testDestroyMethodCallsQueryBuilderCorrectly() + { + $result = EloquentModelDestroyStub::destroy(1, 2, 3); + } + + public function testWithMethodCallsQueryBuilderCorrectly() { $result = EloquentModelW...
true
Other
laravel
framework
5f78e404c665c5f70d845b7514d87bc751d44fd5.json
Remove locale routing stuff.
src/Illuminate/Foundation/Application.php
@@ -106,37 +106,7 @@ public function __construct(Request $request = null) */ protected function createRequest(Request $request = null) { - $request = $request ?: Request::createFromGlobals(); - - $this->registerLocaleHandler($request); - - return $request; - } - - /** - * Register the URI locale boot handler...
true
Other
laravel
framework
5f78e404c665c5f70d845b7514d87bc751d44fd5.json
Remove locale routing stuff.
src/Illuminate/Routing/UrlGenerator.php
@@ -28,13 +28,6 @@ class UrlGenerator { */ protected $generator; - /** - * The global prefix for the generator. - * - * @var string - */ - protected $prefix; - /** * Create a new URL Generator instance. * @@ -90,7 +83,7 @@ public function to($path, $parameters = array(), $secure = null) $root = ...
true
Other
laravel
framework
5f78e404c665c5f70d845b7514d87bc751d44fd5.json
Remove locale routing stuff.
tests/Foundation/FoundationApplicationTest.php
@@ -161,20 +161,6 @@ public function testServiceProvidersAreCorrectlyRegistered() $this->assertTrue(in_array($class, $app->getLoadedProviders())); } - - public function testLocaleDetectionOnBoot() - { - $request = Illuminate\Http\Request::create('/en/foo/bar', 'GET'); - $application = $this->getMock('Illuminat...
true
Other
laravel
framework
5f78e404c665c5f70d845b7514d87bc751d44fd5.json
Remove locale routing stuff.
tests/Routing/RoutingUrlGeneratorTest.php
@@ -43,16 +43,6 @@ public function testUrlGenerationUsesCurrentProtocol() } - public function testGeneratorGlobalPrefixes() - { - $gen = $this->getGenerator(); - $gen->setRequest(Request::create('http://foobar.com/foo/bar', 'GET')); - $gen->setPrefix('en'); - - $this->assertEquals('http://foobar.com/en/dayle'...
true
Other
laravel
framework
a21ac4af89a55138b82982910237f91eaf288a8f.json
Check mcrypt programatically.
src/Illuminate/Foundation/start.php
@@ -1,5 +1,23 @@ <?php +/* +|-------------------------------------------------------------------------- +| Check Extensions +|-------------------------------------------------------------------------- +| +| Laravel requires a few extensions to function. Here we will check the +| loaded extensions to make sure they a...
false
Other
laravel
framework
91a632f98351ba0e1c033b9e597eac2e5ca5b244.json
Fix locale matcher.
src/Illuminate/Http/Request.php
@@ -41,7 +41,10 @@ public function handleUriLocales(array $locales) foreach ($locales as $locale) { - if (starts_with($path, '/'.$locale)) return $this->removeLocaleFromUri($locale); + if (preg_match("#^\/{$locale}(?:$|/)#i", $path)) + { + return $this->removeLocaleFromUri($locale); + } } }
false
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Auth/composer.json
@@ -18,7 +18,8 @@ }, "require-dev": { "illuminate/console": "4.0.x", - "illuminate/routing": "4.0.x" + "illuminate/routing": "4.0.x", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {"Illuminate\\Auth": ""}
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Cache/composer.json
@@ -14,6 +14,9 @@ "illuminate/redis": "4.0.x", "illuminate/support": "4.0.x" }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, "autoload": { "psr-0": {"Illuminate\\Cache": ""} },
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Config/composer.json
@@ -11,6 +11,9 @@ "illuminate/filesystem": "4.0.x", "illuminate/support": "4.0.x" }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, "autoload": { "psr-0": {"Illuminate\\Config": ""} },
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Console/composer.json
@@ -10,6 +10,9 @@ "require": { "symfony/console": "2.2.*" }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, "autoload": { "psr-0": { "Illuminate\\Console": ""
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Container/composer.json
@@ -9,6 +9,9 @@ "require": { "php": ">=5.3.0" }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, "autoload": { "psr-0": { "Illuminate\\Container": ""
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Cookie/composer.json
@@ -14,7 +14,8 @@ "symfony/http-foundation": "2.2.*" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Database/composer.json
@@ -19,7 +19,8 @@ "illuminate/filesystem": "4.0.x", "illuminate/pagination": "4.0.x", "illuminate/support": "4.0.x", - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Encryption/composer.json
@@ -11,6 +11,9 @@ "php": ">=5.3.0", "illuminate/support": "4.0.x" }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, "autoload": { "psr-0": { "Illuminate\\Encryption": ""
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Events/composer.json
@@ -13,7 +13,8 @@ "illuminate/support": "4.0.x" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Exception/composer.json
@@ -13,7 +13,8 @@ "symfony/http-kernel": "2.2.*" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Filesystem/composer.json
@@ -11,6 +11,9 @@ "php": ">=5.3.0", "illuminate/support": "4.0.x" }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, "autoload": { "psr-0": { "Illuminate\\Filesystem": ""
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Hashing/composer.json
@@ -13,6 +13,9 @@ "illuminate/support": "4.0.x", "ircmaxell/password-compat": "1.0.*" }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, "autoload": { "psr-0": { "Illuminate\\Hashing": ""
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Html/composer.json
@@ -13,7 +13,8 @@ "illuminate/support": "4.0.x" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Http/composer.json
@@ -13,7 +13,8 @@ "symfony/http-foundation": "2.2.*" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Log/composer.json
@@ -13,6 +13,7 @@ }, "require-dev": { "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*", "illuminate/events": "4.0.x" }, "autoload": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Mail/composer.json
@@ -15,7 +15,8 @@ "swiftmailer/swiftmailer": "4.3.*" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Pagination/composer.json
@@ -16,7 +16,8 @@ "symfony/translation": "2.2.*" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Queue/composer.json
@@ -15,7 +15,8 @@ }, "require-dev": { "aws/aws-sdk-php": "2.1.*", - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Redis/composer.json
@@ -12,7 +12,8 @@ "illuminate/support": "4.0.x" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Routing/composer.json
@@ -20,7 +20,8 @@ "require-dev": { "illuminate/console": "4.0.x", "illuminate/filesystem": "4.0.x", - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Session/composer.json
@@ -19,7 +19,8 @@ }, "require-dev": { "illuminate/console": "4.0.x", - "mockery/mockery": ">=0.7.2" + "mockery/mockery": ">=0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Support/composer.json
@@ -12,7 +12,8 @@ }, "require-dev": { "patchwork/utf8": "1.0.*", - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Translation/composer.json
@@ -13,7 +13,8 @@ "symfony/translation": "2.2.*" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Validation/composer.json
@@ -15,7 +15,8 @@ }, "require-dev": { "illuminate/database": "4.0.x", - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/View/composer.json
@@ -14,7 +14,8 @@ "illuminate/support": "4.0.x" }, "require-dev": { - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
5d6e99e6860752d15de99c23081ce3e29a3f5423.json
Add phpunit to Illuminate component dependencies
src/Illuminate/Workbench/composer.json
@@ -14,7 +14,8 @@ }, "require-dev": { "illuminate/console": "4.0.x", - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-0": {
true
Other
laravel
framework
cf24df89336316e74b50d2973b040657cdfafef5.json
Implement locale routing.
src/Illuminate/Foundation/Application.php
@@ -81,11 +81,12 @@ class Application extends Container implements HttpKernelInterface { /** * Create a new Illuminate application instance. * + * @param \Illuminate\Http\Request $request * @return void */ - public function __construct() + public function __construct(Request $request = null) { - $th...
true
Other
laravel
framework
cf24df89336316e74b50d2973b040657cdfafef5.json
Implement locale routing.
src/Illuminate/Http/Request.php
@@ -29,6 +29,35 @@ public function instance() return $this; } + /** + * Setup the path info for a locale based URI. + * + * @param array $locales + * @return string + */ + public function handleUriLocales(array $locales) + { + $path = $this->getPathInfo(); + + foreach ($locales as $locale) + { + if ...
true
Other
laravel
framework
cf24df89336316e74b50d2973b040657cdfafef5.json
Implement locale routing.
src/Illuminate/Routing/UrlGenerator.php
@@ -90,7 +90,7 @@ public function to($path, $parameters = array(), $secure = null) $root = $this->getRootUrl($scheme); - return $root.$this->getPrefix().'/'.trim($path.'/'.$tail, '/'); + return trim($root.$this->getPrefix().'/'.trim($path.'/'.$tail, '/'), '/'); } /**
true
Other
laravel
framework
cf24df89336316e74b50d2973b040657cdfafef5.json
Implement locale routing.
tests/Foundation/FoundationApplicationTest.php
@@ -161,6 +161,20 @@ public function testServiceProvidersAreCorrectlyRegistered() $this->assertTrue(in_array($class, $app->getLoadedProviders())); } + + public function testLocaleDetectionOnBoot() + { + $request = Illuminate\Http\Request::create('/en/foo/bar', 'GET'); + $application = $this->getMock('Illuminat...
true
Other
laravel
framework
cf24df89336316e74b50d2973b040657cdfafef5.json
Implement locale routing.
tests/Routing/RoutingUrlGeneratorTest.php
@@ -18,11 +18,11 @@ public function testBasicUrlGeneration() $gen = $this->getGenerator(); $gen->setRequest(Request::create('http://foobar.com/foo/bar', 'GET')); - $this->assertEquals('http://foobar.com/', $gen->to('/')); + $this->assertEquals('http://foobar.com', $gen->to('/')); $this->assertEquals('http:...
true
Other
laravel
framework
38766e498148d6600526bfeadcd4485b775a6a4e.json
Add phpunit to dev dependencies
composer.json
@@ -61,7 +61,8 @@ "aws/aws-sdk-php": "2.2.*", "iron-io/iron_mq": "1.4.4", "pda/pheanstalk": "2.0.*", - "mockery/mockery": "0.7.2" + "mockery/mockery": "0.7.2", + "phpunit/phpunit": "3.7.*" }, "autoload": { "files": [
false
Other
laravel
framework
53a16422002d218f5d40acf76c2c648bdbf0b4ba.json
Build full split script.
build/illuminate-split-full.sh
@@ -0,0 +1,28 @@ +git subsplit init git@github.com:laravel/framework.git +git subsplit publish src/Illuminate/Auth:git@github.com:illuminate/auth.git +git subsplit publish src/Illuminate/Cache:git@github.com:illuminate/cache.git +git subsplit publish src/Illuminate/Config:git@github.com:illuminate/config.git +git subsp...
false
Other
laravel
framework
2c1d64568bca291535ba816a66f71306c7ebcf55.json
Fix facade view.
src/Illuminate/Support/Facades/Response.php
@@ -29,7 +29,9 @@ public static function make($content = '', $status = 200, array $headers = array */ public static function view($view, $data = array(), $status = 200, array $headers = array()) { - return static::make(static::$app['view']->make($view, $data), $status, $headers); + $app = Facade::getFacadeAppl...
false
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/AuthManager.php
@@ -27,7 +27,7 @@ protected function createDriver($driver) /** * Create an instance of the database driver. * - * @return Illuminate\Auth\Guard + * @return \Illuminate\Auth\Guard */ protected function createDatabaseDriver() { @@ -39,7 +39,7 @@ protected function createDatabaseDriver() /** ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/Console/MakeRemindersCommand.php
@@ -24,14 +24,14 @@ class MakeRemindersCommand extends Command { /** * The filesystem instance. * - * @var Illuminate\Filesystem\Filesystem + * @var \Illuminate\Filesystem\Filesystem */ protected $files; /** * Create a new reminder table command instance. * - * @param Illuminate\Filesystem\Fi...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/DatabaseUserProvider.php
@@ -8,14 +8,14 @@ class DatabaseUserProvider implements UserProviderInterface { /** * The active database connection. * - * @param Illuminate\Database\Connection + * @param \Illuminate\Database\Connection */ protected $conn; /** * The hasher implementation. * - * @var Illuminate\Hashing\Hash...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/EloquentUserProvider.php
@@ -7,7 +7,7 @@ class EloquentUserProvider implements UserProviderInterface { /** * The hasher implementation. * - * @var Illuminate\Hashing\HasherInterface + * @var \Illuminate\Hashing\HasherInterface */ protected $hasher; @@ -21,7 +21,7 @@ class EloquentUserProvider implements UserProviderInterface {...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/Guard.php
@@ -18,21 +18,21 @@ class Guard { /** * The user provider implementation. * - * @var Illuminate\Auth\UserProviderInterface + * @var \Illuminate\Auth\UserProviderInterface */ protected $provider; /** * The session store used by the guard. * - * @var Illuminate\Session\Store + * @var \Illuminat...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/Reminders/DatabaseReminderRepository.php
@@ -8,7 +8,7 @@ class DatabaseReminderRepository implements ReminderRepositoryInterface { /** * The database connection instance. * - * @var Illuminate\Database\Connection + * @var \Illuminate\Database\Connection */ protected $connection; @@ -29,7 +29,7 @@ class DatabaseReminderRepository implements Re...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/Reminders/PasswordBroker.php
@@ -10,28 +10,28 @@ class PasswordBroker { /** * The password reminder repository. * - * @var Illuminate\Auth\Reminders\ReminderRepositoryInterface $reminders + * @var \Illuminate\Auth\Reminders\ReminderRepositoryInterface $reminders */ protected $reminders; /** * The user provider implementatio...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/Reminders/ReminderRepositoryInterface.php
@@ -5,15 +5,15 @@ interface ReminderRepositoryInterface { /** * Create a new reminder record and token. * - * @param Illuminate\Auth\RemindableInterface $user + * @param \Illuminate\Auth\RemindableInterface $user * @return string */ public function create(RemindableInterface $user); /** * D...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Auth/UserProviderInterface.php
@@ -6,22 +6,22 @@ interface UserProviderInterface { * Retrieve a user by their unique identifier. * * @param mixed $identifier - * @return Illuminate\Auth\UserInterface|null + * @return \Illuminate\Auth\UserInterface|null */ public function retrieveByID($identifier); /** * Retrieve a user by th...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cache/ApcStore.php
@@ -5,7 +5,7 @@ class ApcStore implements StoreInterface { /** * The APC wrapper instance. * - * @var Illuminate\Cache\ApcWrapper + * @var \Illuminate\Cache\ApcWrapper */ protected $apc; @@ -19,7 +19,7 @@ class ApcStore implements StoreInterface { /** * Create a new APC store. * - * @param Il...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cache/CacheManager.php
@@ -7,7 +7,7 @@ class CacheManager extends Manager { /** * Create an instance of the APC cache driver. * - * @return Illuminate\Cache\ApcStore + * @return \Illuminate\Cache\ApcStore */ protected function createApcDriver() { @@ -17,7 +17,7 @@ protected function createApcDriver() /** * Crea...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cache/Console/ClearCommand.php
@@ -23,22 +23,22 @@ class ClearCommand extends Command { /** * The cache manager instance. * - * @var Illuminate\Cache\CacheManager + * @var \Illuminate\Cache\CacheManager */ protected $cache; /** * The file system instance. * - * @var Illuminate\Filesystem\Filesystem + * @var \Illuminate\Fil...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cache/DatabaseStore.php
@@ -8,14 +8,14 @@ class DatabaseStore implements StoreInterface { /** * The database connection instance. * - * @var Illuminate\Database\Connection + * @var \Illuminate\Database\Connection */ protected $connection; /** * The encrypter instance. * - * @param Illuminate\Encrypter + * @param \...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cache/FileStore.php
@@ -5,7 +5,7 @@ class FileStore implements StoreInterface { /** * The Illuminate Filesystem instance. * - * @var Illuminate\Filesystem + * @var \Illuminate\Filesystem */ protected $files; @@ -19,7 +19,7 @@ class FileStore implements StoreInterface { /** * Create a new file cache store instance. ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cache/RedisStore.php
@@ -7,7 +7,7 @@ class RedisStore implements StoreInterface { /** * The Redis database connection. * - * @var Illuminate\Redis\Database + * @var \Illuminate\Redis\Database */ protected $redis; @@ -21,7 +21,7 @@ class RedisStore implements StoreInterface { /** * Create a new APC store. * - * @pa...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cache/Repository.php
@@ -5,7 +5,7 @@ class Repository implements ArrayAccess { /** * The cache store implementation. * - * @var Illuminate\Cache\StoreInterface + * @var \Illuminate\Cache\StoreInterface */ protected $store; @@ -19,7 +19,7 @@ class Repository implements ArrayAccess { /** * Create a new cache repository ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Config/FileLoader.php
@@ -7,7 +7,7 @@ class FileLoader implements LoaderInterface { /** * The filesystem instance. * - * @var Illuminate\Filesystem + * @var \Illuminate\Filesystem */ protected $files; @@ -35,7 +35,7 @@ class FileLoader implements LoaderInterface { /** * Create a new file configuration loader. * - *...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Config/Repository.php
@@ -9,7 +9,7 @@ class Repository extends NamespacedItemResolver implements ArrayAccess { /** * The loader implementation. * - * @var Illuminate\Config\LoaderInterface + * @var \Illuminate\Config\LoaderInterface */ protected $loader; @@ -44,7 +44,7 @@ class Repository extends NamespacedItemResolver impl...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Console/Application.php
@@ -9,22 +9,22 @@ class Application extends \Symfony\Component\Console\Application { /** * The exception handler instance. * - * @var Illuminate\Exception\Handler + * @var \Illuminate\Exception\Handler */ protected $exceptionHandler; /** * The Laravel application instance. * - * @var Illuminat...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Console/Command.php
@@ -10,7 +10,7 @@ class Command extends \Symfony\Component\Console\Command\Command { /** * The Laravel application instance. * - * @var Illuminate\Foundation\Application + * @var \Illuminate\Foundation\Application */ protected $laravel; @@ -296,7 +296,7 @@ public function getOutput() /** * Set the...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Cookie/CookieJar.php
@@ -18,7 +18,7 @@ class CookieJar { /** * The encrypter instance. * - * @var Illuminate\Encryption\Encrypter + * @var \Illuminate\Encryption\Encrypter */ protected $encrypter; @@ -40,7 +40,7 @@ class CookieJar { * Create a new cookie manager instance. * * @param Symfony\Component\HttpFoundati...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/Connection.php
@@ -17,35 +17,35 @@ class Connection implements ConnectionInterface { /** * The query grammar implementation. * - * @var Illuminate\Database\Query\Grammars\Grammar + * @var \Illuminate\Database\Query\Grammars\Grammar */ protected $queryGrammar; /** * The schema grammar implementation. * - * @v...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/ConnectionResolver.php
@@ -34,7 +34,7 @@ public function __construct(array $connections = array()) * Get a database connection instance. * * @param string $name - * @return Illuminate\Database\Connection + * @return \Illuminate\Database\Connection */ public function connection($name = null) { @@ -47,7 +47,7 @@ public func...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/ConnectionResolverInterface.php
@@ -6,7 +6,7 @@ interface ConnectionResolverInterface { * Get a database connection instance. * * @param string $name - * @return Illuminate\Database\Connection + * @return \Illuminate\Database\Connection */ public function connection($name = null);
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/Connectors/ConnectionFactory.php
@@ -13,7 +13,7 @@ class ConnectionFactory { * * @param array $config * @param string $name - * @return Illuminate\Database\Connection + * @return \Illuminate\Database\Connection */ public function make(array $config, $name = null) { @@ -33,7 +33,7 @@ public function make(array $config, $name = nu...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/Console/Migrations/InstallCommand.php
@@ -23,14 +23,14 @@ class InstallCommand extends Command { /** * The repository instance. * - * @var Illuminate\Database\Console\Migrations\MigrationRepositoryInterface + * @var \Illuminate\Database\Console\Migrations\MigrationRepositoryInterface */ protected $repository; /** * Create a new migrat...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/Console/Migrations/MakeCommand.php
@@ -24,7 +24,7 @@ class MakeCommand extends BaseCommand { /** * The migration creator instance. * - * @var Illuminate\Database\Migrations\MigrationCreator + * @var \Illuminate\Database\Migrations\MigrationCreator */ protected $creator; @@ -38,7 +38,7 @@ class MakeCommand extends BaseCommand { /** ...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/Console/Migrations/MigrateCommand.php
@@ -24,7 +24,7 @@ class MigrateCommand extends BaseCommand { /** * The migrator instance. * - * @var Illuminate\Database\Migrations\Migrator + * @var \Illuminate\Database\Migrations\Migrator */ protected $migrator; @@ -36,7 +36,7 @@ class MigrateCommand extends BaseCommand { /** * Create a new mig...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/Console/Migrations/ResetCommand.php
@@ -23,14 +23,14 @@ class ResetCommand extends Command { /** * The migrator instance. * - * @var Illuminate\Database\Migrations\Migrator + * @var \Illuminate\Database\Migrations\Migrator */ protected $migrator; /** * Create a new migration rollback command instance. * - * @param Illuminate\Da...
true
Other
laravel
framework
c1700d2e748c9dd70e8d0a6bcc793d2a82517b7e.json
Fix docBlocks for PHPStorm.
src/Illuminate/Database/Console/Migrations/RollbackCommand.php
@@ -23,14 +23,14 @@ class RollbackCommand extends Command { /** * The migrator instance. * - * @var Illuminate\Database\Migrations\Migrator + * @var \Illuminate\Database\Migrations\Migrator */ protected $migrator; /** * Create a new migration rollback command instance. * - * @param Illuminate...
true