Passed
Pull Request — develop (#317)
by Schlaefer
03:58
created
lib/Phile/Model/Page.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
     /**
134 134
      * set content of page
135 135
      *
136
-     * @param $content
136
+     * @param string $content
137 137
      */
138 138
     public function setContent($content)
139 139
     {
Please login to merge, or discard this patch.
lib/Phile/Repository/PageCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     public function offsetSet($offset, $value)
77 77
     {
78 78
         $this->load();
79
-        $this->pages[$offset] =    $value;
79
+        $this->pages[$offset] = $value;
80 80
     }
81 81
 
82 82
     public function offsetUnset($offset)
Please login to merge, or discard this patch.
plugins/phile/errorHandler/Classes/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
  */
22 22
 class Plugin extends AbstractPlugin
23 23
 {
24
-    const HANDLER_ERROR_LOG        = 'error_log';
25
-    const HANDLER_DEVELOPMENT    = 'development';
24
+    const HANDLER_ERROR_LOG = 'error_log';
25
+    const HANDLER_DEVELOPMENT = 'development';
26 26
 
27 27
     protected $events = ['plugins_loaded' => 'onPluginsLoaded'];
28 28
 
Please login to merge, or discard this patch.
lib/Phile/Core/Utility.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * resolve a file path by replace the mod: prefix
57 57
      *
58
-     * @param $path
58
+     * @param string $path
59 59
      *
60 60
      * @return string|null the full filepath or null if file does not exists
61 61
      */
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * load files e.g. config files
78 78
      *
79
-     * @param $file
79
+     * @param null|string $file
80 80
      *
81 81
      * @return mixed|null
82 82
      */
@@ -202,6 +202,11 @@  discard block
 block discarded – undo
202 202
      * @return mixed
203 203
      */
204 204
     // @codingStandardsIgnoreStart
205
+
206
+    /**
207
+     * @param integer $min
208
+     * @param integer $max
209
+     */
205 210
     public static function crypto_rand_secure($min, $max)
206 211
     {
207 212
         // @codingStandardsIgnoreEnd
Please login to merge, or discard this patch.
lib/Phile/Repository/Page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     {
95 95
         $folder = $folder ?: $this->settings['content_dir'];
96 96
         return new PageCollection(
97
-            function () use ($options, $folder) {
97
+            function() use ($options, $folder) {
98 98
                 $options += $this->settings;
99 99
                 // ignore files with a leading '.' in its filename
100 100
                 $files = Utility::getFiles($folder, '\Phile\FilterIterator\ContentFileFilterIterator');
Please login to merge, or discard this patch.
plugins/phile/phpFastCache/Classes/PhileToPsr16CacheAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     /**
54 54
      * method to get cache entry
55 55
      *
56
-     * @param $key
56
+     * @param string $key
57 57
      *
58 58
      * @return mixed|null
59 59
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /** @var string slug */
21 21
     const SLUG_PREFIX = '-phile.phpFastCache.slug-';
22 22
     
23
-    const SLUG = ['{', '}' , '(', ')', '/' , '\\' , '@', ':'];
23
+    const SLUG = ['{', '}', '(', ')', '/', '\\', '@', ':'];
24 24
 
25 25
     /**
26 26
      * @var \BasePhpFastCache the cache engine
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     protected function slug($key)
119 119
     {
120 120
         $replacementTokens = array_map(
121
-            function ($key) {
121
+            function($key) {
122 122
                 return self::SLUG_PREFIX . $key;
123 123
             },
124 124
             array_keys(self::SLUG)
Please login to merge, or discard this patch.
lib/Phile/Core/Bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public static function loadConfiguration($file, Config $config)
26 26
     {
27 27
         // function isolates context of loaded files
28
-        $load = function ($file) {
28
+        $load = function($file) {
29 29
             return include $file;
30 30
         };
31 31
         $config->merge($load($file));
Please login to merge, or discard this patch.
lib/Phile/Test/TestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         //# setup bootstrap
51 51
         $core = $container->get('Phile_App');
52
-        $core->addBootstrap(function ($eventBus, $config) {
52
+        $core->addBootstrap(function($eventBus, $config) {
53 53
             $configDir = $config->get('config_dir');
54 54
             Bootstrap::loadConfiguration($configDir . 'defaults.php', $config);
55 55
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         });
65 65
 
66 66
         //# setup middleware
67
-        $core->addMiddleware(function ($middleware, $eventBus, $config) use ($core) {
67
+        $core->addMiddleware(function($middleware, $eventBus, $config) use ($core) {
68 68
             $eventBus->trigger('phile.core.middleware.add', ['middleware' => $middleware]);
69 69
             $middleware->add($core, 0);
70 70
         });
Please login to merge, or discard this patch.
lib/Phile/Phile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             ->withHeader('Content-Type', 'text/html; charset=' . $charset);
122 122
 
123 123
         if ($page->getPageId() == '404') {
124
-            $response = $response->withStatus(404) ;
124
+            $response = $response->withStatus(404);
125 125
         }
126 126
 
127 127
         return $response;
Please login to merge, or discard this patch.