Passed
Push — dev ( 224e82...0b8575 )
by Sergey
05:58 queued 02:18
created
app/Controllers/ToolsController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $results = [];
195 195
 
196 196
         foreach ($array as $key => $value) {
197
-            if (is_array($value) && ! empty($value)) {
197
+            if (is_array($value) && !empty($value)) {
198 198
                 $results = array_merge($results, $this->dotArray($value, $prepend . $key . '.'));
199 199
             } else {
200 200
                 $results[$prepend . $key] = $value;
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     {
212 212
         $bytestotal = 0;
213 213
         $path       = realpath($path);
214
-        if ($path!==false && $path!=='' && file_exists($path)) {
214
+        if ($path !== false && $path !== '' && file_exists($path)) {
215 215
             foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS)) as $object) {
216 216
                 $bytestotal += $object->getSize();
217 217
             }
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
     /**
13 13
      * __construct
14 14
      */
15
-     public function __construct()
16
-     {
15
+        public function __construct()
16
+        {
17 17
 
18
-     }
18
+        }
19 19
 
20 20
     /**
21 21
      * Index page
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 /**
24 24
  * Ensure vendor libraries exist
25 25
  */
26
-! is_file($admin_autoload = __DIR__ . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> admin plugin');
26
+!is_file($admin_autoload = __DIR__ . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> admin plugin');
27 27
 
28 28
 /**
29 29
  * Register The Auto Loader
Please login to merge, or discard this patch.
app/Controllers/ApiImagesController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         $api_token_dir_path  = PATH['project'] . '/tokens' . '/images/' . $api_token;
113 113
         $api_token_file_path = $api_token_dir_path . '/token.yaml';
114 114
 
115
-        if (! Filesystem::has($api_token_file_path)) {
115
+        if (!Filesystem::has($api_token_file_path)) {
116 116
 
117 117
             Filesystem::createDir($api_token_dir_path);
118 118
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
     /**
21 21
      * __construct
22 22
      */
23
-     public function __construct()
24
-     {
23
+        public function __construct()
24
+        {
25 25
 
26
-     }
26
+        }
27 27
 
28 28
     /**
29 29
      * Images Index page
Please login to merge, or discard this patch.
app/Controllers/ApiAccessController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         $api_token_dir_path  = PATH['project'] . '/tokens' . '/access/' . $api_token;
113 113
         $api_token_file_path = $api_token_dir_path . '/token.yaml';
114 114
 
115
-        if (! Filesystem::has($api_token_file_path)) {
115
+        if (!Filesystem::has($api_token_file_path)) {
116 116
 
117 117
             Filesystem::createDir($api_token_dir_path);
118 118
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     /**
23 23
      * __construct
24 24
      */
25
-     public function __construct()
26
-     {
25
+        public function __construct()
26
+        {
27 27
 
28
-     }
28
+        }
29 29
 
30 30
     /**
31 31
      * Access Index page
Please login to merge, or discard this patch.
app/Controllers/ApiEntriesController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         $api_token_dir_path  = PATH['project'] . '/tokens/entries/' . $api_token;
114 114
         $api_token_file_path = $api_token_dir_path . '/token.yaml';
115 115
 
116
-        if (! Filesystem::has($api_token_file_path)) {
116
+        if (!Filesystem::has($api_token_file_path)) {
117 117
 
118 118
             Filesystem::createDir($api_token_dir_path);
119 119
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     /**
23 23
      * __construct
24 24
      */
25
-     public function __construct()
26
-     {
25
+        public function __construct()
26
+        {
27 27
 
28
-     }
28
+        }
29 29
 
30 30
     /**
31 31
      * Entries Index page
Please login to merge, or discard this patch.
app/Controllers/ApiRegistryController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         $api_token_dir_path  = PATH['project'] . '/tokens/registry/' . $api_token;
114 114
         $api_token_file_path = $api_token_dir_path . '/token.yaml';
115 115
 
116
-        if (! Filesystem::has($api_token_file_path)) {
116
+        if (!Filesystem::has($api_token_file_path)) {
117 117
 
118 118
             Filesystem::createDir($api_token_dir_path);
119 119
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
     /**
21 21
      * __construct
22 22
      */
23
-     public function __construct()
24
-     {
23
+        public function __construct()
24
+        {
25 25
 
26
-     }
26
+        }
27 27
 
28 28
     /**
29 29
      * Registry Index page
Please login to merge, or discard this patch.
app/Controllers/DashboardController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
     /**
13 13
      * __construct
14 14
      */
15
-     public function __construct()
16
-     {
15
+        public function __construct()
16
+        {
17 17
 
18
-     }
18
+        }
19 19
 
20 20
     /**
21 21
      * Index page
Please login to merge, or discard this patch.
app/Controllers/ApiController.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * __construct
23 23
      */
24
-     public function __construct()
25
-     {
24
+        public function __construct()
25
+        {
26 26
 
27
-     }
27
+        }
28 28
 
29 29
     /**
30 30
      * Index page for API's
@@ -41,30 +41,30 @@  discard block
 block discarded – undo
41 41
                 'menu_item' => 'api',
42 42
                 'api_list' => [
43 43
                                 'entries' => [
44
-                                  'title' => __('admin_entries'),
45
-                                  'icon' => 'fas fa-database'
44
+                                    'title' => __('admin_entries'),
45
+                                    'icon' => 'fas fa-database'
46 46
                                 ],
47 47
                                 'registry' => [
48
-                                  'title' => __('admin_registry'),
49
-                                  'icon' => 'fas fa-archive'
48
+                                    'title' => __('admin_registry'),
49
+                                    'icon' => 'fas fa-archive'
50 50
                                 ],
51 51
                                 'images' => [
52
-                                  'title' => __('admin_images'),
53
-                                  'icon' => 'far fa-images'
52
+                                    'title' => __('admin_images'),
53
+                                    'icon' => 'far fa-images'
54 54
                                 ],
55 55
                                 'files' => [
56
-                                  'title' => __('admin_files'),
57
-                                  'icon' => 'fas fa-file'
56
+                                    'title' => __('admin_files'),
57
+                                    'icon' => 'fas fa-file'
58 58
                                 ],
59 59
                                 'folders' => [
60
-                                  'title' => __('admin_folders'),
61
-                                  'icon' => 'fas fa-folder'
60
+                                    'title' => __('admin_folders'),
61
+                                    'icon' => 'fas fa-folder'
62 62
                                 ],
63 63
                                 'access' => [
64
-                                  'title' => __('admin_access'),
65
-                                  'icon' => 'fas fa-user-shield'
64
+                                    'title' => __('admin_access'),
65
+                                    'icon' => 'fas fa-user-shield'
66
+                                ],
66 67
                                 ],
67
-                               ],
68 68
                 'links' =>  [
69 69
                     'api' => [
70 70
                         'link' => flextype('router')->pathFor('admin.api.index'),
Please login to merge, or discard this patch.
app/Controllers/ApiFoldersController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
     /**
21 21
      * __construct
22 22
      */
23
-     public function __construct()
24
-     {
23
+        public function __construct()
24
+        {
25 25
 
26
-     }
26
+        }
27 27
 
28 28
     /**
29 29
      * folders Index page
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         $api_token_dir_path  = PATH['project'] . '/tokens/media/folders/' . $api_token;
121 121
         $api_token_file_path = $api_token_dir_path . '/token.yaml';
122 122
 
123
-        if (! Filesystem::has($api_token_file_path)) {
123
+        if (!Filesystem::has($api_token_file_path)) {
124 124
 
125 125
             Filesystem::createDir($api_token_dir_path);
126 126
 
Please login to merge, or discard this patch.