Completed
Push — develop ( 085115...b1372b )
by greg
30:06
created
src/PlaygroundCore/Service/Country.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      * Set service manager instance
101 101
      *
102 102
      * @param  ServiceManager $serviceManager
103
-     * @return User
103
+     * @return Country
104 104
      */
105 105
     public function setServiceManager(ServiceManager $serviceManager)
106 106
     {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function getPath()
29 29
     {
30
-        if(empty($this->path)){
31
-            $this->path = str_replace('\\', '/', getcwd()) . '/language/countries';
30
+        if (empty($this->path)) {
31
+            $this->path = str_replace('\\', '/', getcwd()).'/language/countries';
32 32
         }
33 33
 
34 34
         return $this->path;
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function getCorePath()
38 38
     {
39
-        if(empty($this->corePath)){
40
-            $this->corePath = __DIR__ . '/../../../language/countries';
39
+        if (empty($this->corePath)) {
40
+            $this->corePath = __DIR__.'/../../../language/countries';
41 41
         }
42 42
 
43 43
         return $this->corePath;
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
         }
51 51
         
52 52
         $fileName = $this->getPath().'/'.$translatedTo.'.php';
53
-        if (! file_exists($fileName)) {
53
+        if (!file_exists($fileName)) {
54 54
             $fileName = $this->getCorePath().'/'.$translatedTo.'.php';
55 55
 
56
-            if (! file_exists($fileName)) {
56
+            if (!file_exists($fileName)) {
57 57
                 throw new \InvalidArgumentException("Language $translatedTo not found.");
58 58
             }
59 59
         }
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
             $translatedTo = $this->getServiceManager()->get('translator')->getLocale();
68 68
         }
69 69
         $fileName = $this->getPath().'/'.$translatedTo.'.php';
70
-        if (! file_exists($fileName)) {
70
+        if (!file_exists($fileName)) {
71 71
             $fileName = $this->getCorePath().'/'.$translatedTo.'.php';
72
-            if (! file_exists($fileName)) {
72
+            if (!file_exists($fileName)) {
73 73
                 throw new \InvalidArgumentException("Language $translatedTo not found.");
74 74
             }
75 75
         }
Please login to merge, or discard this patch.