Completed
Branch master (8ed11c)
by Phecho
07:05
created
app/Http/Controllers/DocumentationController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@
 block discarded – undo
92 92
      */
93 93
     private function getPageFilename($page)
94 94
     {
95
-        return $this->getFileLocation($page.'.md') ?:
96
-            implode(DIRECTORY_SEPARATOR, [ROOT_DIR, 'doc', 'index.md']);
95
+        return $this->getFileLocation($page.'.md') ?: implode(DIRECTORY_SEPARATOR, [ROOT_DIR, 'doc', 'index.md']);
97 96
     }
98 97
 
99 98
     /**
Please login to merge, or discard this patch.
app/Core/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/Core/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/Core/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/Core/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/Core/Security/AuthenticationManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     {
187 187
         $interface = '\Jitamin\Core\Security\\'.$interface;
188 188
 
189
-        return array_filter($this->providers, function (AuthenticationProviderInterface $provider) use ($interface) {
189
+        return array_filter($this->providers, function(AuthenticationProviderInterface $provider) use ($interface) {
190 190
             return is_a($provider, $interface);
191 191
         });
192 192
     }
Please login to merge, or discard this patch.
app/Providers/NotificationProvider.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.
app/Providers/CacheProvider.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/SessionProvider.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.