Passed
Branch master (270844)
by Joao
03:40
created
Category
config/config-dev.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     'DBDRIVER_CONNECTION' => 'sqlite://' . __DIR__ . '/../src/sample.db',
33 33
 
34
-    'DUMMY_TABLE' => function () {
34
+    'DUMMY_TABLE' => function() {
35 35
         $dbDriver = Factory::getDbRelationalInstance(Psr11::container()->get('DBDRIVER_CONNECTION'));
36 36
 
37 37
         $mapper = new \ByJG\MicroOrm\Mapper(
Please login to merge, or discard this patch.
src/project/Repository/DummyRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         $query = Query::getInstance()
22 22
             ->table('dummy')
23
-            ->where('dummy.field like :field', ['field' => "%$field%"]);
23
+            ->where('dummy.field like :field', [ 'field' => "%$field%" ]);
24 24
 
25 25
         $result = $this->repository->getByQuery($query);
26 26
         if (is_null($result)) {
Please login to merge, or discard this patch.
src/project/Repository/BaseRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@
 block discarded – undo
44 44
 
45 45
         if (!empty($orderBy)) {
46 46
             if (!is_array($orderBy)) {
47
-                $orderBy = [$orderBy];
47
+                $orderBy = [ $orderBy ];
48 48
             }
49 49
             $query->orderBy($orderBy);
50 50
         }
51 51
 
52 52
         foreach ((array)$filter as $item) {
53
-            $query->where($item[0], $item[1]);
53
+            $query->where($item[ 0 ], $item[ 1 ]);
54 54
         }
55 55
 
56 56
         return $this->repository
Please login to merge, or discard this patch.
src/project/Rest/ServiceAbstractBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * @param array $properties
20 20
      * @return mixed
21 21
      */
22
-    public function createToken($properties = [])
22
+    public function createToken($properties = [ ])
23 23
     {
24 24
         $jwt = new JwtWrapper(Psr11::container()->get('JWT_SERVER'), Psr11::container()->get('JWT_SECRET'));
25 25
         $jwtData = $jwt->createJwtData($properties, 1800);
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         try {
32 32
             $jwt = new JwtWrapper(Psr11::container()->get('JWT_SERVER'), Psr11::container()->get('JWT_SECRET'));
33 33
             $tokenInfo = json_decode(json_encode($jwt->extractData($token)), true);
34
-            return $tokenInfo['data'];
34
+            return $tokenInfo[ 'data' ];
35 35
         } catch (\Exception $ex) {
36 36
             throw new Error401Exception($ex->getMessage());
37 37
         }
Please login to merge, or discard this patch.
src/project/Rest/Login.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
         $token = $this->createToken($metadata);
65 65
 
66
-        $metadata['token'] = $token;
66
+        $metadata[ 'token' ] = $token;
67 67
 
68 68
         $this->getResponse()->write($metadata);
69 69
     }
Please login to merge, or discard this patch.
src/builder/_Lib.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,15 +48,15 @@  discard block
 block discarded – undo
48 48
         // get exit status
49 49
         preg_match('/[0-9]+$/', $completeOutput, $matches);
50 50
 
51
-        $exitStatus = intval($matches[0]);
51
+        $exitStatus = intval($matches[ 0 ]);
52 52
         // if ($exitStatus !== 0) {
53 53
         //     exit($exitStatus);
54 54
         // }
55 55
 
56 56
         // return exit status and intended output
57
-        return array (
57
+        return array(
58 58
             'exit_status'  => $exitStatus,
59
-            'output'       => str_replace("Exit status : " . $matches[0], '', $completeOutput)
59
+            'output'       => str_replace("Exit status : " . $matches[ 0 ], '', $completeOutput)
60 60
         );
61 61
     }
62 62
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             // Get User Variables
74 74
             $variables = Psr11::container()->get('BUILDER_VARIABLES');
75 75
             foreach ((array)$variables as $variable => $value) {
76
-                $this->dockerVariables["%$variable%"] = $this->replaceVariables($value);
76
+                $this->dockerVariables[ "%$variable%" ] = $this->replaceVariables($value);
77 77
             }
78 78
         }
79 79
 
Please login to merge, or discard this patch.
src/builder/PostCreateScript.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
     public function execute($workdir, $namespace, $composerName)
10 10
     {
11 11
         $directory = new \RecursiveDirectoryIterator($workdir);
12
-        $filter = new \RecursiveCallbackFilterIterator($directory, function ($current/*, $key, $iterator*/) {
12
+        $filter = new \RecursiveCallbackFilterIterator($directory, function($current/*, $key, $iterator*/) {
13 13
             // Skip hidden files and directories.
14
-            if ($current->getFilename()[0] === '.') {
14
+            if ($current->getFilename()[ 0 ] === '.') {
15 15
                 return false;
16 16
             }
17 17
             if ($current->isDir()) {
Please login to merge, or discard this patch.