Passed
Push — master ( 8c9bff...4a5f81 )
by Petr
07:38 queued 05:12
created
php-src/Clipr/Paths.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
                 $namespaced = strtr($namespaced, DIRECTORY_SEPARATOR, '\\');
102 102
                 // remove ext
103 103
                 $withExt = mb_strripos($file, ISources::EXT_PHP);
104
-                $withoutExt = (false !== $withExt) ? mb_substr($file, 0, $withExt) : $file ;
104
+                $withoutExt = (false !== $withExt) ? mb_substr($file, 0, $withExt) : $file;
105 105
                 // return named class
106 106
                 return $namespaced . $withoutExt;
107 107
             }
Please login to merge, or discard this patch.
php-src/Clipr/Useful.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public static function mb_str_pad(string $input, int $pad_length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT): string
27 27
     {
28
-        $diff = strlen( $input ) - mb_strlen( $input );
29
-        return str_pad( $input, $pad_length + $diff, $pad_string, $pad_type );
28
+        $diff = strlen($input) - mb_strlen($input);
29
+        return str_pad($input, $pad_length + $diff, $pad_string, $pad_type);
30 30
     }
31 31
 
32 32
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public static function sanitizeClass(string $input): string
51 51
     {
52 52
         $input = strtr($input, [':' => '\\', '/' => '\\']);
53
-        return ('\\' == $input[0]) ? mb_substr($input, 1) : $input ;
53
+        return ('\\' == $input[0]) ? mb_substr($input, 1) : $input;
54 54
     }
55 55
 
56 56
     public static function getTaskCall(object $class): string
Please login to merge, or discard this patch.
php-tests/RunTests/AllTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,6 +160,6 @@
 block discarded – undo
160 160
 {
161 161
     public function getTask(string $classFromParam): ?ATask
162 162
     {
163
-        return 'test' == $classFromParam ? new XTask() : null ;
163
+        return 'test' == $classFromParam ? new XTask() : null;
164 164
     }
165 165
 }
Please login to merge, or discard this patch.
php-tests/OutputsTests/PrettyTableTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $this->assertEmpty($instance->getTable()->getHeader());
16 16
         $this->assertEmpty($instance->getTable()->getSeparator());
17 17
         $instance->setTableHeaders(['poi', 'uzt']);
18
-        $instance->setTableDataLine(['mnbv','lkjhg']);
18
+        $instance->setTableDataLine(['mnbv', 'lkjhg']);
19 19
         $instance->dumpTable();
20 20
         $this->assertEquals('| ---- | ----- |'
21 21
             . PHP_EOL . '| poi  | uzt   |'
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $instance->setTableColors(['abc', 'def']);
32 32
         $instance->setTableHeaders(['poi', 'uzt']);
33 33
         $instance->setTableColorsHeader(['okm', 'ijn']);
34
-        $instance->setTableDataLine(['mnbv','lkjhg']);
34
+        $instance->setTableDataLine(['mnbv', 'lkjhg']);
35 35
         $instance->dumpTable();
36 36
         $this->assertEquals('| <okm>----</okm> | <ijn>-----</ijn> |'
37 37
             . PHP_EOL . '| <okm>poi </okm> | <ijn>uzt  </ijn> |'
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $instance->setTableColors(['abc', 'def']);
48 48
         $instance->setTableHeaders(['poi', 'uzt']);
49 49
         $instance->setTableColorsHeader(['okm', 'ijn']);
50
-        $instance->setTableDataLine(['mnbv','lkjhg']);
50
+        $instance->setTableDataLine(['mnbv', 'lkjhg']);
51 51
         $instance->getTable()->setColor(2, 'tre');
52 52
         $instance->getTable()->setHeader(2, 'vgz');
53 53
         $instance->getTable()->setColorHeader(2, 'tre');
Please login to merge, or discard this patch.
php-tests/TasksTests/ParamsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public function testOption(): void
13 13
     {
14 14
         $instance = new Params\Option();
15
-        $instance->setData('mnb', 'vcx', 'pewrit','tdtr', null, 'rsef');
15
+        $instance->setData('mnb', 'vcx', 'pewrit', 'tdtr', null, 'rsef');
16 16
         $instance->setValue('zrsg');
17 17
         $this->assertEquals('zrsg', $instance->getValue());
18 18
         $this->assertEquals('mnb', $instance->getVariable());
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $this->assertEquals('rsef', $instance->getDescription());
24 24
 
25 25
         $instance2 = new Params\Option();
26
-        $instance2->setData('fdh', 'gjx', 'wvgsdh',false, 'm', 'vsdfvd');
26
+        $instance2->setData('fdh', 'gjx', 'wvgsdh', false, 'm', 'vsdfvd');
27 27
         $this->assertEquals('fdh', $instance2->getVariable());
28 28
         $this->assertEquals('gjx', $instance2->getCliKey());
29 29
         $this->assertEquals('wvgsdh', $instance2->getMatch());
Please login to merge, or discard this patch.
php-tests/LoadersTests/LoaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,6 +160,6 @@
 block discarded – undo
160 160
 {
161 161
     public function getTask(string $classFromParam): ?ATask
162 162
     {
163
-        return 'test' == $classFromParam ? new XTask() : null ;
163
+        return 'test' == $classFromParam ? new XTask() : null;
164 164
     }
165 165
 }
Please login to merge, or discard this patch.