Completed
Push — master ( a6c8f9...b97be3 )
by Vladimir
03:52 queued 19s
created
src/allejo/stakx/Compiler.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      *
239 239
      * @since 0.1.1
240 240
      */
241
-    public function compilePageView(BasePageView &$pageView)
241
+    public function compilePageView(BasePageView & $pageView)
242 242
     {
243 243
         $this->templateBridge->setGlobalVariable('__currentTemplate', $pageView->getAbsoluteFilePath());
244 244
         $this->output->debug('Compiling {type} PageView: {pageview}', array(
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      *
286 286
      * @throws TemplateErrorInterface
287 287
      */
288
-    private function compileStaticPageView(StaticPageView &$pageView)
288
+    private function compileStaticPageView(StaticPageView & $pageView)
289 289
     {
290 290
         $targetFile = $pageView->getTargetFile();
291 291
         $output = $this->renderStaticPageView($pageView);
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      *
304 304
      * @throws TemplateErrorInterface
305 305
      */
306
-    private function compileDynamicPageViews(DynamicPageView &$pageView)
306
+    private function compileDynamicPageViews(DynamicPageView & $pageView)
307 307
     {
308 308
         $contentItems = $pageView->getCollectableItems();
309 309
         $template = $this->createTwigTemplate($pageView);
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
      *
339 339
      * @throws TemplateErrorInterface
340 340
      */
341
-    private function compileRepeaterPageViews(RepeaterPageView &$pageView)
341
+    private function compileRepeaterPageViews(RepeaterPageView & $pageView)
342 342
     {
343 343
         $pageView->rewindPermalink();
344 344
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      *
364 364
      * @param ContentItem $contentItem
365 365
      */
366
-    public function compileContentItem(ContentItem &$contentItem)
366
+    public function compileContentItem(ContentItem & $contentItem)
367 367
     {
368 368
         $pageView = &$contentItem->getPageView();
369 369
         $template = $this->createTwigTemplate($pageView);
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      *
390 390
      * @since 0.1.1
391 391
      */
392
-    private function compileStandardRedirects(PermalinkDocument &$pageView)
392
+    private function compileStandardRedirects(PermalinkDocument & $pageView)
393 393
     {
394 394
         $redirects = $pageView->getRedirects();
395 395
 
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      *
413 413
      * @since 0.1.1
414 414
      */
415
-    private function compileExpandedRedirects(RepeaterPageView &$pageView)
415
+    private function compileExpandedRedirects(RepeaterPageView & $pageView)
416 416
     {
417 417
         $permalinks = $pageView->getRepeaterPermalinks();
418 418
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
      *
451 451
      * @return string
452 452
      */
453
-    private function renderRepeaterPageView(TemplateInterface &$template, RepeaterPageView &$pageView, ExpandedValue &$expandedValue)
453
+    private function renderRepeaterPageView(TemplateInterface & $template, RepeaterPageView & $pageView, ExpandedValue & $expandedValue)
454 454
     {
455 455
         $pageView->evaluateFrontMatter([
456 456
             'permalink' => $expandedValue->getEvaluated(),
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
      *
471 471
      * @return string
472 472
      */
473
-    private function renderDynamicPageView(TemplateInterface &$template, TemplateReadyDocument &$twigItem)
473
+    private function renderDynamicPageView(TemplateInterface & $template, TemplateReadyDocument & $twigItem)
474 474
     {
475 475
         return $template
476 476
             ->render(array(
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      *
488 488
      * @return string
489 489
      */
490
-    private function renderStaticPageView(StaticPageView &$pageView)
490
+    private function renderStaticPageView(StaticPageView & $pageView)
491 491
     {
492 492
         return $this
493 493
             ->createTwigTemplate($pageView)
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
      *
506 506
      * @return TemplateInterface
507 507
      */
508
-    private function createTwigTemplate(BasePageView &$pageView)
508
+    private function createTwigTemplate(BasePageView & $pageView)
509 509
     {
510 510
         try
511 511
         {
Please login to merge, or discard this patch.
src/allejo/stakx/Document/CollectableItemTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     /**
55 55
      * {@inheritdoc}
56 56
      */
57
-    public function setParentPageView(DynamicPageView &$pageView)
57
+    public function setParentPageView(DynamicPageView & $pageView)
58 58
     {
59 59
         $this->pageView = &$pageView;
60 60
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Document/DynamicPageView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * Add a CollectableItem for this PageView to handle.
37 37
      */
38
-    public function addCollectableItem(CollectableItem &$collectable)
38
+    public function addCollectableItem(CollectableItem & $collectable)
39 39
     {
40 40
         $this->collectableItems[$collectable->getRelativeFilePath()] = &$collectable;
41 41
         $collectable->setParentPageView($this);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Delete a CollectableItem from this PageView.
46 46
      */
47
-    public function delCollectableItem(CollectableItem &$collectableItem)
47
+    public function delCollectableItem(CollectableItem & $collectableItem)
48 48
     {
49 49
         unset($this->collectableItems[$collectableItem->getRelativeFilePath()]);
50 50
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Document/JailedDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * @param array $whiteListFunctions A list of function names that can be called.
31 31
      * @param array $jailedFunctions    A list of functions that will be redirected to another function.
32 32
      */
33
-    public function __construct(TemplateReadyDocument &$object, array $whiteListFunctions, array $jailedFunctions = array())
33
+    public function __construct(TemplateReadyDocument & $object, array $whiteListFunctions, array $jailedFunctions = array())
34 34
     {
35 35
         $this->object = &$object;
36 36
         $this->whiteListFunctions = $whiteListFunctions;
Please login to merge, or discard this patch.
src/allejo/stakx/Document/CollectableItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      *
53 53
      * @return void
54 54
      */
55
-    public function setParentPageView(DynamicPageView &$pageView);
55
+    public function setParentPageView(DynamicPageView & $pageView);
56 56
 
57 57
     /**
58 58
      * Evaluate the FrontMatter in this object by merging a custom array of data.
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/TrackingManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -148,12 +148,12 @@  discard block
 block discarded – undo
148 148
     // Internal object handling
149 149
     ///
150 150
 
151
-    protected function addFileToTracker(File &$file)
151
+    protected function addFileToTracker(File & $file)
152 152
     {
153 153
         $this->trackedItemsFlattened[$file->getRelativeFilePath()] = &$file;
154 154
     }
155 155
 
156
-    protected function delFileFromTracker(File &$file)
156
+    protected function delFileFromTracker(File & $file)
157 157
     {
158 158
         unset($this->trackedItemsFlattened[$file->getRelativeFilePath()]);
159 159
     }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param ReadableDocument $trackedItem
165 165
      * @param string|null       $namespace
166 166
      */
167
-    protected function addObjectToTracker(ReadableDocument &$trackedItem, $namespace = null)
167
+    protected function addObjectToTracker(ReadableDocument & $trackedItem, $namespace = null)
168 168
     {
169 169
         if ($namespace == null)
170 170
         {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @param ReadableDocument $trackedItem
185 185
      * @param string|null       $namespace
186 186
      */
187
-    protected function delObjectFromTracker(ReadableDocument &$trackedItem, $namespace = null)
187
+    protected function delObjectFromTracker(ReadableDocument & $trackedItem, $namespace = null)
188 188
     {
189 189
         if ($namespace == null)
190 190
         {
Please login to merge, or discard this patch.