| @@ -9,12 +9,12 @@ discard block | ||
| 9 | 9 |      private function xmlToArrayRecursive($xml) { | 
| 10 | 10 | $xml = (array) $xml; | 
| 11 | 11 | |
| 12 | -        if(empty($xml)) { | |
| 12 | +        if (empty($xml)) { | |
| 13 | 13 | return null; | 
| 14 | 14 | } | 
| 15 | 15 | |
| 16 | 16 |          foreach ($xml as $key => $val) { | 
| 17 | -            if (is_array($val)){ | |
| 17 | +            if (is_array($val)) { | |
| 18 | 18 | $xml[$key] = $this->xmlToArray($val); | 
| 19 | 19 |              } else { | 
| 20 | 20 |                  if ($val instanceof SimpleXMLElement) { | 
| @@ -32,7 +32,7 @@ discard block | ||
| 32 | 32 |      private function xmlToArray($xml) { | 
| 33 | 33 | $xml = (array) $xml; | 
| 34 | 34 | |
| 35 | -        if(empty($xml)) { | |
| 35 | +        if (empty($xml)) { | |
| 36 | 36 | return null; | 
| 37 | 37 | } | 
| 38 | 38 | |
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 |  { | 
| 10 | 10 | public function register() | 
| 11 | 11 |      { | 
| 12 | -        if ( app()->resolved('config') === false ) | |
| 12 | +        if (app()->resolved('config') === false) | |
| 13 | 13 |          { | 
| 14 | 14 |              app()->instance('config', new Repository()); | 
| 15 | 15 | } | 
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | |
| 14 | 14 | public function register() | 
| 15 | 15 |      { | 
| 16 | - app()->bind(Read::class, Read::class); | |
| 16 | + app()->bind(Read::class, Read::class); | |
| 17 | 17 | app()->bind(Create::class, Create::class); | 
| 18 | 18 | app()->bind(Update::class, Update::class); | 
| 19 | 19 | app()->bind(Delete::class, Delete::class); | 
| @@ -17,7 +17,7 @@ discard block | ||
| 17 | 17 | */ | 
| 18 | 18 | public function get() | 
| 19 | 19 |      { | 
| 20 | - $configuration = require $this->pathToFile; | |
| 20 | + $configuration = require $this->pathToFile; | |
| 21 | 21 | return $configuration; | 
| 22 | 22 | } | 
| 23 | 23 | |
| @@ -30,7 +30,7 @@ discard block | ||
| 30 | 30 | if (file_exists($path)) | 
| 31 | 31 |          { | 
| 32 | 32 | $this->pathToFile = $path; | 
| 33 | -        } else{ | |
| 33 | +        } else { | |
| 34 | 34 | Assertion::file($path, 'Local file name is not exist.'); | 
| 35 | 35 | } | 
| 36 | 36 | return true; | 
| @@ -55,7 +55,7 @@ | ||
| 55 | 55 | //dd($test); | 
| 56 | 56 | |
| 57 | 57 | // 8. Example delete | 
| 58 | -$test = $test->action('delete:xml', function ($creator){ | |
| 58 | +$test = $test->action('delete:xml', function($creator) { | |
| 59 | 59 |      $creator->guid(''); | 
| 60 | 60 | })->get(); | 
| 61 | 61 | dd($test); | 
| 62 | 62 | \ No newline at end of file | 
| @@ -2,7 +2,7 @@ discard block | ||
| 2 | 2 | |
| 3 | 3 | use Illuminate\Container\Container; | 
| 4 | 4 | |
| 5 | -if (! function_exists('config')) { | |
| 5 | +if (!function_exists('config')) { | |
| 6 | 6 | /** | 
| 7 | 7 | * Get / set the specified configuration value. | 
| 8 | 8 | * | 
| @@ -26,7 +26,7 @@ discard block | ||
| 26 | 26 | } | 
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | -if (! function_exists('app')) { | |
| 29 | +if (!function_exists('app')) { | |
| 30 | 30 | /** | 
| 31 | 31 | * Get the available container instance. | 
| 32 | 32 | * | 
| @@ -11,7 +11,7 @@ discard block | ||
| 11 | 11 | |
| 12 | 12 | public function getCookie() | 
| 13 | 13 |      { | 
| 14 | - $curl = ['curl' => [ CURLOPT_COOKIEFILE => app(Authentication::class)->getPathCookieFile()]]; | |
| 14 | + $curl = ['curl' => [CURLOPT_COOKIEFILE => app(Authentication::class)->getPathCookieFile()]]; | |
| 15 | 15 | $this->merge($curl); | 
| 16 | 16 | return $this; | 
| 17 | 17 | } | 
| @@ -39,7 +39,7 @@ discard block | ||
| 39 | 39 | |
| 40 | 40 | public function debug() | 
| 41 | 41 |      { | 
| 42 | -        $debug  = ['on_stats' => function (TransferStats $stats) { | |
| 42 | +        $debug = ['on_stats' => function(TransferStats $stats) { | |
| 43 | 43 |              app(Logger::class)->debug('api', | 
| 44 | 44 | [ | 
| 45 | 45 | 'time' => $stats->getTransferTime(), | 
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 |  { | 
| 10 | 10 | public function checkResponseUnauthorized(ResponseInterface $response) | 
| 11 | 11 |      { | 
| 12 | - if ( $response->getStatusCode() == 401 && $response->getReasonPhrase() == 'Unauthorized' ) | |
| 12 | + if ($response->getStatusCode() == 401 && $response->getReasonPhrase() == 'Unauthorized') | |
| 13 | 13 |          { | 
| 14 | 14 | $this->kernel->authentication(); | 
| 15 | 15 | $this->query(); | 
| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 | */ | 
| 48 | 48 | public function checkIntegrity($response) | 
| 49 | 49 |      { | 
| 50 | -       return isset( json_decode($response)->{$this->jsonPrefix} ); | |
| 50 | +       return isset(json_decode($response)->{$this->jsonPrefix} ); | |
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | 53 | /** | 
| @@ -73,7 +73,7 @@ discard block | ||
| 73 | 73 | |
| 74 | 74 | public function create(array $data) | 
| 75 | 75 |      { | 
| 76 | -        if ( empty($data)){ | |
| 76 | +        if (empty($data)) { | |
| 77 | 77 |              return $this->buildJson = '{}'; | 
| 78 | 78 | } | 
| 79 | 79 | return $this->buildJson = json_encode($data); | 
| @@ -87,7 +87,7 @@ discard block | ||
| 87 | 87 | if (gettype($value) == 'object') | 
| 88 | 88 |              { | 
| 89 | 89 | $result[$key] = $this->objectToArray($value); | 
| 90 | -            } else{ | |
| 90 | +            } else { | |
| 91 | 91 | if (gettype($value) != 'object') | 
| 92 | 92 |                 { | 
| 93 | 93 | $result[$key] = $value; |