@@ -203,7 +203,8 @@ |
||
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | if (strpos($haystack, $query, $offset) !== false) |
| 206 | - { // stop on first true result |
|
| 206 | + { |
|
| 207 | +// stop on first true result |
|
| 207 | 208 | return true; |
| 208 | 209 | } |
| 209 | 210 | } |
@@ -63,7 +63,8 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public function getJailedDataItems() |
| 65 | 65 | { |
| 66 | - return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem) { |
|
| 66 | + return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem) |
|
| 67 | + { |
|
| 67 | 68 | return $dataItem->getBasename(); |
| 68 | 69 | }); |
| 69 | 70 | } |
@@ -55,14 +55,20 @@ |
||
| 55 | 55 | |
| 56 | 56 | $headingID = $heading->attributes->getNamedItem('id'); |
| 57 | 57 | |
| 58 | - if ($curr > $last) // If the current level is greater than the last level indent one level |
|
| 58 | + if ($curr > $last) |
|
| 59 | + { |
|
| 60 | + // If the current level is greater than the last level indent one level |
|
| 59 | 61 | { |
| 60 | 62 | $toc .= '<ul>'; |
| 61 | 63 | } |
| 62 | - elseif ($curr < $last) // If the current level is less than the last level go up appropriate amount. |
|
| 64 | + } |
|
| 65 | + elseif ($curr < $last) |
|
| 66 | + { |
|
| 67 | + // If the current level is less than the last level go up appropriate amount. |
|
| 63 | 68 | { |
| 64 | 69 | $toc .= str_repeat('</li></ul>', $last - $curr) . '</li>'; |
| 65 | 70 | } |
| 71 | + } |
|
| 66 | 72 | else // If the current level is equal to the last. |
| 67 | 73 | { |
| 68 | 74 | $toc .= '</li>'; |
@@ -16,7 +16,8 @@ |
||
| 16 | 16 | return $array; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - usort($array, function ($a, $b) use ($key, $order) { |
|
| 19 | + usort($array, function ($a, $b) use ($key, $order) |
|
| 20 | + { |
|
| 20 | 21 | if ($a[$key] == $b[$key]) |
| 21 | 22 | { |
| 22 | 23 | return 0; |
@@ -64,7 +64,8 @@ |
||
| 64 | 64 | private static function flatten(array $array) |
| 65 | 65 | { |
| 66 | 66 | $return = []; |
| 67 | - array_walk_recursive($array, function ($a) use (&$return) { |
|
| 67 | + array_walk_recursive($array, function ($a) use (&$return) |
|
| 68 | + { |
|
| 68 | 69 | $return[] = $a; |
| 69 | 70 | }); |
| 70 | 71 | |