Skip to content

Commit e900333

Browse files
committed
Formatting.
1 parent 7d805da commit e900333

File tree

5 files changed

+435
-435
lines changed

5 files changed

+435
-435
lines changed

.gitignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/vendor
2-
composer.phar
3-
composer.lock
4-
.DS_Store
5-
Thumbs.db
1+
/vendor
2+
composer.phar
3+
composer.lock
4+
.DS_Store
5+
Thumbs.db

phpunit.xml

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="phpunit.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnError="false"
11-
stopOnFailure="false"
12-
syntaxCheck="true"
13-
verbose="true"
14-
>
15-
<testsuites>
16-
<testsuite name="Laravel Test Suite">
17-
<directory suffix="Test.php">./tests</directory>
18-
</testsuite>
19-
</testsuites>
20-
<filter>
21-
<whitelist processUncoveredFilesFromWhitelist="true">
22-
<directory suffix=".php">./src</directory>
23-
<exclude>
24-
<file>./src/Illuminate/Foundation/start.php</file>
25-
<file>./src/Illuminate/Foundation/Console/Optimize/config.php</file>
26-
<directory>./src/Illuminate/Pagination/views</directory>
27-
</exclude>
28-
</whitelist>
29-
</filter>
30-
</phpunit>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="phpunit.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnError="false"
11+
stopOnFailure="false"
12+
syntaxCheck="true"
13+
verbose="true"
14+
>
15+
<testsuites>
16+
<testsuite name="Laravel Test Suite">
17+
<directory suffix="Test.php">./tests</directory>
18+
</testsuite>
19+
</testsuites>
20+
<filter>
21+
<whitelist processUncoveredFilesFromWhitelist="true">
22+
<directory suffix=".php">./src</directory>
23+
<exclude>
24+
<file>./src/Illuminate/Foundation/start.php</file>
25+
<file>./src/Illuminate/Foundation/Console/Optimize/config.php</file>
26+
<directory>./src/Illuminate/Pagination/views</directory>
27+
</exclude>
28+
</whitelist>
29+
</filter>
30+
</phpunit>
+71-71
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
1-
<?php namespace Illuminate\Cache;
2-
3-
use Illuminate\Support\ServiceProvider;
4-
5-
class CacheServiceProvider extends ServiceProvider {
6-
7-
/**
8-
* Indicates if loading of the provider is deferred.
9-
*
10-
* @var bool
11-
*/
12-
protected $defer = true;
13-
14-
/**
15-
* Register the service provider.
16-
*
17-
* @return void
18-
*/
19-
public function register()
20-
{
21-
$this->app->singleton('cache', function($app)
22-
{
23-
return new CacheManager($app);
24-
});
25-
26-
$this->app->singleton('cache.store', function($app)
27-
{
28-
return $app['cache']->driver();
29-
});
30-
31-
$this->app->singleton('memcached.connector', function()
32-
{
33-
return new MemcachedConnector;
34-
});
35-
36-
$this->registerCommands();
37-
}
38-
39-
/**
40-
* Register the cache related console commands.
41-
*
42-
* @return void
43-
*/
44-
public function registerCommands()
45-
{
46-
$this->app->singleton('command.cache.clear', function($app)
47-
{
48-
return new Console\ClearCommand($app['cache']);
49-
});
50-
51-
$this->app->singleton('command.cache.table', function($app)
52-
{
53-
return new Console\CacheTableCommand($app['files'], $app['composer']);
54-
});
55-
56-
$this->commands('command.cache.clear', 'command.cache.table');
57-
}
58-
59-
/**
60-
* Get the services provided by the provider.
61-
*
62-
* @return array
63-
*/
64-
public function provides()
65-
{
66-
return [
67-
'cache', 'cache.store', 'memcached.connector', 'command.cache.clear', 'command.cache.table'
68-
];
69-
}
70-
71-
}
1+
<?php namespace Illuminate\Cache;
2+
3+
use Illuminate\Support\ServiceProvider;
4+
5+
class CacheServiceProvider extends ServiceProvider {
6+
7+
/**
8+
* Indicates if loading of the provider is deferred.
9+
*
10+
* @var bool
11+
*/
12+
protected $defer = true;
13+
14+
/**
15+
* Register the service provider.
16+
*
17+
* @return void
18+
*/
19+
public function register()
20+
{
21+
$this->app->singleton('cache', function($app)
22+
{
23+
return new CacheManager($app);
24+
});
25+
26+
$this->app->singleton('cache.store', function($app)
27+
{
28+
return $app['cache']->driver();
29+
});
30+
31+
$this->app->singleton('memcached.connector', function()
32+
{
33+
return new MemcachedConnector;
34+
});
35+
36+
$this->registerCommands();
37+
}
38+
39+
/**
40+
* Register the cache related console commands.
41+
*
42+
* @return void
43+
*/
44+
public function registerCommands()
45+
{
46+
$this->app->singleton('command.cache.clear', function($app)
47+
{
48+
return new Console\ClearCommand($app['cache']);
49+
});
50+
51+
$this->app->singleton('command.cache.table', function($app)
52+
{
53+
return new Console\CacheTableCommand($app['files'], $app['composer']);
54+
});
55+
56+
$this->commands('command.cache.clear', 'command.cache.table');
57+
}
58+
59+
/**
60+
* Get the services provided by the provider.
61+
*
62+
* @return array
63+
*/
64+
public function provides()
65+
{
66+
return [
67+
'cache', 'cache.store', 'memcached.connector', 'command.cache.clear', 'command.cache.table'
68+
];
69+
}
70+
71+
}
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
<?php namespace Illuminate\Cookie;
2-
3-
use Illuminate\Support\ServiceProvider;
4-
5-
class CookieServiceProvider extends ServiceProvider {
6-
7-
/**
8-
* Register the service provider.
9-
*
10-
* @return void
11-
*/
12-
public function register()
13-
{
14-
$this->app->singleton('cookie', function($app)
15-
{
16-
$config = $app['config']['session'];
17-
18-
return (new CookieJar)->setDefaultPathAndDomain($config['path'], $config['domain']);
19-
});
20-
}
21-
22-
}
1+
<?php namespace Illuminate\Cookie;
2+
3+
use Illuminate\Support\ServiceProvider;
4+
5+
class CookieServiceProvider extends ServiceProvider {
6+
7+
/**
8+
* Register the service provider.
9+
*
10+
* @return void
11+
*/
12+
public function register()
13+
{
14+
$this->app->singleton('cookie', function($app)
15+
{
16+
$config = $app['config']['session'];
17+
18+
return (new CookieJar)->setDefaultPathAndDomain($config['path'], $config['domain']);
19+
});
20+
}
21+
22+
}

0 commit comments

Comments
 (0)