Completed
Push — master ( 827100...0aed89 )
by Vladimir
02:24
created
src/Manager/AssetManager.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@
 block discarded – undo
37 37
      */
38 38
     protected function copyToCompiledSite ($file, $prefix = "")
39 39
     {
40
-        if (!$this->fs->exists($file)) { return; }
40
+        if (!$this->fs->exists($file))
41
+        {
42
+return; }
41 43
 
42 44
         $filePath = $file->getRealPath();
43 45
         $pathToStrip = $this->fs->appendPath(getcwd(), $prefix);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * Copy all of the assets
49 49
      */
50
-    public function copyFiles()
50
+    public function copyFiles ()
51 51
     {
52 52
         $this->scanTrackableItems(
53 53
             '.',
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * {@inheritdoc}
64 64
      */
65
-    protected function handleTrackableItem($file, $options = array())
65
+    protected function handleTrackableItem ($file, $options = array())
66 66
     {
67 67
         if (is_string($file))
68 68
         {
Please login to merge, or discard this patch.
src/Manager/CollectionManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      *
17 17
      * @return ContentItem|null
18 18
      */
19
-    public function &getContentItem ($filePath)
19
+    public function &getContentItem($filePath)
20 20
     {
21 21
         return $this->trackedItemsFlattened[$filePath];
22 22
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * {@inheritdoc}
104 104
      */
105
-    public function refreshItem($filePath)
105
+    public function refreshItem ($filePath)
106 106
     {
107 107
         return;
108 108
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     /**
111 111
      * {@inheritdoc}
112 112
      */
113
-    protected function handleTrackableItem($filePath, $options = array())
113
+    protected function handleTrackableItem ($filePath, $options = array())
114 114
     {
115 115
         $collectionName = $options['namespace'];
116 116
 
Please login to merge, or discard this patch.
src/Object/Website.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
         $this->pm->configureTwig($this->getConfiguration(), array(
129 129
             'safe'    => $this->safeMode,
130 130
             'globals' => array(
131
-                array('name' => 'site',        'value' => $this->getConfiguration()->getConfiguration()),
131
+                array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()),
132 132
                 array('name' => 'collections', 'value' => $this->cm->getCollections()),
133
-                array('name' => 'menu',        'value' => $this->pm->getSiteMenu()),
134
-                array('name' => 'data',        'value' => $this->dm->getDataItems())
133
+                array('name' => 'menu', 'value' => $this->pm->getSiteMenu()),
134
+                array('name' => 'data', 'value' => $this->dm->getDataItems())
135 135
             )
136 136
         ));
137 137
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     /**
313 313
      * @return boolean
314 314
      */
315
-    public function isNoClean()
315
+    public function isNoClean ()
316 316
     {
317 317
         return $this->noClean;
318 318
     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     /**
321 321
      * @param boolean $noClean
322 322
      */
323
-    public function setNoClean($noClean)
323
+    public function setNoClean ($noClean)
324 324
     {
325 325
         $this->noClean = $noClean;
326 326
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,8 @@
 block discarded – undo
182 182
 
183 183
         $this->output->notice('Watch started successfully');
184 184
 
185
-        $listener->onAnything(function (Event $event, FileResource $resouce, $path) use ($targetPath) {
185
+        $listener->onAnything(function (Event $event, FileResource $resouce, $path) use ($targetPath)
186
+        {
186 187
             $filePath = $this->fs->getRelativePath($path);
187 188
 
188 189
             if ((substr($filePath, 0, strlen($targetPath)) === $targetPath) ||
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,6 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * Compile the website.
108 108
      *
109
-     * @param bool $cleanDirectory Clean the target directing before rebuilding
110 109
      * @param bool $tracking       Whether or not to keep track of files as they're compiled to save time in 'watch'
111 110
      */
112 111
     public function build ($tracking = false)
@@ -304,11 +303,17 @@  discard block
 block discarded – undo
304 303
         $this->noClean = $noClean;
305 304
     }
306 305
 
306
+    /**
307
+     * @param string $filePath
308
+     */
307 309
     private function creationWatcher ($filePath)
308 310
     {
309 311
         $this->output->writeln(sprintf("File creation detected: %s", $filePath));
310 312
     }
311 313
 
314
+    /**
315
+     * @param string $filePath
316
+     */
312 317
     private function modificationWatcher ($filePath)
313 318
     {
314 319
         $this->output->writeln(sprintf("File change detected: %s", $filePath));
Please login to merge, or discard this patch.
src/Manager/PageManager.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * PageManager constructor
41 41
      */
42
-    public function __construct()
42
+    public function __construct ()
43 43
     {
44 44
         parent::__construct();
45 45
     }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * {@inheritdoc}
156 156
      */
157
-    public function refreshItem($filePath)
157
+    public function refreshItem ($filePath)
158 158
     {
159 159
         $this->compilePageView($filePath, true);
160 160
     }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * {@inheritdoc}
164 164
      */
165
-    protected function handleTrackableItem($filePath, $options = array())
165
+    protected function handleTrackableItem ($filePath, $options = array())
166 166
     {
167 167
         $pageView = new PageView($filePath);
168 168
         $namespace = 'static';
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function setCollections ($collections)
48 48
     {
49
-        if (empty($collections)) { return; }
49
+        if (empty($collections))
50
+        {
51
+return; }
50 52
 
51 53
         $this->collections = $collections;
52 54
     }
@@ -85,7 +87,9 @@  discard block
 block discarded – undo
85 87
      */
86 88
     public function parsePageViews ($pageViewFolders)
87 89
     {
88
-        if (empty($pageViewFolders)) { return; }
90
+        if (empty($pageViewFolders))
91
+        {
92
+return; }
89 93
 
90 94
         /**
91 95
          * The name of the folder where PageViews are located
Please login to merge, or discard this patch.