Completed
Pull Request — master (#15)
by
unknown
05:21
created
app/src/Commands/SampleController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
     public function actionIndex()
14 14
     {
15
-        echo 'This is sample console command.' . PHP_EOL;
16
-        echo 'Actions: ' . PHP_EOL;
17
-        echo 'partisan sample index' . PHP_EOL;
15
+        echo 'This is sample console command.'.PHP_EOL;
16
+        echo 'Actions: '.PHP_EOL;
17
+        echo 'partisan sample index'.PHP_EOL;
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
app/src/Providers/EncoderServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function register(Container $container)
16 16
     {
17
-        $config  = $container['settings'];
17
+        $config = $container['settings'];
18 18
 
19 19
         $container['encoder'] = function() use ($config) {
20 20
             $encoder = new JsonApiEncoder($config);
Please login to merge, or discard this patch.
app/src/Common/MailRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      * @param string $template
68 68
      * @param array $data
69 69
      */
70
-    protected function protectedIncludeScope ($template, array $data)
70
+    protected function protectedIncludeScope($template, array $data)
71 71
     {
72 72
         extract($data);
73 73
         include $template;
Please login to merge, or discard this patch.
app/src/Controller/BaseController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
         foreach ($observers as $observer => $models) {
102 102
             foreach ($models as $model) {
103
-                call_user_func($model. '::observe', $observer);
103
+                call_user_func($model.'::observe', $observer);
104 104
             }
105 105
         }
106 106
     }
Please login to merge, or discard this patch.
app/src/Controller/CrudController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                         $query = $query->whereNotIn($filter['attribute'], $filter['value']);
46 46
                         break;
47 47
                     case 'like':
48
-                        $query = $query->where($filter['attribute'], 'like', '%'.$filter['value'] . '%');
48
+                        $query = $query->where($filter['attribute'], 'like', '%'.$filter['value'].'%');
49 49
                         break;
50 50
                     case '=':
51 51
                     case '!=':
Please login to merge, or discard this patch.
app.paths.conf.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // PATH aliases
4
-define('ROOT_PATH',       __DIR__ );
5
-define('MIGRATIONS_PATH', __DIR__ . '/app/database/migrations');
6
-define('SEEDS_PATH',      __DIR__ . '/app/database/seeds');
7
-define('COMMANDS_PATH',   __DIR__ . '/app/src/Commands');
8
-define('CONFIG_PATH',     __DIR__ . '/config');
9
-define('APP_PATH',        __DIR__ . '/app');
4
+define('ROOT_PATH', __DIR__);
5
+define('MIGRATIONS_PATH', __DIR__.'/app/database/migrations');
6
+define('SEEDS_PATH', __DIR__.'/app/database/seeds');
7
+define('COMMANDS_PATH', __DIR__.'/app/src/Commands');
8
+define('CONFIG_PATH', __DIR__.'/config');
9
+define('APP_PATH', __DIR__.'/app');
10 10
 
Please login to merge, or discard this patch.
app/src/Common/Config/FileLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             $dir_entries = scandir($path);
28 28
             foreach ($dir_entries as $dir_entry) {
29 29
                 // include paths to files into result set
30
-                $filename = $path . DIRECTORY_SEPARATOR . $dir_entry;
30
+                $filename = $path.DIRECTORY_SEPARATOR.$dir_entry;
31 31
                 if (@is_file($filename) && @is_readable($filename)) {
32 32
                     $res[] = $filename;
33 33
                 }
Please login to merge, or discard this patch.
app/src/Common/Config/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $settings['accessToken']['iss'] = @getenv('AUTH_ISS');
40 40
 
41 41
         // Adjust error reporting
42
-        if (@stripos($settings['params']['env'],  'dev') !== false) {
42
+        if (@stripos($settings['params']['env'], 'dev') !== false) {
43 43
             $settings['displayErrorDetails'] = true;
44 44
         }
45 45
 
Please login to merge, or discard this patch.
config/acl.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             Acl::GUARD_TYPE_ROUTE => [
50 50
                 // resource, [roles as array], [privileges as array]
51 51
                 ['/api/token', ['guest'], [Acl::PRIVILEGE_POST]],
52
-                ['/api/user',  ['user'],  [Acl::PRIVILEGE_GET]],
52
+                ['/api/user', ['user'], [Acl::PRIVILEGE_GET]],
53 53
             ],
54 54
 
55 55
             /**
@@ -61,15 +61,15 @@  discard block
 block discarded – undo
61 61
              */
62 62
             Acl::GUARD_TYPE_CALLABLE => [
63 63
                 // resource, [roles as array], [privileges as array]
64
-                ['App\Controller\CrudController',              ['user']],
65
-                ['App\Controller\CrudController:actionIndex',  ['user']],
66
-                ['App\Controller\CrudController:actionGet',    ['user']],
64
+                ['App\Controller\CrudController', ['user']],
65
+                ['App\Controller\CrudController:actionIndex', ['user']],
66
+                ['App\Controller\CrudController:actionGet', ['user']],
67 67
                 ['App\Controller\CrudController:actionCreate', ['user']],
68 68
                 ['App\Controller\CrudController:actionUpdate', ['user']],
69 69
                 ['App\Controller\CrudController:actionDelete', ['user']],
70 70
 
71
-                ['App\Controller\UserController:actionIndex',  ['user']],
72
-                ['App\Controller\UserController:actionGet',    ['user']],
71
+                ['App\Controller\UserController:actionIndex', ['user']],
72
+                ['App\Controller\UserController:actionGet', ['user']],
73 73
                 ['App\Controller\UserController:actionCreate', ['admin']],
74 74
                 ['App\Controller\UserController:actionUpdate', ['admin']],
75 75
                 ['App\Controller\UserController:actionDelete', ['admin']],
Please login to merge, or discard this patch.