Completed
Push — master ( 9305d9...d34e55 )
by Tarmo
46:41
created
src/Kernel.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -16,17 +16,17 @@  discard block
 block discarded – undo
16 16
 
17 17
     public function getCacheDir(): string
18 18
     {
19
-        return dirname(__DIR__).'/var/cache/'.$this->environment;
19
+        return dirname(__DIR__) . '/var/cache/' . $this->environment;
20 20
     }
21 21
 
22 22
     public function getLogDir(): string
23 23
     {
24
-        return dirname(__DIR__).'/var/log';
24
+        return dirname(__DIR__) . '/var/log';
25 25
     }
26 26
 
27 27
     public function registerBundles(): iterable
28 28
     {
29
-        $contents = require dirname(__DIR__).'/config/bundles.php';
29
+        $contents = require dirname(__DIR__) . '/config/bundles.php';
30 30
         foreach ($contents as $class => $envs) {
31 31
             if (isset($envs['all']) || isset($envs[$this->environment])) {
32 32
                 yield new $class();
@@ -36,24 +36,24 @@  discard block
 block discarded – undo
36 36
 
37 37
     protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
38 38
     {
39
-        $confDir = dirname(__DIR__).'/config';
40
-        $loader->load($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob');
41
-        if (is_dir($confDir.'/packages/'.$this->environment)) {
42
-            $loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
39
+        $confDir = dirname(__DIR__) . '/config';
40
+        $loader->load($confDir . '/packages/*' . self::CONFIG_EXTS, 'glob');
41
+        if (is_dir($confDir . '/packages/' . $this->environment)) {
42
+            $loader->load($confDir . '/packages/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob');
43 43
         }
44
-        $loader->load($confDir.'/services'.self::CONFIG_EXTS, 'glob');
45
-        $loader->load($confDir.'/services_'.$this->environment.self::CONFIG_EXTS, 'glob');
44
+        $loader->load($confDir . '/services' . self::CONFIG_EXTS, 'glob');
45
+        $loader->load($confDir . '/services_' . $this->environment . self::CONFIG_EXTS, 'glob');
46 46
     }
47 47
 
48 48
     protected function configureRoutes(RouteCollectionBuilder $routes): void
49 49
     {
50
-        $confDir = dirname(__DIR__).'/config';
51
-        if (is_dir($confDir.'/routes/')) {
52
-            $routes->import($confDir.'/routes/*'.self::CONFIG_EXTS, '/', 'glob');
50
+        $confDir = dirname(__DIR__) . '/config';
51
+        if (is_dir($confDir . '/routes/')) {
52
+            $routes->import($confDir . '/routes/*' . self::CONFIG_EXTS, '/', 'glob');
53 53
         }
54
-        if (is_dir($confDir.'/routes/'.$this->environment)) {
55
-            $routes->import($confDir.'/routes/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
54
+        if (is_dir($confDir . '/routes/' . $this->environment)) {
55
+            $routes->import($confDir . '/routes/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob');
56 56
         }
57
-        $routes->import($confDir.'/routes'.self::CONFIG_EXTS, '/', 'glob');
57
+        $routes->import($confDir . '/routes' . self::CONFIG_EXTS, '/', 'glob');
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
src/Utils/JSON.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      *
53 53
      * @throws \LogicException
54 54
      */
55
-    public static function encode($input, ?int $options = null, ?int $depth = null): string
55
+    public static function encode($input, ?int $options = null, ?int $depth = null) : string
56 56
     {
57 57
         $options = $options ?? 0;
58 58
         $depth = $depth ?? 512;
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Application bootstrap file to load specified environment variables.
5 5
  *
Please login to merge, or discard this patch.
src/Rest/Traits/RestResourceCount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      * @param array   $search
33 33
      * @param integer $count
34 34
      */
35
-    public function afterCount(array &$criteria, array &$search, int &$count): void
35
+    public function afterCount(array &$criteria, array &$search, int&$count): void
36 36
     {
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Rest/Traits/RestResourceUpdate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param RestDtoInterface $dto
26 26
      * @param EntityInterface  $entity
27 27
      */
28
-    public function beforeUpdate(string &$id, RestDtoInterface $dto, EntityInterface $entity): void
28
+    public function beforeUpdate(string&$id, RestDtoInterface $dto, EntityInterface $entity): void
29 29
     {
30 30
     }
31 31
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param RestDtoInterface $dto
37 37
      * @param EntityInterface  $entity
38 38
      */
39
-    public function afterUpdate(string &$id, RestDtoInterface $dto, EntityInterface $entity): void
39
+    public function afterUpdate(string&$id, RestDtoInterface $dto, EntityInterface $entity): void
40 40
     {
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Rest/Traits/RestResourceFind.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param integer $offset
27 27
      * @param array   $search
28 28
      */
29
-    public function beforeFind(array &$criteria, array &$orderBy, int &$limit, int &$offset, array &$search): void
29
+    public function beforeFind(array &$criteria, array &$orderBy, int&$limit, int&$offset, array &$search): void
30 30
     {
31 31
     }
32 32
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     public function afterFind(
44 44
         array &$criteria,
45 45
         array &$orderBy,
46
-        int &$limit,
47
-        int &$offset,
46
+        int&$limit,
47
+        int&$offset,
48 48
         array &$search,
49 49
         array &$entities
50 50
     ): void {
Please login to merge, or discard this patch.
src/Rest/Traits/RestResourceDelete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @param string          $id
24 24
      * @param EntityInterface $entity
25 25
      */
26
-    public function beforeDelete(string &$id, EntityInterface $entity): void
26
+    public function beforeDelete(string&$id, EntityInterface $entity): void
27 27
     {
28 28
     }
29 29
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @param string          $id
34 34
      * @param EntityInterface $entity
35 35
      */
36
-    public function afterDelete(string &$id, EntityInterface $entity): void
36
+    public function afterDelete(string&$id, EntityInterface $entity): void
37 37
     {
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Rest/Traits/RestResourceFindOne.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @param string $id
24 24
      */
25
-    public function beforeFindOne(string &$id): void
25
+    public function beforeFindOne(string&$id): void
26 26
     {
27 27
     }
28 28
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param string               $id
33 33
      * @param null|EntityInterface $entity
34 34
      */
35
-    public function afterFindOne(string &$id, EntityInterface $entity = null): void
35
+    public function afterFindOne(string&$id, EntityInterface $entity = null): void
36 36
     {
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Doctrine/DBAL/Types/EnumType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             return "'" . $value . "'";
43 43
         };
44 44
 
45
-        return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)). ')';
45
+        return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)) . ')';
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.