Completed
Push — master ( 959e9c...c73376 )
by Sam
02:39
created
src/App.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,6 @@
 block discarded – undo
76 76
             return false;
77 77
         }
78 78
         return is_file($path) ?
79
-            @unlink($path) :
80
-            array_map([__CLASS__, __FUNCTION__], glob($path . '/*')) == @rmdir($path);
79
+            @unlink($path) : array_map([__CLASS__, __FUNCTION__], glob($path . '/*')) == @rmdir($path);
81 80
     }
82 81
 }
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 /**
13 13
  * Exception handling.
14 14
  */
15
-set_exception_handler([ \App\App::class, 'exceptionHandler' ]);
15
+set_exception_handler([\App\App::class, 'exceptionHandler']);
16 16
 
17 17
 /**
18 18
  * Configuration file. When testing, the tests/config.php file is used.
19 19
  */
20
-if (substr(basename($_SERVER['PHP_SELF']), 0, 7)==='phpunit') {
20
+if (substr(basename($_SERVER['PHP_SELF']), 0, 7) === 'phpunit') {
21 21
     define('CONFIG_FILE', __DIR__ . '/tests/config.php');
22 22
 } else {
23 23
     define('CONFIG_FILE', __DIR__ . '/config.php');
24 24
 }
25 25
 if (!file_exists(CONFIG_FILE)) {
26
-    echo "Please copy <code>config.example.php</code> to <code>".CONFIG_FILE."</code> and edit the values therein";
26
+    echo "Please copy <code>config.example.php</code> to <code>" . CONFIG_FILE . "</code> and edit the values therein";
27 27
     exit(1);
28 28
 }
Please login to merge, or discard this patch.