Completed
Push — master ( 7504d5...0c4f62 )
by Adam
06:42
created
src/ExtendedArray/ExtendedArrayTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public static function nullIfNotSet(array $array, $key = false)
80 80
     {
81
-        return isset($array[$key]) ? $array[$key] : null;
81
+        return isset($array[ $key ]) ? $array[ $key ] : null;
82 82
     }
83 83
 
84 84
     /**
@@ -88,6 +88,6 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public static function falseIfNotSet(array $array, $key = false)
90 90
     {
91
-        return isset($array[$key]) ? $array[$key] : false;
91
+        return isset($array[ $key ]) ? $array[ $key ] : false;
92 92
     }
93 93
 }
Please login to merge, or discard this patch.
src/Access/Curl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public $returnTransfer  = CURLOPT_RETURNTRANSFER;
14 14
     public $timeout         = CURLOPT_TIMEOUT;
15 15
 
16
-    private $options = [];
16
+    private $options = [ ];
17 17
 
18 18
     public function __construct($value)
19 19
     {
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     private function init()
33 33
     {
34
-        if (! $this->value = curl_init($this->getValue())) {
34
+        if (!$this->value = curl_init($this->getValue())) {
35 35
             throw new \Exception;
36 36
         }
37 37
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function getOption($option)
47 47
     {
48
-        return isset($this->options[$option]) ? $this->options[$option] : null;
48
+        return isset($this->options[ $option ]) ? $this->options[ $option ] : null;
49 49
     }
50 50
 
51 51
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function setOption($option, $value = true)
57 57
     {
58 58
         if (curl_setopt($this->getValue(), $option, $value)) {
59
-            $this->options[Constant::init()->curl($option)] = $value;
59
+            $this->options[ Constant::init()->curl($option) ] = $value;
60 60
         }
61 61
 
62 62
         return $this;
Please login to merge, or discard this patch.
src/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function getContents()
32 32
     {
33
-        return ! $this->mustExist || $this->exists()
33
+        return !$this->mustExist || $this->exists()
34 34
             ? file_get_contents($this->getValue())
35 35
             : false;
36 36
     }
Please login to merge, or discard this patch.
src/Utility/Native/Constant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function __call($category, array $key)
33 33
     {
34
-        $category = $this->definedConstants[$category];
34
+        $category = $this->definedConstants[ $category ];
35 35
         return empty($key) ? $category : array_search(reset($key), $category);
36 36
     }
37 37
 
Please login to merge, or discard this patch.
src/File/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     public function exists()
9 9
     {
10
-        if (! $this->valid()) {
10
+        if (!$this->valid()) {
11 11
             throw new \Exception;
12 12
         }
13 13
 
Please login to merge, or discard this patch.
src/Format/Xml.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function parse()
20 20
     {
21
-        return [$this->getValue()->documentElement->tagName =>
22
-            $this->parseElement($this->value->documentElement)];
21
+        return [ $this->getValue()->documentElement->tagName =>
22
+            $this->parseElement($this->value->documentElement) ];
23 23
     }
24 24
 
25
-    public function parseElement($node, $output = [])
25
+    public function parseElement($node, $output = [ ])
26 26
     {
27 27
         switch ($node->nodeType) {
28 28
             case XML_CDATA_SECTION_NODE:
29
-                $output['@cdata'] = trim($node->textContent);
29
+                $output[ '@cdata' ] = trim($node->textContent);
30 30
                 break;
31 31
             case XML_TEXT_NODE:
32 32
                 return trim($node->textContent);
@@ -46,17 +46,17 @@  discard block
 block discarded – undo
46 46
         return $this->attributes($node, $output);
47 47
     }
48 48
 
49
-    private function childNode($node, $output = [])
49
+    private function childNode($node, $output = [ ])
50 50
     {
51 51
         foreach ($node->childNodes as $child) {
52 52
             $children = $this->parseElement($child);
53 53
 
54 54
             if (isset($child->tagName)) {
55 55
                 $tagName = $child->tagName;
56
-                $output[$tagName] = isset($output[$tagName])
57
-                    ? $output[$tagName]
58
-                    : [];
59
-                $output[$tagName][] = $children;
56
+                $output[ $tagName ] = isset($output[ $tagName ])
57
+                    ? $output[ $tagName ]
58
+                    : [ ];
59
+                $output[ $tagName ][ ] = $children;
60 60
             } elseif ($children !== '') {
61 61
                 $output = $children;
62 62
             }
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
         return $output;
65 65
     }
66 66
 
67
-    private function loopAttributes($attributes, $array = [])
67
+    private function loopAttributes($attributes, $array = [ ])
68 68
     {
69 69
         // Loop through the attributes and collect them.
70 70
         foreach ($attributes as $key => $node) {
71
-            $array[$key] = (string) $node->value;
71
+            $array[ $key ] = (string) $node->value;
72 72
         }
73 73
 
74 74
         return $array;
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     {
79 79
         // If there are attributes.
80 80
         if ($node->attributes->length) {
81
-            $output = is_array($output) ? $output : ['@value' => $output];
82
-            $output['@attributes'] = $this->loopAttributes($node->attributes);
81
+            $output = is_array($output) ? $output : [ '@value' => $output ];
82
+            $output[ '@attributes' ] = $this->loopAttributes($node->attributes);
83 83
         }
84 84
         return $output;
85 85
     }
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
     {
89 89
         if (is_array($output)) {
90 90
             foreach ($output as $key => $value) {
91
-                $output[$key] = is_array($value) && count($value) === 1
92
-                    ? $value[0]
91
+                $output[ $key ] = is_array($value) && count($value) === 1
92
+                    ? $value[ 0 ]
93 93
                     : $value;
94 94
             }
95 95
             $output = !isset($output) || empty($output) ? '' : $output;
Please login to merge, or discard this patch.
src/Colour/Hex.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
     {
9 9
         $hex = str_replace("#", "", $this->value);
10 10
 
11
-        if(strlen($hex) == 3) {
12
-            $r = hexdec($hex[0].$hex[0]);
13
-            $g = hexdec($hex[1].$hex[1]);
14
-            $b = hexdec($hex[2].$hex[2]);
11
+        if (strlen($hex) == 3) {
12
+            $r = hexdec($hex[ 0 ].$hex[ 0 ]);
13
+            $g = hexdec($hex[ 1 ].$hex[ 1 ]);
14
+            $b = hexdec($hex[ 2 ].$hex[ 2 ]);
15 15
         } else {
16
-            $r = hexdec($hex[0].$hex[1]);
17
-            $g = hexdec($hex[2].$hex[3]);
18
-            $b = hexdec($hex[4].$hex[5]);
16
+            $r = hexdec($hex[ 0 ].$hex[ 1 ]);
17
+            $g = hexdec($hex[ 2 ].$hex[ 3 ]);
18
+            $b = hexdec($hex[ 4 ].$hex[ 5 ]);
19 19
         }
20 20
 
21 21
         return new Rgb(array($r, $g, $b));
Please login to merge, or discard this patch.
src/Utility/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,6 +49,6 @@
 block discarded – undo
49 49
      */
50 50
     public static function getConfiguration()
51 51
     {
52
-        return self::$configuration = Yaml::fromString(__DIR__ . self::$file)->parse();
52
+        return self::$configuration = Yaml::fromString(__DIR__.self::$file)->parse();
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
src/Utility/Language.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
      */
45 45
     public static function getFileString($identifier)
46 46
     {
47
-        return __DIR__ . self::$path . Configuration::get('language.locale') .
48
-            "/" . $identifier . '.yml';
47
+        return __DIR__.self::$path.Configuration::get('language.locale').
48
+            "/".$identifier.'.yml';
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.