Passed
Branch hotfix/fix-counts (4b43d1)
by Paul
03:38
created
plugin/Reviews.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,8 @@
 block discarded – undo
53 53
 	 * @param mixed $key
54 54
 	 * @return mixed
55 55
 	 */
56
-	public function offsetGet( $key ) {
56
+	public function offsetGet( $key )
57
+	{
57 58
 		if( property_exists( $this, $key )) {
58 59
 			return $this->{$key};
59 60
 		}
Please login to merge, or discard this patch.
plugin/Modules/Upgrader.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,9 @@  discard block
 block discarded – undo
16 16
 		$filenames = [];
17 17
 		$iterator = new DirectoryIterator( dirname( __FILE__ ).'/Upgrader' );
18 18
 		foreach( $iterator as $fileinfo ) {
19
-			if( !$fileinfo->isFile() )continue;
19
+			if( !$fileinfo->isFile() ) {
20
+				continue;
21
+			}
20 22
 			$filenames[] = $fileinfo->getFilename();
21 23
 		}
22 24
 		natsort( $filenames );
@@ -24,7 +26,9 @@  discard block
 block discarded – undo
24 26
 			$className = str_replace( '.php', '', $file );
25 27
 			$version = str_replace( ['Upgrade_', '_'], ['', '.'], $className );
26 28
 			$versionSuffix = preg_replace( '/[\d.]+(.+)?/', '${1}', glsr()->version ); // allow alpha/beta versions
27
-			if( version_compare( $this->currentVersion(), $version.$versionSuffix, '>=' ))return;
29
+			if( version_compare( $this->currentVersion(), $version.$versionSuffix, '>=' )) {
30
+				return;
31
+			}
28 32
 			glsr( 'Modules\\Upgrader\\'.$className );
29 33
 			glsr_log()->notice( 'Completed Upgrade for v'.$version.$versionSuffix );
30 34
 		});
Please login to merge, or discard this patch.
plugin/Modules/Console.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -202,7 +202,9 @@  discard block
 block discarded – undo
202 202
 		$levels = $this->getLevels();
203 203
 		foreach( $once as $entry ) {
204 204
 			$levelName = glsr_get( $entry, 'level' );
205
-			if( !in_array( $levelName, $levels ))continue;
205
+			if( !in_array( $levelName, $levels )) {
206
+				continue;
207
+			}
206 208
 			$level = glsr_get( array_flip( $levels ), $levelName );
207 209
 			$message = glsr_get( $entry, 'message' );
208 210
 			$backtraceLine = glsr_get( $entry, 'backtrace' );
@@ -235,7 +237,9 @@  discard block
 block discarded – undo
235 237
 			return glsr_get( $entry, 'level' ) == $levelName
236 238
 				&& glsr_get( $entry, 'handle' ) == $handle;
237 239
 		});
238
-		if( !empty( $filtered ))return;
240
+		if( !empty( $filtered )) {
241
+			return;
242
+		}
239 243
 		$once[] = [
240 244
 			'backtrace' => $this->getBacktraceLineFromData( $data ),
241 245
 			'handle' => $handle,
@@ -424,7 +428,9 @@  discard block
 block discarded – undo
424 428
 	 */
425 429
 	protected function reset()
426 430
 	{
427
-		if( $this->size() <= pow( 1024, 2 ) / 8 )return;
431
+		if( $this->size() <= pow( 1024, 2 ) / 8 ) {
432
+			return;
433
+		}
428 434
 		$this->clear();
429 435
 		file_put_contents(
430 436
 			$this->file,
Please login to merge, or discard this patch.
plugin/Modules/Html/ReviewHtml.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,9 @@  discard block
 block discarded – undo
30 30
 	 */
31 31
 	public function __toString()
32 32
 	{
33
-		if( empty( $this->values ))return;
33
+		if( empty( $this->values )) {
34
+			return;
35
+		}
34 36
 		return glsr( Template::class )->build( 'templates/review', [
35 37
 			'context' => $this->values,
36 38
 			'review' => $this->review,
@@ -41,7 +43,8 @@  discard block
 block discarded – undo
41 43
 	 * @param mixed $key
42 44
 	 * @return mixed
43 45
 	 */
44
-	public function offsetGet( $key ) {
46
+	public function offsetGet( $key )
47
+	{
45 48
 		if( property_exists( $this, $key )) {
46 49
 			return $this->{$key};
47 50
 		}
Please login to merge, or discard this patch.