Passed
Push — master ( 87c986...d487cc )
by Adrian Florin
02:23
created
src/Util/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         if (is_null($level)) {
35 35
             $level = E_ALL;
36 36
         }
37
-        set_error_handler(function ($errorNumber, $errorMessage, $errorFile, $errorLine, $errorContext) {
37
+        set_error_handler(function($errorNumber, $errorMessage, $errorFile, $errorLine, $errorContext) {
38 38
             throw new IOException($errorMessage, $errorNumber);
39 39
         }, $level);
40 40
     }
Please login to merge, or discard this patch.
example/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require_once dirname(__FILE__) . '/../vendor/autoload.php';
2
+require_once dirname(__FILE__).'/../vendor/autoload.php';
3 3
 
4 4
 use NeedleProject\FileIo\File;
5 5
 use NeedleProject\FileIo\Content\Content;
6 6
 
7
-$filename = __DIR__ . DIRECTORY_SEPARATOR . 'my_first_file';
7
+$filename = __DIR__.DIRECTORY_SEPARATOR.'my_first_file';
8 8
 
9 9
 /**
10 10
  * Writing content to a file
11 11
  */
12 12
 $content = new Content('Hello world!');
13
-$file = new File(__DIR__ . DIRECTORY_SEPARATOR . 'my_first_file');
13
+$file = new File(__DIR__.DIRECTORY_SEPARATOR.'my_first_file');
14 14
 if (true === $file->write($content)) {
15 15
     echo "I wrote my first file!\n";
16 16
 }
@@ -19,15 +19,15 @@  discard block
 block discarded – undo
19 19
  * Verifying file
20 20
  */
21 21
 if (true === $file->exists()) {
22
-    echo sprintf('File %s exists on disk!', $filename) . "\n";
22
+    echo sprintf('File %s exists on disk!', $filename)."\n";
23 23
 }
24 24
 
25 25
 if (true === $file->isWritable()) {
26
-    echo sprintf('File %s can be written!', $filename) . "\n";
26
+    echo sprintf('File %s can be written!', $filename)."\n";
27 27
 }
28 28
 
29 29
 if (true === $file->isReadable()) {
30
-    echo sprintf('File %s can be read!', $filename) . "\n";
30
+    echo sprintf('File %s can be read!', $filename)."\n";
31 31
 }
32 32
 
33 33
 /**
@@ -41,5 +41,5 @@  discard block
 block discarded – undo
41 41
  * Delete the file
42 42
  */
43 43
 if (true === $file->delete()) {
44
-    echo "The file was successfully deleted!" . "\n";
44
+    echo "The file was successfully deleted!"."\n";
45 45
 }
Please login to merge, or discard this patch.