Completed
Branch master (5ab22d)
by Matthew
02:33
created
src/Fyuze/File/Cabinet.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 
114 114
     /**
115 115
      * @param $iterator
116
-     * @return mixed
116
+     * @return \Iterator
117 117
      */
118 118
     protected function createFilter($iterator)
119 119
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Fyuze\File;
3 3
 
4 4
 use Fyuze\File\Iterators\ExtensionIterator;
5
-use GlobIterator;
6 5
 use AppendIterator;
7 6
 use FilesystemIterator;
8 7
 use RecursiveDirectoryIterator;
Please login to merge, or discard this patch.
src/Fyuze/Http/Request.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
     }
211 211
 
212 212
     /**
213
-     * @param $key
213
+     * @param string $key
214 214
      * @param null $value
215 215
      * @return null
216 216
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
             return $this->headers;
125 125
         }
126 126
 
127
-        $headers = array_filter(array_keys($this->server), function ($key) {
127
+        $headers = array_filter(array_keys($this->server), function($key) {
128 128
             return !is_array($key) && strpos($key, 'HTTP_') !== false;
129 129
         });
130 130
 
131
-        foreach($headers as $header) {
131
+        foreach ($headers as $header) {
132 132
             $this->headers[substr($header, 5)] = $this->server($header);
133 133
         }
134 134
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 
264 264
         if (!isset($ip)) {
265 265
 
266
-            $filter = array_filter(['HTTP_CLIENT_IP', 'HTTP_X_CLUSTER_CLIENT_IP', 'REMOTE_ADDR'], function ($key) {
266
+            $filter = array_filter(['HTTP_CLIENT_IP', 'HTTP_X_CLUSTER_CLIENT_IP', 'REMOTE_ADDR'], function($key) {
267 267
                 return array_key_exists($key, $this->server);
268 268
             });
269 269
 
Please login to merge, or discard this patch.
src/Fyuze/Config/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
         $extension = $file->getExtension();
115 115
         $name = $file->getBasename(".$extension");
116 116
 
117
-        $type = array_filter($this->types, function ($n) use ($extension) {
117
+        $type = array_filter($this->types, function($n) use ($extension) {
118 118
             return in_array($extension, $n::$extensions);
119 119
         });
120 120
 
Please login to merge, or discard this patch.
src/Fyuze/Database/Drivers/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public static function create($config)
14 14
     {
15
-        if(!array_key_exists('driver', $config)) {
15
+        if (!array_key_exists('driver', $config)) {
16 16
             throw new InvalidArgumentException('You must specify a driver');
17 17
         }
18 18
 
Please login to merge, or discard this patch.
src/Fyuze/Debug/Resources/views/toolbar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
 
44 44
 <div id="toolbar">
45 45
     <ul>
46
-        <?php foreach($collectors as $collector): $tab = $collector->tab(); ?>
47
-            <li class="<?php echo (array_key_exists('class', $tab) ? $tab['class'] : '')?>"><?=$tab['title'];?></li>
46
+        <?php foreach ($collectors as $collector): $tab = $collector->tab(); ?>
47
+            <li class="<?php echo (array_key_exists('class', $tab) ? $tab['class'] : '')?>"><?=$tab['title']; ?></li>
48 48
         <?php endforeach; ?>
49 49
         <li class="fyuze">Fyuze 0.1</li>
50 50
     </ul>
Please login to merge, or discard this patch.
src/Fyuze/Debug/Toolbar.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
         if ($first === true) {
21 21
 
22 22
             array_unshift($this->collectors, $collector);
23
-        }
24
-        else {
23
+        } else {
25 24
 
26 25
             $this->collectors[] = $collector;
27 26
         }
Please login to merge, or discard this patch.
src/Fyuze/Error/ErrorHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         set_error_handler($this->setErrorHandler());
23 23
         set_exception_handler($this->setExceptionHandler());
24 24
 
25
-        $this->register('Exception', function (Exception $exception) {
25
+        $this->register('Exception', function(Exception $exception) {
26 26
             $handler = new ExceptionHandler($exception);
27 27
             $handler->display();
28 28
         });
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         try {
51 51
 
52
-            $handlers = array_filter($this->handlers, function ($handler) use ($exception) {
52
+            $handlers = array_filter($this->handlers, function($handler) use ($exception) {
53 53
                 return $exception instanceof $handler[0];
54 54
             });
55 55
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     protected function setExceptionHandler()
74 74
     {
75
-        return function ($exception) {
75
+        return function($exception) {
76 76
             $this->handle($exception);
77 77
         };
78 78
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     protected function setErrorHandler()
85 85
     {
86
-        return function ($severity, $message, $file, $line) {
86
+        return function($severity, $message, $file, $line) {
87 87
             if (error_reporting() && $severity) {
88 88
                 throw new ErrorException($message, 0, $severity, $file, $line);
89 89
             }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function handleFatalError()
100 100
     {
101
-        return function () {
101
+        return function() {
102 102
             $error = error_get_last();
103 103
 
104 104
             if ($error['type'] === E_ERROR) {
Please login to merge, or discard this patch.
src/Fyuze/File/Iterators/FolderIterator.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: matthew
5
- * Date: 12/1/15
6
- * Time: 11:40 AM
7
- */
3
+     * Created by PhpStorm.
4
+     * User: matthew
5
+     * Date: 12/1/15
6
+     * Time: 11:40 AM
7
+     */
8 8
 
9 9
 namespace Fyuze\File\Iterators;
10 10
 
Please login to merge, or discard this patch.
src/Fyuze/Http/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     protected function getParams()
96 96
     {
97
-        return function (ReflectionParameter $param) {
97
+        return function(ReflectionParameter $param) {
98 98
             return $param->getClass();
99 99
         };
100 100
     }
Please login to merge, or discard this patch.