Completed
Push — master ( e2e8d0...e0bf3e )
by Vladimir
02:21
created
src/Object/JailObject.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * {@inheritdoc}
105 105
      */
106
-    public function offsetExists($offset)
106
+    public function offsetExists ($offset)
107 107
     {
108 108
         return $this->object->offsetExists($offset);
109 109
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * {@inheritdoc}
113 113
      */
114
-    public function offsetGet($offset)
114
+    public function offsetGet ($offset)
115 115
     {
116 116
         return $this->object->offsetGet($offset);
117 117
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * {@inheritdoc}
121 121
      */
122
-    public function offsetSet($offset, $value)
122
+    public function offsetSet ($offset, $value)
123 123
     {
124 124
         return $this->object->offsetSet($offset, $value);
125 125
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * {@inheritdoc}
129 129
      */
130
-    public function offsetUnset($offset)
130
+    public function offsetUnset ($offset)
131 131
     {
132 132
         return $this->object->offsetUnset($offset);
133 133
     }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             return $this->object->$name;
89 89
         }
90 90
 
91
-        return NULL;
91
+        return null;
92 92
     }
93 93
 
94 94
     public function coreInstanceOf ($class)
Please login to merge, or discard this patch.
src/Object/Website.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -322,6 +322,9 @@  discard block
 block discarded – undo
322 322
         $this->noClean = $noClean;
323 323
     }
324 324
 
325
+    /**
326
+     * @param string $filePath
327
+     */
325 328
     private function creationWatcher ($filePath)
326 329
     {
327 330
         $this->output->writeln(sprintf("File creation detected: %s", $filePath));
@@ -363,6 +366,9 @@  discard block
 block discarded – undo
363 366
         }
364 367
     }
365 368
 
369
+    /**
370
+     * @param string $filePath
371
+     */
366 372
     private function modificationWatcher ($filePath)
367 373
     {
368 374
         $this->output->writeln(sprintf("File change detected: %s", $filePath));
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
         $this->pm->configureTwig($this->getConfiguration(), array(
140 140
             'safe'    => $this->safeMode,
141 141
             'globals' => array(
142
-                array('name' => 'site',        'value' => $this->getConfiguration()->getConfiguration()),
142
+                array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()),
143 143
                 array('name' => 'collections', 'value' => $this->cm->getJailedCollections()),
144
-                array('name' => 'menu',        'value' => $this->pm->getSiteMenu()),
145
-                array('name' => 'pages',       'value' => $this->pm->getFlatPages()),
146
-                array('name' => 'data',        'value' => $this->dm->getDataItems())
144
+                array('name' => 'menu', 'value' => $this->pm->getSiteMenu()),
145
+                array('name' => 'pages', 'value' => $this->pm->getFlatPages()),
146
+                array('name' => 'data', 'value' => $this->dm->getDataItems())
147 147
             )
148 148
         ));
149 149
         $this->pm->compileAll();
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     /**
310 310
      * @return boolean
311 311
      */
312
-    public function isNoClean()
312
+    public function isNoClean ()
313 313
     {
314 314
         return $this->noClean;
315 315
     }
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     /**
318 318
      * @param boolean $noClean
319 319
      */
320
-    public function setNoClean($noClean)
320
+    public function setNoClean ($noClean)
321 321
     {
322 322
         $this->noClean = $noClean;
323 323
     }
Please login to merge, or discard this patch.
src/Engines/FrontMatter/ExpandedValue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @param string $string
41 41
      */
42
-    public function __construct($string)
42
+    public function __construct ($string)
43 43
     {
44 44
         $this->evaluated = $string;
45 45
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @return string
49 49
      */
50
-    public function __toString()
50
+    public function __toString ()
51 51
     {
52 52
         return $this->getEvaluated();
53 53
     }
Please login to merge, or discard this patch.
src/Manager/CollectionManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return ContentItem
31 31
      */
32
-    public function &getContentItem ($filePath)
32
+    public function &getContentItem($filePath)
33 33
     {
34 34
         return $this->trackedItemsFlattened[$filePath];
35 35
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @return ContentItem[][]
41 41
      */
42
-    public function &getCollections ()
42
+    public function &getCollections()
43 43
     {
44 44
         return $this->trackedItems;
45 45
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * {@inheritdoc}
131 131
      */
132
-    public function createNewItem($filePath)
132
+    public function createNewItem ($filePath)
133 133
     {
134 134
         $collection = $this->getTentativeCollectionName($filePath);
135 135
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * {@inheritdoc}
143 143
      */
144
-    public function refreshItem($filePath)
144
+    public function refreshItem ($filePath)
145 145
     {
146 146
         return;
147 147
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     /**
150 150
      * {@inheritdoc}
151 151
      */
152
-    protected function handleTrackableItem($filePath, $options = array())
152
+    protected function handleTrackableItem ($filePath, $options = array())
153 153
     {
154 154
         $collectionName = $options['namespace'];
155 155
 
Please login to merge, or discard this patch.
src/Manager/TrackingManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected $tracking;
82 82
 
83
-    public function __construct()
83
+    public function __construct ()
84 84
     {
85 85
         parent::__construct();
86 86
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * @param string      $filePath
139 139
      * @param string|null $namespace
140 140
      */
141
-    public function delArrayFromTracker($key, $filePath, $namespace = null)
141
+    public function delArrayFromTracker ($key, $filePath, $namespace = null)
142 142
     {
143 143
         if (is_null($namespace))
144 144
         {
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      * @param array  $includes
268 268
      * @param array  $excludes
269 269
      */
270
-    public function scanTrackableItems($path, $options = array(), $includes = array(), $excludes = array())
270
+    public function scanTrackableItems ($path, $options = array(), $includes = array(), $excludes = array())
271 271
     {
272 272
         $fileExplorerFlags  = array_key_exists('fileExplorer', $options) ? $options['fileExplorer'] : null;
273 273
         $this->fileExplorer = FileExplorer::create($path, $excludes, $includes, $fileExplorerFlags);
Please login to merge, or discard this patch.
tests/Utilities/PHPUnit_Stakx_TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     protected $fs;
33 33
 
34
-    public function setUp()
34
+    public function setUp ()
35 35
     {
36 36
         $this->dummyFile    = vfsStream::newFile('stakx.html.twig');
37 37
         $this->rootDir      = vfsStream::setup();
Please login to merge, or discard this patch.
src/Twig/WhereFilter.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,12 @@
 block discarded – undo
103 103
         {
104 104
             if (!isset($array[$key]))
105 105
             {
106
-                if ($comparison == '==' && is_null($value)) { return true; }
107
-                if ($comparison == '!=' && !is_null($value)) { return true; }
106
+                if ($comparison == '==' && is_null($value))
107
+                {
108
+return true; }
109
+                if ($comparison == '!=' && !is_null($value))
110
+                {
111
+return true; }
108 112
             }
109 113
         }
110 114
 
Please login to merge, or discard this patch.