Test Setup Failed
Pull Request — master (#247)
by Phecho
20:06 queued 25s
created
app/Foundation/Tool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         foreach ($namespaces as $namespace => $classes) {
62 62
             foreach ($classes as $name) {
63 63
                 $class = '\\Jitamin\\'.$namespace.'\\'.$name;
64
-                $container[lcfirst($name)] = function ($c) use ($class) {
64
+                $container[lcfirst($name)] = function($c) use ($class) {
65 65
                     return new $class($c);
66 66
                 };
67 67
             }
Please login to merge, or discard this patch.
app/Foundation/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     {
80 80
         $container = $this->container;
81 81
 
82
-        $this->helpers[$property] = function () use ($className, $container) {
82
+        $this->helpers[$property] = function() use ($className, $container) {
83 83
             return new $className($container);
84 84
         };
85 85
 
Please login to merge, or discard this patch.
app/Foundation/Mail/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     {
100 100
         $container = $this->container;
101 101
 
102
-        $this->transports[$transport] = function () use ($class, $container) {
102
+        $this->transports[$transport] = function() use ($class, $container) {
103 103
             return new $class($container);
104 104
         };
105 105
 
Please login to merge, or discard this patch.
app/Foundation/Plugin/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     {
64 64
         $container = $this->container;
65 65
 
66
-        $this->dispatcher->addListener($event, function () use ($container, $callback) {
66
+        $this->dispatcher->addListener($event, function() use ($container, $callback) {
67 67
             call_user_func($callback, $container);
68 68
         });
69 69
     }
Please login to merge, or discard this patch.
app/Providers/SessionServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
      */
32 32
     public function register(Container $container)
33 33
     {
34
-        $container['sessionStorage'] = function () {
34
+        $container['sessionStorage'] = function() {
35 35
             return new SessionStorage();
36 36
         };
37 37
 
38
-        $container['sessionManager'] = function ($c) {
38
+        $container['sessionManager'] = function($c) {
39 39
             return new SessionManager($c);
40 40
         };
41 41
 
42
-        $container['flash'] = function ($c) {
42
+        $container['flash'] = function($c) {
43 43
             return new FlashMessage($c);
44 44
         };
45 45
 
Please login to merge, or discard this patch.
app/Providers/ClassServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -171,20 +171,20 @@  discard block
 block discarded – undo
171 171
     {
172 172
         Tool::buildDIC($container, $this->classes);
173 173
 
174
-        $container['paginator'] = $container->factory(function ($c) {
174
+        $container['paginator'] = $container->factory(function($c) {
175 175
             return new Paginator($c);
176 176
         });
177 177
 
178
-        $container['oauth'] = $container->factory(function ($c) {
178
+        $container['oauth'] = $container->factory(function($c) {
179 179
             return new OAuth2($c);
180 180
         });
181 181
 
182
-        $container['httpClient'] = function ($c) {
182
+        $container['httpClient'] = function($c) {
183 183
             return new HttpClient($c);
184 184
         };
185 185
 
186 186
         if (CACHE_DRIVER === 'memcached') {
187
-            $container['memcached'] = function ($c) {
187
+            $container['memcached'] = function($c) {
188 188
                 $memcached = new \Memcached();
189 189
 
190 190
                 $config = require JITAMIN_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'memcached.php';
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             };
200 200
         }
201 201
 
202
-        $container['objectStorage'] = function () {
202
+        $container['objectStorage'] = function() {
203 203
             return new FileStorage(FILES_DIR);
204 204
         };
205 205
 
Please login to merge, or discard this patch.
app/Providers/CacheServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,23 +35,23 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function register(Container $container)
37 37
     {
38
-        $container['memoryCache'] = function () {
38
+        $container['memoryCache'] = function() {
39 39
             return new MemoryCache();
40 40
         };
41 41
 
42 42
         if (CACHE_DRIVER === 'file') {
43
-            $container['cacheDriver'] = function () {
43
+            $container['cacheDriver'] = function() {
44 44
                 return new FileCache();
45 45
             };
46 46
         } elseif (CACHE_DRIVER === 'memcached') {
47
-            $container['cacheDriver'] = function ($c) {
47
+            $container['cacheDriver'] = function($c) {
48 48
                 return new MemcachedCache($c['memcached'], defined('CACHE_PREFIX') ? CACHE_PREFIX : '');
49 49
             };
50 50
         } else {
51 51
             $container['cacheDriver'] = $container['memoryCache'];
52 52
         }
53 53
 
54
-        $container['userMetadataCacheDecorator'] = function ($c) {
54
+        $container['userMetadataCacheDecorator'] = function($c) {
55 55
             return new MetadataCacheDecorator(
56 56
                 $c['cacheDriver'],
57 57
                 $c['userMetadataModel'],
@@ -60,21 +60,21 @@  discard block
 block discarded – undo
60 60
             );
61 61
         };
62 62
 
63
-        $container['columnMoveRestrictionCacheDecorator'] = function ($c) {
63
+        $container['columnMoveRestrictionCacheDecorator'] = function($c) {
64 64
             return new ColumnMoveRestrictionCacheDecorator(
65 65
                 $c['memoryCache'],
66 66
                 $c['columnMoveRestrictionModel']
67 67
             );
68 68
         };
69 69
 
70
-        $container['columnRestrictionCacheDecorator'] = function ($c) {
70
+        $container['columnRestrictionCacheDecorator'] = function($c) {
71 71
             return new ColumnRestrictionCacheDecorator(
72 72
                 $c['memoryCache'],
73 73
                 $c['columnRestrictionModel']
74 74
             );
75 75
         };
76 76
 
77
-        $container['projectRoleRestrictionCacheDecorator'] = function ($c) {
77
+        $container['projectRoleRestrictionCacheDecorator'] = function($c) {
78 78
             return new ProjectRoleRestrictionCacheDecorator(
79 79
                 $c['memoryCache'],
80 80
                 $c['projectRoleRestrictionModel']
Please login to merge, or discard this patch.
app/Providers/JobServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,35 +36,35 @@
 block discarded – undo
36 36
      */
37 37
     public function register(Container $container)
38 38
     {
39
-        $container['commentEventJob'] = $container->factory(function ($c) {
39
+        $container['commentEventJob'] = $container->factory(function($c) {
40 40
             return new CommentEventJob($c);
41 41
         });
42 42
 
43
-        $container['subtaskEventJob'] = $container->factory(function ($c) {
43
+        $container['subtaskEventJob'] = $container->factory(function($c) {
44 44
             return new SubtaskEventJob($c);
45 45
         });
46 46
 
47
-        $container['taskEventJob'] = $container->factory(function ($c) {
47
+        $container['taskEventJob'] = $container->factory(function($c) {
48 48
             return new TaskEventJob($c);
49 49
         });
50 50
 
51
-        $container['taskFileEventJob'] = $container->factory(function ($c) {
51
+        $container['taskFileEventJob'] = $container->factory(function($c) {
52 52
             return new TaskFileEventJob($c);
53 53
         });
54 54
 
55
-        $container['taskLinkEventJob'] = $container->factory(function ($c) {
55
+        $container['taskLinkEventJob'] = $container->factory(function($c) {
56 56
             return new TaskLinkEventJob($c);
57 57
         });
58 58
 
59
-        $container['projectFileEventJob'] = $container->factory(function ($c) {
59
+        $container['projectFileEventJob'] = $container->factory(function($c) {
60 60
             return new ProjectFileEventJob($c);
61 61
         });
62 62
 
63
-        $container['notificationJob'] = $container->factory(function ($c) {
63
+        $container['notificationJob'] = $container->factory(function($c) {
64 64
             return new NotificationJob($c);
65 65
         });
66 66
 
67
-        $container['projectMetricJob'] = $container->factory(function ($c) {
67
+        $container['projectMetricJob'] = $container->factory(function($c) {
68 68
             return new ProjectMetricJob($c);
69 69
         });
70 70
 
Please login to merge, or discard this patch.
app/Providers/NotificationServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function register(Container $container)
34 34
     {
35
-        $container['userNotificationTypeModel'] = function ($container) {
35
+        $container['userNotificationTypeModel'] = function($container) {
36 36
             $type = new UserNotificationTypeModel($container);
37 37
             $type->setType(MailNotification::TYPE, t('Email'), '\Jitamin\Notification\MailNotification');
38 38
             $type->setType(WebNotification::TYPE, t('Web'), '\Jitamin\Notification\WebNotification');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             return $type;
41 41
         };
42 42
 
43
-        $container['projectNotificationTypeModel'] = function ($container) {
43
+        $container['projectNotificationTypeModel'] = function($container) {
44 44
             $type = new ProjectNotificationTypeModel($container);
45 45
             $type->setType('webhook', 'Webhook', '\Jitamin\Notification\WebhookNotification', true);
46 46
             $type->setType('activity', 'Activity', '\Jitamin\Notification\ActivityNotification', true);
Please login to merge, or discard this patch.