Completed
Push — master ( 5b1873...773e0e )
by Zach
03:11 queued 01:11
created
src/Migrations/Repositories/DatabaseMigrationRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $ran = $this->getRan($ran, $steps);
83 83
 
84
-        return array_map(function ($item) {
84
+        return array_map(function($item) {
85 85
             return $item['migration'];
86 86
         }, $ran);
87 87
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $ran = $this->getRan($ran);
99 99
 
100
-        return array_map(function ($item) {
100
+        return array_map(function($item) {
101 101
             return $item['batch'];
102 102
         }, $ran);
103 103
     }
Please login to merge, or discard this patch.
src/Migrations/FileDate/FileDateMigrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,11 +99,11 @@
 block discarded – undo
99 99
     {
100 100
         $files = scandir($this->config->getMigrationDirectory());
101 101
 
102
-        $files = array_filter($files, function ($file) {
102
+        $files = array_filter($files, function($file) {
103 103
             return strpos($file, '.php') !== false;
104 104
         });
105 105
 
106
-        $files = array_map(function ($file) {
106
+        $files = array_map(function($file) {
107 107
             return str_replace('.php', '', $file);
108 108
         }, $files);
109 109
 
Please login to merge, or discard this patch.
src/DB/Factories/ModelFactoryBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         }
97 97
 
98 98
         if (is_array($made)) {
99
-            return array_map(function (Model $model) {
99
+            return array_map(function(Model $model) {
100 100
                 $model->save();
101 101
 
102 102
                 return $model;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     protected function callClosureAttributes(array $attributes)
156 156
     {
157
-        return array_map(function ($attribute) use ($attributes) {
157
+        return array_map(function($attribute) use ($attributes) {
158 158
             if ($attribute instanceof \Closure) {
159 159
                 return $attribute($attributes);
160 160
             }
Please login to merge, or discard this patch.
src/DB/Seeders/SeedRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
             $files = scandir($seedPath);
46 46
 
47
-            $files = array_filter($files, function ($file) {
47
+            $files = array_filter($files, function($file) {
48 48
                 return strpos($file, '.php') !== false;
49 49
             });
50 50
 
Please login to merge, or discard this patch.
src/Console/ConsoleKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function getCommands()
16 16
     {
17 17
         if (property_exists($this, 'commands')) {
18
-            return array_map(function ($command) {
18
+            return array_map(function($command) {
19 19
                 $this->verifyCommand($command);
20 20
 
21 21
                 return $command;
Please login to merge, or discard this patch.
src/Console/SignatureParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     {
71 71
         preg_match_all('/{(.*?)}/', $signature, $argumentsOption);
72 72
 
73
-        return array_map(function ($item) {
73
+        return array_map(function($item) {
74 74
             return trim($item, '{}');
75 75
         }, $argumentsOption[1]);
76 76
     }
Please login to merge, or discard this patch.
app/config/services.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 use Phalcon\Mvc\Model\Manager as ModelsManager;
5 5
 use Phalcon\Mvc\Model\Metadata\Memory as MetaDataAdapter;
6 6
 
7
-$di->setShared('config', function () {
7
+$di->setShared('config', function() {
8 8
     return include APP_PATH.'/config/config.php';
9 9
 });
10 10
 
11
-$di->setShared('db', function () {
11
+$di->setShared('db', function() {
12 12
     $config = $this->getConfig();
13 13
 
14 14
     $class = 'Phalcon\Db\Adapter\Pdo\\'.$config->database->adapter;
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
     return $connection;
33 33
 });
34 34
 
35
-$di->setShared('modelsMetadata', function () {
35
+$di->setShared('modelsMetadata', function() {
36 36
     return new MetaDataAdapter();
37 37
 });
38 38
 
39
- $di->set('modelsManager', function () {
39
+ $di->set('modelsManager', function() {
40 40
      return new ModelsManager();
41 41
  });
42 42
 
43
-$di->set('yarak', function () {
43
+$di->set('yarak', function() {
44 44
     return new Kernel();
45 45
 });
Please login to merge, or discard this patch.