Passed
Push — dev ( cc3488...536a25 )
by Sergey
05:38
created
app/Controllers/ApiImagesController.php 1 patch
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.
app/Controllers/ApiController.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,22 +32,22 @@
 block discarded – undo
32 32
                 'menu_item' => 'api',
33 33
                 'api_list' => [
34 34
                                 'delivery' => [
35
-                                  'title' => 'Delivery',
36
-                                  'icon' => 'fas fa-truck'
35
+                                    'title' => 'Delivery',
36
+                                    'icon' => 'fas fa-truck'
37 37
                                 ],
38 38
                                 'images' => [
39
-                                  'title' => 'Images',
40
-                                  'icon' => 'far fa-images'
39
+                                    'title' => 'Images',
40
+                                    'icon' => 'far fa-images'
41 41
                                 ],
42 42
                                 'management' => [
43
-                                  'title' => 'Management',
44
-                                  'icon' => 'fas fa-user-cog'
43
+                                    'title' => 'Management',
44
+                                    'icon' => 'fas fa-user-cog'
45 45
                                 ],
46 46
                                 'access' => [
47
-                                  'title' => 'Access',
48
-                                  'icon' => 'fas fa-user-shield'
47
+                                    'title' => 'Access',
48
+                                    'icon' => 'fas fa-user-shield'
49
+                                ],
49 50
                                 ],
50
-                               ],
51 51
                 'links' =>  [
52 52
                     'api' => [
53 53
                         'link' => $this->router->pathFor('admin.api.index'),
Please login to merge, or discard this patch.
app/Controllers/ApiManagementEntriesController.php 1 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' . '/management/entries/' . $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.
app/Controllers/ApiAccessController.php 1 patch
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.
dependencies.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 
21 21
 // Add Admin Navigation
22 22
 $flextype->registry->set('plugins.admin.settings.navigation.content.entries', ['title' => __('admin_entries'), 'icon' => 'fas fa-database', 'link' => $flextype->router->pathFor('admin.entries.index')]);
23
-$flextype->registry->set('plugins.admin.settings.navigation.extends.plugins', ['title' => __('admin_plugins'),'icon' => 'fas fa-plug', 'link' => $flextype->router->pathFor('admin.plugins.index')]);
24
-$flextype->registry->set('plugins.admin.settings.navigation.system.tools', ['title' => __('admin_tools'),'icon' => 'fas fa-toolbox', 'link' => $flextype->router->pathFor('admin.tools.index')]);
25
-$flextype->registry->set('plugins.admin.settings.navigation.system.api', ['title' => __('admin_api'),'icon' => 'fas fa-network-wired', 'link' => $flextype->router->pathFor('admin.api.index')]);
23
+$flextype->registry->set('plugins.admin.settings.navigation.extends.plugins', ['title' => __('admin_plugins'), 'icon' => 'fas fa-plug', 'link' => $flextype->router->pathFor('admin.plugins.index')]);
24
+$flextype->registry->set('plugins.admin.settings.navigation.system.tools', ['title' => __('admin_tools'), 'icon' => 'fas fa-toolbox', 'link' => $flextype->router->pathFor('admin.tools.index')]);
25
+$flextype->registry->set('plugins.admin.settings.navigation.system.api', ['title' => __('admin_api'), 'icon' => 'fas fa-network-wired', 'link' => $flextype->router->pathFor('admin.api.index')]);
26 26
 
27 27
 // Add Global Vars Admin Twig Extension
28 28
 $flextype->twig->addExtension(new GlobalVarsAdminTwigExtension($flextype));
@@ -48,62 +48,62 @@  discard block
 block discarded – undo
48 48
 /**
49 49
  * Add flash service to Flextype container
50 50
  */
51
-$flextype['flash'] = static function () {
51
+$flextype['flash'] = static function() {
52 52
     return new Messages();
53 53
 };
54 54
 
55
-$flextype['DashboardController'] = static function ($container) {
55
+$flextype['DashboardController'] = static function($container) {
56 56
     return new DashboardController($container);
57 57
 };
58 58
 
59
-$flextype['SettingsController'] = static function ($container) {
59
+$flextype['SettingsController'] = static function($container) {
60 60
     return new SettingsController($container);
61 61
 };
62 62
 
63
-$flextype['PluginsController'] = static function ($container) {
63
+$flextype['PluginsController'] = static function($container) {
64 64
     return new PluginsController($container);
65 65
 };
66 66
 
67
-$flextype['EntriesController'] = static function ($container) {
67
+$flextype['EntriesController'] = static function($container) {
68 68
     return new EntriesController($container);
69 69
 };
70 70
 
71
-$flextype['UsersController'] = static function ($container) {
71
+$flextype['UsersController'] = static function($container) {
72 72
     return new UsersController($container);
73 73
 };
74 74
 
75
-$flextype['ToolsController'] = static function ($container) {
75
+$flextype['ToolsController'] = static function($container) {
76 76
     return new ToolsController($container);
77 77
 };
78 78
 
79
-$flextype['ApiController'] = static function ($container) {
79
+$flextype['ApiController'] = static function($container) {
80 80
     return new ApiController($container);
81 81
 };
82 82
 
83
-$flextype['ApiManagementController'] = static function ($container) {
83
+$flextype['ApiManagementController'] = static function($container) {
84 84
     return new ApiManagementController($container);
85 85
 };
86 86
 
87
-$flextype['ApiManagementEntriesController'] = static function ($container) {
87
+$flextype['ApiManagementEntriesController'] = static function($container) {
88 88
     return new ApiManagementEntriesController($container);
89 89
 };
90 90
 
91
-$flextype['ApiDeliveryController'] = static function ($container) {
91
+$flextype['ApiDeliveryController'] = static function($container) {
92 92
     return new ApiDeliveryController($container);
93 93
 };
94 94
 
95
-$flextype['ApiDeliveryEntriesController'] = static function ($container) {
95
+$flextype['ApiDeliveryEntriesController'] = static function($container) {
96 96
     return new ApiDeliveryEntriesController($container);
97 97
 };
98 98
 
99
-$flextype['ApiImagesController'] = static function ($container) {
99
+$flextype['ApiImagesController'] = static function($container) {
100 100
     return new ApiImagesController($container);
101 101
 };
102 102
 
103
-$flextype['ApiAccessController'] = static function ($container) {
103
+$flextype['ApiAccessController'] = static function($container) {
104 104
     return new ApiAccessController($container);
105 105
 };
106 106
 
107
-$flextype['ApiDeliveryRegistryController'] = static function ($container) {
107
+$flextype['ApiDeliveryRegistryController'] = static function($container) {
108 108
     return new ApiDeliveryRegistryController($container);
109 109
 };
Please login to merge, or discard this patch.