Completed
Branch master (254118)
by Alexander
01:40
created
src/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         unset($options['with']);
79 79
         $result = static::db()->find(static::table(), $conditions, $options);
80 80
         $pk = static::pk();
81
-        $gen = function () use ($result, $pk, $with) {
81
+        $gen = function() use ($result, $pk, $with) {
82 82
             foreach ($result as $row) {
83 83
                 $model = new static($row);
84 84
                 if ($with) {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         return iterator_to_array($generator);
103 103
     }
104 104
 
105
-    private static function fields(): ?array
105
+    private static function fields(): ? array
106 106
     {
107 107
         return isset(static::$fields) ? static::$fields : null;
108 108
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         if ($fields) {
114 114
             $data = array_filter(
115 115
                 $data,
116
-                function ($key) use ($fields) {
116
+                function($key) use ($fields) {
117 117
                     return in_array($key, $fields);
118 118
                 },
119 119
                 ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $this->route = Router::match($this->url, $this->method);
63 63
     }
64 64
 
65
-    public function getHeader(string $name): ?string
65
+    public function getHeader(string $name): ? string
66 66
     {
67 67
         return $this->headers[$name] ?? null;
68 68
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * @param string $key Dot notation for deeper values, i.e. `user.email`
173 173
      * @return mixed/null
174 174
      */
175
-    public function session(?string $key = null)
175
+    public function session(? string $key = null)
176 176
     {
177 177
         if (session_status() != PHP_SESSION_ACTIVE) {
178 178
             session_start();
Please login to merge, or discard this patch.
src/Environment.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         return self::$settings[$environment][$config_name];
57 57
     }
58 58
 
59
-    public static function grab(?string $environment = null): array
59
+    public static function grab(? string $environment = null) : array
60 60
     {
61 61
         if (is_null($environment)) {
62 62
             $environment = static::current();
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param mixed $value
75 75
      * @param null|string $environment if not specified, configures CURRENT environment only. E::ALL, sets for all envs.
76 76
      */
77
-    public static function put(string $config_name, $value, ?string $environment = null): void
77
+    public static function put(string $config_name, $value, ? string $environment = null) : void
78 78
     {
79 79
         if (is_null($environment)) {
80 80
             $environment = static::current();
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param array $configs
99 99
      * @param null|string $environment
100 100
      */
101
-    public static function add(array $configs, ?string $environment = null): void
101
+    public static function add(array $configs, ? string $environment = null) : void
102 102
     {
103 103
         if (is_null($environment)) {
104 104
             $environment = static::current();
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param array $configs
123 123
      * @param null|string $environment
124 124
      */
125
-    public static function set(array $configs, ?string $environment = null): void
125
+    public static function set(array $configs, ? string $environment = null) : void
126 126
     {
127 127
         if (is_null($environment)) {
128 128
             $environment = static::current();
Please login to merge, or discard this patch.