Passed
Push — develop ( 184283...91c1d2 )
by Schlaefer
02:31
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.
plugins/phile/templateTwig/Classes/Template/Twig.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     /**
80 80
      * wrapper to call the render engine
81 81
      *
82
-     * @param  $engine
82
+     * @param  \Twig_Environment $engine
83 83
      * @param  $vars
84 84
      * @return mixed
85 85
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
         ];
176 176
 
177 177
         /**
178
- * @var array $templateVars
178
+         * @var array $templateVars
179 179
 */
180 180
         $templateVars = Registry::get('templateVars');
181 181
         $templateVars += $defaults;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Phile\Core\Event;
8 8
 use Phile\Core\Registry;
9 9
 use Phile\Model\Page;
10
-use Phile\Repository\Page as Repository;
11 10
 use Phile\ServiceLocator\TemplateInterface;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
lib/Phile/Bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         spl_autoload_extensions(".php");
103 103
         // load phile core
104 104
         spl_autoload_register(
105
-            function ($className) {
105
+            function($className) {
106 106
                 $fileName = LIB_DIR . str_replace("\\", DS, $className) . '.php';
107 107
                 if (file_exists($fileName)) {
108 108
                     include_once $fileName;
Please login to merge, or discard this patch.
lib/Phile/Model/Meta.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     protected function parseRawData($rawData)
82 82
     {
83 83
         /**
84
- * @var \Phile\ServiceLocator\MetaInterface $metaParser
84
+         * @var \Phile\ServiceLocator\MetaInterface $metaParser
85 85
 */
86 86
         $metaParser = ServiceLocator::getService('Phile_Parser_Meta');
87 87
         $data       = $metaParser->parse($rawData);
Please login to merge, or discard this patch.
lib/Phile/Repository/Page.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@
 block discarded – undo
128 128
                     $column = array();
129 129
                     foreach ($pages as $page) {
130 130
                         /**
131
-            * @var \Phile\Model\Page $page
132
-            */
131
+                         * @var \Phile\Model\Page $page
132
+                         */
133 133
                         $meta = $page->getMeta();
134 134
                         if ($sort['type'] === 'page') {
135 135
                             $method = 'get' . ucfirst($key);
Please login to merge, or discard this 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.
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.
lib/Phile/Plugin/PluginRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@  discard block
 block discarded – undo
16 16
 {
17 17
 
18 18
     /**
19
- * @var array of AbstractPlugin
19
+     * @var array of AbstractPlugin
20 20
 */
21 21
     protected $plugins = [];
22 22
 
23 23
     /**
24
- * @var array errors during load; keys: 'message' and 'code'
24
+     * @var array errors during load; keys: 'message' and 'code'
25 25
 */
26 26
     protected $loadErrors = [];
27 27
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         /**
85
- * @var \Phile\Plugin\AbstractPlugin $plugin
85
+         * @var \Phile\Plugin\AbstractPlugin $plugin
86 86
 */
87 87
         $plugin = new $pluginClassName;
88 88
         if (($plugin instanceof AbstractPlugin) === false) {
Please login to merge, or discard this patch.
lib/Phile/Plugin/AbstractPlugin.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         if (!is_callable([$this, $method])) {
118 118
             $class = get_class($this);
119 119
             throw new \RuntimeException(
120
-                "Event $eventKey can't invoke $class::$method(). Not callable.",
120
+                "event $eventKey can't invoke $class::$method(). Not callable.",
121 121
                 1428564865
122 122
             );
123 123
         }
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
 {
22 22
 
23 23
     /**
24
- * @var string plugin attributes
24
+     * @var string plugin attributes
25 25
 */
26 26
     protected $plugin = [];
27 27
 
28 28
     /**
29
- * @var array subscribed Phile events ['eventName' => 'classMethodToCall']
29
+     * @var array subscribed Phile events ['eventName' => 'classMethodToCall']
30 30
 */
31 31
     protected $events = [];
32 32
 
33 33
     /**
34
- * @var array the plugin settings
34
+     * @var array the plugin settings
35 35
 */
36 36
     protected $settings = [];
37 37
 
Please login to merge, or discard this patch.
simpleFileDataPersistence/Classes/Persistence/SimpleFileDataPersistence.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 class SimpleFileDataPersistence implements PersistenceInterface
18 18
 {
19 19
     /**
20
- * @var string $dataDirectory the data storage directory
20
+     * @var string $dataDirectory the data storage directory
21 21
 */
22 22
     protected $dataDirectory;
23 23
 
Please login to merge, or discard this patch.