@@ -39,7 +39,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -80,7 +80,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -31,7 +31,7 @@ |
||
| 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(); |
@@ -103,8 +103,12 @@ |
||
| 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 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | private $lineNumber; |
| 18 | 18 | private $filePath; |
| 19 | 19 | |
| 20 | - public function __construct($message = "", $code = 0, \Exception $previous = null, $path = "", $line = -1) |
|
| 20 | + public function __construct ($message = "", $code = 0, \Exception $previous = null, $path = "", $line = -1) |
|
| 21 | 21 | { |
| 22 | 22 | parent::__construct($message, $code, $previous); |
| 23 | 23 | |
@@ -10,7 +10,9 @@ |
||
| 10 | 10 | |
| 11 | 11 | foreach ($array as $key => $item) |
| 12 | 12 | { |
| 13 | - if (!isset($item[$sortKey])) { continue; } |
|
| 13 | + if (!isset($item[$sortKey])) |
|
| 14 | + { |
|
| 15 | +continue; } |
|
| 14 | 16 | |
| 15 | 17 | $groupBy = $item[$sortKey]; |
| 16 | 18 | |
@@ -4,5 +4,5 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface ParsingEngine |
| 6 | 6 | { |
| 7 | - public function parse($context); |
|
| 7 | + public function parse ($context); |
|
| 8 | 8 | } |
| 9 | 9 | \ No newline at end of file |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | class PlainTextEngine implements ParsingEngine |
| 11 | 11 | { |
| 12 | - public function parse($context) |
|
| 12 | + public function parse ($context) |
|
| 13 | 13 | { |
| 14 | 14 | return $context; |
| 15 | 15 | } |