| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | intval(floor($config['user']['api_key_length'] / 2)) | 
| 42 | 42 | ); | 
| 43 | 43 | |
| 44 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | |
| 44 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | |
| 45 | 45 | $this->loadPassword($container, $config['user']['properties']['password']); | 
| 46 | 46 | $this->loadServices($loader); | 
| 47 | 47 | $this->loadApiKeyPurger($container, $loader, $config['api_key_purge']); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function generateHash($password) | 
| 14 | 14 |      { | 
| 15 | - $salt = '$6$rounds=3000$'.base64_encode(uniqid()).'$'; | |
| 15 | + $salt = '$6$rounds=3000$' . base64_encode(uniqid()) . '$'; | |
| 16 | 16 | |
| 17 | 17 | return crypt($password, $salt); | 
| 18 | 18 | } | 
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 |      { | 
| 15 | 15 |          if (!function_exists('password_hash')) { | 
| 16 | 16 | throw new \RuntimeException( | 
| 17 | - 'In order to use this strategy please install the package "ircmaxell/password-compat" '. | |
| 17 | + 'In order to use this strategy please install the package "ircmaxell/password-compat" ' . | |
| 18 | 18 | 'or upgrade your php version to 5.5 or higher!' | 
| 19 | 19 | ); | 
| 20 | 20 | } | 
| @@ -16,7 +16,6 @@ | ||
| 16 | 16 | use Ma27\ApiKeyAuthenticationBundle\Model\User\ClassMetadata; | 
| 17 | 17 | use Ma27\ApiKeyAuthenticationBundle\Model\User\ModelConfigurationDriverInterface; | 
| 18 | 18 | use ReflectionClass; | 
| 19 | -use ReflectionProperty; | |
| 20 | 19 | |
| 21 | 20 | /** | 
| 22 | 21 | * Annotation driver which parses the annotations of the user model instance. | 
| @@ -99,7 +99,7 @@ | ||
| 99 | 99 | $oid = spl_object_hash($user); | 
| 100 | 100 |              if (isset($this->lazyValueCache[$oid])) { | 
| 101 | 101 |                  if (isset($this->lazyValueCache[$oid][$property])) { | 
| 102 | - return $this>$this->lazyValueCache[$oid][$property]; | |
| 102 | + return $this > $this->lazyValueCache[$oid][$property]; | |
| 103 | 103 | } | 
| 104 | 104 |              } else { | 
| 105 | 105 | $this->lazyValueCache[$oid] = array(); |