Test Setup Failed
Pull Request — master (#232)
by
unknown
05:27
created
app/Models/SubtaskModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
      */
234 234
     public function duplicate($src_task_id, $dst_task_id)
235 235
     {
236
-        return $this->db->transaction(function (Database $db) use ($src_task_id, $dst_task_id) {
236
+        return $this->db->transaction(function(Database $db) use ($src_task_id, $dst_task_id) {
237 237
             $subtasks = $db->table(SubtaskModel::TABLE)
238 238
                 ->columns('title', 'time_estimated', 'position')
239 239
                 ->eq('task_id', $src_task_id)
Please login to merge, or discard this patch.
app/Models/ProjectStarModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function getProjectIds($user_id)
64 64
     {
65
-        return array_map(function ($project) {
65
+        return array_map(function($project) {
66 66
             return $project['id'];
67 67
         }, $this->getProjects($user_id));
68 68
     }
Please login to merge, or discard this patch.
app/Models/NotificationTypeModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $this->labels[$type] = $label;
72 72
         }
73 73
 
74
-        $this->classes[$type] = function () use ($class, $container) {
74
+        $this->classes[$type] = function() use ($class, $container) {
75 75
             return new $class($container);
76 76
         };
77 77
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     {
122 122
         $classes = $this->classes;
123 123
 
124
-        return array_filter($types, function ($type) use ($classes) {
124
+        return array_filter($types, function($type) use ($classes) {
125 125
             return isset($classes[$type]);
126 126
         });
127 127
     }
Please login to merge, or discard this patch.
app/Services/Identity/Avatar/LetterAvatarProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $q = $lightness < 0.5 ? $lightness * (1 + $saturation) : $lightness + $saturation - $lightness * $saturation;
91 91
         $p = 2 * $lightness - $q;
92 92
 
93
-        return array_map(function ($color) use ($q, $p) {
93
+        return array_map(function($color) use ($q, $p) {
94 94
             if ($color < 0) {
95 95
                 $color++;
96 96
             }
Please login to merge, or discard this patch.
app/Http/Controllers/DocumentationController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     protected function getPageFilename($page)
89 89
     {
90
-        return $this->getFileLocation($page.'.md') ?:
91
-            implode(DIRECTORY_SEPARATOR, [JITAMIN_DIR, 'doc', 'index.md']);
90
+        return $this->getFileLocation($page.'.md') ?: implode(DIRECTORY_SEPARATOR, [JITAMIN_DIR, 'doc', 'index.md']);
92 91
     }
93 92
 
94 93
     /**
Please login to merge, or discard this patch.
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.