Passed
Branch master (e94900)
by judicael
03:54
created
bundles/lib/Request/Headers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function set(string $name, string $value = null) : Headers
35 35
     {
36 36
         if ($value !== null) {
37
-            header($name . ': ' . $value);
37
+            header($name.': '.$value);
38 38
         }
39 39
         else {
40 40
             header($name);
Please login to merge, or discard this patch.
bundles/core/UrlManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 						$aRoutes = array();
84 84
 
85
-						foreach($oHost->routes as $sKey => $oRoute) {
85
+						foreach ($oHost->routes as $sKey => $oRoute) {
86 86
 
87 87
 							if ($sKey === $sCode) {
88 88
 
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
 			throw new \Exception();
136 136
 		}
137 137
 		
138
-		$sStringToEncode = str_replace(['à','á','â','ã','ä','ç','è','é','ê','ë','ì','í','î','ï','ñ','ò','ó','ô','õ','ö','ù','ú','û','ü','ý','ÿ','À','Á','Â','Ã','Ä','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ñ','Ò','Ó','Ô','Õ','Ö','Ù','Ú','Û','Ü','Ý'],
139
-			['a','a','a','a','a','c','e','e','e','e','i','i','i','i','n','o','o','o','o','o','u','u','u','u','y','y','A','A','A','A','A','C','E','E','E','E','I','I','I','I','N','O','O','O','O','O','U','U','U','U','Y'],
138
+		$sStringToEncode = str_replace(['à', 'á', 'â', 'ã', 'ä', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', 'ù', 'ú', 'û', 'ü', 'ý', 'ÿ', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', 'Ù', 'Ú', 'Û', 'Ü', 'Ý'],
139
+			['a', 'a', 'a', 'a', 'a', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'n', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'y', 'y', 'A', 'A', 'A', 'A', 'A', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I', 'N', 'O', 'O', 'O', 'O', 'O', 'U', 'U', 'U', 'U', 'Y'],
140 140
 				$sStringToEncode);
141 141
 
142 142
 		$sStringToEncode = preg_replace('/[^a-zA-Z0-9_]+/', '_', preg_quote($sStringToEncode));
Please login to merge, or discard this patch.
bundles/core/Router.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     					}
195 195
     					else if (isset($oHost->routes)) {
196 196
     
197
-    						foreach($oHost->routes as $sKey => $oRoute) {
197
+    						foreach ($oHost->routes as $sKey => $oRoute) {
198 198
 
199 199
     							$mReturn = $this->_route($oRoute, $_SERVER['REQUEST_URI']);
200 200
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 						$this->_sBaseUri = preg_replace('#^[^/]+#', '', $sHost);
329 329
 					}
330 330
 
331
-					foreach($oHost->routes as $sKey => $oRoute) {
331
+					foreach ($oHost->routes as $sKey => $oRoute) {
332 332
 
333 333
 						$this->_route($oRoute, $sRoute);
334 334
 					}
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 
393 393
 			$sFinalRoute = preg_replace_callback(
394 394
 				'|\[/{0,1}:([a-zA-Z_]+)\]|',
395
-				function ($aMatches) use ($oRoute) {
395
+				function($aMatches) use ($oRoute) {
396 396
 					return "/{0,1}(?P<".$aMatches[1].">".$oRoute->constraints->{$aMatches[1]}.")";
397 397
 				},
398 398
 				$sRoute
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
 
433 433
 			// create the $_GET by the URL
434 434
 
435
-			foreach($aMatch as $mKey => $sResults) {
435
+			foreach ($aMatch as $mKey => $sResults) {
436 436
 
437 437
 				if (is_string($mKey)) {
438 438
 
Please login to merge, or discard this patch.
bundles/src/Batch/app/Controller/Generator.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
 
73 73
 			if (!file_exists($sPrivatePath.'Controller')) {
74 74
 
75
-				mkdir($sPublicPath . 'css', 0777, true);
76
-				mkdir($sPublicPath . 'js', 0777, true);
77
-				mkdir($sPublicPath . 'img', 0777, true);
75
+				mkdir($sPublicPath.'css', 0777, true);
76
+				mkdir($sPublicPath.'js', 0777, true);
77
+				mkdir($sPublicPath.'img', 0777, true);
78 78
 			}
79 79
 			else {
80 80
 
81
-				echo 'The Project (public part) ' . $sPrivatePath . " exists\n";
81
+				echo 'The Project (public part) '.$sPrivatePath." exists\n";
82 82
 			}
83 83
 		}
84 84
 
@@ -91,16 +91,16 @@  discard block
 block discarded – undo
91 91
 
92 92
 			if (!file_exists($sPrivatePath.'Controller')) {
93 93
 
94
-				mkdir($sPrivatePath . 'Controller', 0777, true);
95
-				mkdir($sPrivatePath . 'Entity', 0777, true);
96
-				mkdir($sPrivatePath . 'Model', 0777, true);
97
-				mkdir($sPrivatePath . 'View', 0777, true);
98
-				mkdir($sPrivatePath . 'conf', 0777, true);
99
-				mkdir($sPrivatePath . 'common', 0777, true);
94
+				mkdir($sPrivatePath.'Controller', 0777, true);
95
+				mkdir($sPrivatePath.'Entity', 0777, true);
96
+				mkdir($sPrivatePath.'Model', 0777, true);
97
+				mkdir($sPrivatePath.'View', 0777, true);
98
+				mkdir($sPrivatePath.'conf', 0777, true);
99
+				mkdir($sPrivatePath.'common', 0777, true);
100 100
 			}
101 101
 			else {
102 102
 
103
-				echo 'The Project (private part) ' . $sPrivatePath . " exists\n";
103
+				echo 'The Project (private part) '.$sPrivatePath." exists\n";
104 104
 			}
105 105
 
106 106
 			$sContent = file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'common'.DIRECTORY_SEPARATOR.'Controller.php');
Please login to merge, or discard this patch.
bundles/src/Batch/app/Controller/Phpunit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
 
38 38
                 foreach ($controllerFiles as $oneController) {
39 39
 
40
-                    if (is_file(__DIR__.'/../../../../tests/'.$one.'/app/Controller/' . $oneController) && $oneController != '..' && $oneController != '.') {
40
+                    if (is_file(__DIR__.'/../../../../tests/'.$one.'/app/Controller/'.$oneController) && $oneController != '..' && $oneController != '.') {
41 41
 
42 42
                         $unitTest = new \PHPUnit_TextUI_Command;
43
-                        $unitTest->run([__DIR__.'/../../../../tests/'.$one.'/app/Controller/' . $oneController]);
43
+                        $unitTest->run([__DIR__.'/../../../../tests/'.$one.'/app/Controller/'.$oneController]);
44 44
                     }
45 45
                 }
46 46
             }
Please login to merge, or discard this patch.
bundles/conf/AutoLoad.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  *
15 15
  * new version with SPL to have the capacity to add external autoload
16 16
  */
17
-spl_autoload_register(function (string $sClassName)
17
+spl_autoload_register(function(string $sClassName)
18 18
 {
19 19
 
20 20
     $sClassName = ltrim($sClassName, '\\');
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
         $sNamespace = substr($sClassName, 0, $iLastNsPos);
28 28
         $sClassName = substr($sClassName, $iLastNsPos + 1);
29
-		$sFileName  = str_replace('\\', DIRECTORY_SEPARATOR, $sNamespace).DIRECTORY_SEPARATOR;
29
+		$sFileName = str_replace('\\', DIRECTORY_SEPARATOR, $sNamespace).DIRECTORY_SEPARATOR;
30 30
     }
31 31
 
32 32
     $sFileName = str_replace('/', '\\', $sFileName);
Please login to merge, or discard this patch.
bundles/lib/Cache/Memory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 	 * @param  int $iTimeout expiration of cache
62 62
 	 * @return mixed
63 63
 	 */
64
-	public function get(string $sName, int &$iFlags = null, int $iTimeout = 0)
64
+	public function get(string $sName, int&$iFlags = null, int $iTimeout = 0)
65 65
 	{ 
66 66
 	    return parent::get($sName);
67 67
 	}
Please login to merge, or discard this patch.
bundles/lib/Cache/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 	 * @param  int $iTimeout expiration of cache
62 62
 	 * @return mixed
63 63
 	 */
64
-	public function get(string $sName, int &$iFlags = null, int $iTimeout = 0)
64
+	public function get(string $sName, int&$iFlags = null, int $iTimeout = 0)
65 65
 	{ 
66 66
 	    return parent::get($sName);
67 67
 	}
Please login to merge, or discard this patch.
bundles/lib/Cache/Apc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 	 * @param  int $iTimeout expiration of cache
62 62
 	 * @return mixed
63 63
 	 */
64
-	public function get(string $sName, int &$iFlags = null, int $iTimeout = 0)
64
+	public function get(string $sName, int&$iFlags = null, int $iTimeout = 0)
65 65
 	{ 
66 66
 	    return parent::get($sName);
67 67
 	}
Please login to merge, or discard this patch.