@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * @var ContainerInterface $setting |
| 17 | 17 | * |
| 18 | - */ |
|
| 18 | + */ |
|
| 19 | 19 | public function init() |
| 20 | 20 | { |
| 21 | 21 | $setting = $this->settings['translation']; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * @param Core\Services\AuthService\AuthService |
| 17 | 17 | * @return AuthService |
| 18 | - */ |
|
| 18 | + */ |
|
| 19 | 19 | protected static function getFacadeAccessor() |
| 20 | 20 | { |
| 21 | 21 | return 'AuthService'; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class AbstractSession |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | - public function getRecursiveSessionKey($data , $keyArr){ |
|
| 15 | + public function getRecursiveSessionKey($data , $keyArr){ |
|
| 16 | 16 | $arrayFound = isset($data[$keyArr[0]]) ? $data[$keyArr[0]] : ''; |
| 17 | 17 | if($arrayFound){ |
| 18 | 18 | unset($keyArr[0]); |
@@ -34,12 +34,12 @@ |
||
| 34 | 34 | |
| 35 | 35 | public function exists($key,$val) |
| 36 | 36 | { |
| 37 | - $keySession = $this->get($key); |
|
| 37 | + $keySession = $this->get($key); |
|
| 38 | 38 | |
| 39 | - if($keySession){ |
|
| 40 | - return true; |
|
| 41 | - } |
|
| 42 | - return false; |
|
| 39 | + if($keySession){ |
|
| 40 | + return true; |
|
| 41 | + } |
|
| 42 | + return false; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | $container['view'] = function ($container) { |
| 108 | 108 | $messages = $container->flash->getMessages(); |
| 109 | 109 | |
| 110 | - if(!is_dir('../app/View/cache')){ |
|
| 110 | + if(!is_dir('../app/View/cache')){ |
|
| 111 | 111 | @mkdir('../app/View/cache'); |
| 112 | 112 | } |
| 113 | 113 | |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | |
| 14 | 14 | class File extends _Service |
| 15 | 15 | { |
| 16 | - public function moveUploadedFile($directory,$fileName, UploadedFile $uploadedFile) |
|
| 17 | - { |
|
| 18 | - $extension = pathinfo($uploadedFile->getClientFilename(), PATHINFO_EXTENSION); |
|
| 19 | - $basename = bin2hex(random_bytes(8)); // see http://php.net/manual/en/function.random-bytes.php |
|
| 20 | - $filename = sprintf('%s.%0.8s', $fileName, $extension); |
|
| 21 | - $uploadedFile->moveTo($directory . DIRECTORY_SEPARATOR . $filename); |
|
| 22 | - return $filename; |
|
| 23 | - } |
|
| 16 | + public function moveUploadedFile($directory,$fileName, UploadedFile $uploadedFile) |
|
| 17 | + { |
|
| 18 | + $extension = pathinfo($uploadedFile->getClientFilename(), PATHINFO_EXTENSION); |
|
| 19 | + $basename = bin2hex(random_bytes(8)); // see http://php.net/manual/en/function.random-bytes.php |
|
| 20 | + $filename = sprintf('%s.%0.8s', $fileName, $extension); |
|
| 21 | + $uploadedFile->moveTo($directory . DIRECTORY_SEPARATOR . $filename); |
|
| 22 | + return $filename; |
|
| 23 | + } |
|
| 24 | 24 | |
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |