Passed
Push — develop ( 91c1d2...446210 )
by Schlaefer
41s
created
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/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/Plugin/AbstractPlugin.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@
 block discarded – undo
20 20
 {
21 21
 
22 22
     /**
23
- * @var string plugin attributes
23
+     * @var string plugin attributes
24 24
 */
25 25
     private $plugin = [];
26 26
 
27 27
     /**
28
- * @var array subscribed Phile events ['eventName' => 'classMethodToCall']
28
+     * @var array subscribed Phile events ['eventName' => 'classMethodToCall']
29 29
 */
30 30
     protected $events = [];
31 31
 
32 32
     /**
33
- * @var array the plugin settings
33
+     * @var array the plugin settings
34 34
 */
35 35
     protected $settings = [];
36 36
 
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/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.
config/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  * initialize autoloaders
31 31
  */
32 32
 // load classes from Phile-core
33
-spl_autoload_register(function ($className) {
33
+spl_autoload_register(function($className) {
34 34
     $fileName = LIB_DIR . str_replace("\\", DS, $className) . '.php';
35 35
     if (file_exists($fileName)) {
36 36
         require_once $fileName;
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 /**
43 43
  * Setup global application-object
44 44
  */
45
-require 'container.php' ;
45
+require 'container.php';
46 46
 $app = Phile\Core\Container::getInstance()->get('Phile_App');
47 47
 
48 48
 /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 use Phile\Core\Event;
54 54
 use Phile\Core\Registry;
55 55
 
56
-$app->addBootstrap(function (Event $eventBus, Config $config) {
56
+$app->addBootstrap(function(Event $eventBus, Config $config) {
57 57
     // Load configuration files into global $config configuration
58 58
     $configDir = $config->get('config_dir');
59 59
     Bootstrap::loadConfiguration($configDir . 'defaults.php', $config);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
  */
91 91
 use Phile\Core\RequestHandler;
92 92
 
93
-$app->addMiddleware(function (RequestHandler $middleware, Event $eventBus, Config $config) use ($app) {
93
+$app->addMiddleware(function(RequestHandler $middleware, Event $eventBus, Config $config) use ($app) {
94 94
     // Inject middleware from Phile-plugins
95 95
     $eventBus->trigger('phile.core.middleware.add', ['middleware' => $middleware]);
96 96
 
Please login to merge, or discard this patch.
plugins/phile/setupCheck/Classes/Plugin.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     protected $needsSetup;
23 23
 
24 24
     /**
25
- * @var array event subscription
25
+     * @var array event subscription
26 26
 */
27 27
     protected $events = [
28 28
         'config_loaded' => 'onConfigLoaded',
Please login to merge, or discard this patch.
plugins/mycompany/demoPlugin/Classes/Plugin.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public function outputPluginSettings($data = null)
51 51
     {
52
-          // you can access this plugins' config in $this->settings
52
+            // you can access this plugins' config in $this->settings
53 53
         $settings = $this->settings;
54 54
 
55 55
         $content = $data['content'];
Please login to merge, or discard this patch.