Passed
Push — master ( 766273...254710 )
by Nicolaas
08:13 queued 06:12
created
src/Control/FlushReceiver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     protected function getFlushRecord(string $code): ?FlushRecord
72 72
     {
73 73
         /** @var FlushRecord $obj */
74
-        $obj = FlushRecord::get()->filter(['Done' => false, 'Code' => $code])->first();
74
+        $obj = FlushRecord::get()->filter([ 'Done' => false, 'Code' => $code ])->first();
75 75
         if ($obj) {
76 76
             return $obj;
77 77
         }
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
     // Function to delete files and folders recursively
85 85
     private function deleteFolderContents(string $folderPath)
86 86
     {
87
-        if (! is_dir($folderPath)) {
87
+        if (!is_dir($folderPath)) {
88 88
             return;
89 89
         }
90 90
 
91
-        $files = array_diff(scandir($folderPath), ['.', '..']);
91
+        $files = array_diff(scandir($folderPath), [ '.', '..' ]);
92 92
 
93 93
         foreach ($files as $file) {
94 94
             $filePath = $folderPath . '/' . $file;
Please login to merge, or discard this patch.
src/Model/FlushRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         if (Security::database_is_ready() && Director::is_cli() && false === self::$done) {
74 74
             self::$done = true;
75
-            register_shutdown_function(function () {
75
+            register_shutdown_function(function() {
76 76
                 $obj = \Sunnysideup\FlushFrontEnd\Model\FlushRecord::create();
77 77
                 $obj->write();
78 78
                 sleep(2);
Please login to merge, or discard this patch.