Passed
Pull Request — master (#281)
by Arman
03:43
created
src/Libraries/HttpClient/HttpClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     {
99 99
         $this->client = new MultiCurl();
100 100
 
101
-        $this->client->complete(function (Curl $instance) {
101
+        $this->client->complete(function(Curl $instance) {
102 102
             $this->handleResponse($instance);
103 103
         });
104 104
 
Please login to merge, or discard this patch.
src/Libraries/Encryption/Adapters/AsymmetricEncryptionAdapter.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 encrypt(string $plain): string
64 64
     {
65
-        if(!$this->publicKey) {
65
+        if (!$this->publicKey) {
66 66
             throw CryptorException::publicKeyNotProvided();
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/Libraries/Auth/Contracts/AuthServiceInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
      */
30 30
     public function get(string $field, ?string $value): ?User;
31 31
 
32
-     /**
33
-     * Add
34
-     * @param array $data
35
-     * @return User
36
-     */
32
+        /**
33
+         * Add
34
+         * @param array $data
35
+         * @return User
36
+         */
37 37
     public function add(array $data): User;
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
src/Libraries/Storage/Adapters/Dropbox/DropboxApp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -273,8 +273,8 @@
 block discarded – undo
273 273
             return false;
274 274
         }
275 275
 
276
-        if(isset($message->error)) {
277
-            $error = (array)$message->error;
276
+        if (isset($message->error)) {
277
+            $error = (array) $message->error;
278 278
 
279 279
             if (!isset($error['.tag']) && !in_array($error['.tag'], self::ACCESS_TOKEN_STATUS)) {
280 280
                 return false;
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Idiorm/Statements/Reducer.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
     public function select(...$columns): DbalInterface
33 33
     {
34
-        array_walk($columns, function (&$column) {
34
+        array_walk($columns, function(&$column) {
35 35
             if (is_array($column)) {
36 36
                 $column = array_flip($column);
37 37
             }
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Sleekdb/Statements/Reducer.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
     public function select(...$columns): DbalInterface
33 33
     {
34
-        array_walk($columns, function (&$column) {
34
+        array_walk($columns, function(&$column) {
35 35
             if (is_array($column)) {
36 36
                 $column = array_flip($column);
37 37
             }
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Sleekdb/Statements/Join.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $switch = $nextItem['switch'];
84 84
         $joinType = $nextItem['type'];
85 85
 
86
-        $queryBuilder->join(function ($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) {
86
+        $queryBuilder->join(function($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) {
87 87
 
88 88
             $newQueryBuilder = (new self($modelToJoin->table))->getOrmModel()->createQueryBuilder();
89 89
 
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Sleekdb/Statements/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function get(): array
42 42
     {
43
-        return array_map(function ($element) {
43
+        return array_map(function($element) {
44 44
             $item = clone $this;
45 45
             $item->data = $element;
46 46
             $item->modifiedFields = $element;
Please login to merge, or discard this patch.
src/Libraries/Database/Schemas/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -332,6 +332,6 @@
 block discarded – undo
332 332
      */
333 333
     private function columnKey(): int
334 334
     {
335
-        return (int)array_key_last($this->columns);
335
+        return (int) array_key_last($this->columns);
336 336
     }
337 337
 }
338 338
\ No newline at end of file
Please login to merge, or discard this patch.