Passed
Pull Request — develop (#323)
by Schlaefer
05:02
created
lib/Phile/Model/AbstractModel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 class AbstractModel implements \ArrayAccess
16 16
 {
17 17
     /**
18
- * @var array the storage
18
+     * @var array the storage
19 19
 */
20 20
     protected $data = array();
21 21
 
Please login to merge, or discard this patch.
plugins/phile/parserMarkdown/Classes/Parser/Markdown.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 class Markdown implements ParserInterface
19 19
 {
20 20
     /**
21
- * @var mixed the configuration
21
+     * @var mixed the configuration
22 22
 */
23 23
     private $config;
24 24
 
Please login to merge, or discard this patch.
lib/Phile/Core/Utility.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
         $result = array();
129 129
         foreach ($files as $file) {
130 130
             /**
131
- * @var \SplFileInfo $file
131
+             * @var \SplFileInfo $file
132 132
 */
133 133
             $result[] = $file->getPathname();
134 134
         }
Please login to merge, or discard this 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/Core/Session.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 class Session
16 16
 {
17 17
     /**
18
- * @var bool mark if session is started
18
+     * @var bool mark if session is started
19 19
 */
20 20
     static public $isStarted = false;
21 21
 
22 22
     /**
23
- * @var string the session id
23
+     * @var string the session id
24 24
 */
25 25
     static public $sessionId = '';
26 26
 
Please login to merge, or discard this patch.
plugins/phile/errorHandler/Classes/Development.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
 
22 22
     /**
23
- * @var array settings
23
+     * @var array settings
24 24
 */
25 25
     protected $settings;
26 26
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
     /**
291 291
      * link the class or method to the API or return the method name
292
-  *
292
+     *
293 293
      * @param $class
294 294
      * @param $method
295 295
      *
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/Phile.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Phile\Core\Router;
16 16
 use Phile\Model\Page;
17 17
 use Phile\Repository\Page as Repository;
18
-
19 18
 use Interop\Http\Server\MiddlewareInterface;
20 19
 use Interop\Http\Server\RequestHandlerInterface;
21 20
 use Psr\Http\Message\ResponseInterface;
Please login to merge, or discard this 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.
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/FilterIterator/ContentFileFilterIterator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         /**
23 23
          * @var \SplFileInfo $this
24
-        */
24
+         */
25 25
         $ext = Container::getInstance()->get('Phile_Config')->get('content_ext');
26 26
         return (preg_match('/^[^\.]{1}.*' . $ext . '/', $this->getFilename()) > 0);
27 27
     }
Please login to merge, or discard this patch.